ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: IGNITE-1753 Fixed java doc.
Date Tue, 03 Nov 2015 07:21:29 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-1753-1282 f3e4deed1 -> 8bc4399aa


IGNITE-1753 Fixed java doc.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/8bc4399a
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/8bc4399a
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/8bc4399a

Branch: refs/heads/ignite-1753-1282
Commit: 8bc4399aaa97ea92f63bfb93fc512f3b1308a2ea
Parents: f3e4dee
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Tue Nov 3 14:21:33 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Tue Nov 3 14:21:33 2015 +0700

----------------------------------------------------------------------
 .../store/jdbc/CacheJdbcPojoStoreFactory.java   | 41 +++++++++++++++++++-
 1 file changed, 40 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8bc4399a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStoreFactory.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStoreFactory.java
b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStoreFactory.java
index 9488749..2aa004f 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStoreFactory.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStoreFactory.java
@@ -41,10 +41,49 @@ import org.apache.ignite.resources.SpringApplicationContextResource;
  *          &lt;property name="cacheConfiguration"&gt;
  *               &lt;list&gt;
  *                  &lt;bean class="org.apache.ignite.configuration.CacheConfiguration"&gt;
+ *                      &lt;property name="name" value="myCache" /&gt;
  *                      ...
  *                      &lt;property name="cacheStoreFactory"&gt;
  *                          &lt;bean class="org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory"&gt;
- *                              &lt;property name="dataSourceBean" value = "simpleDataSource"
/&gt;
+ *                              &lt;property name="configuration" &gt;
+ *                                  &lt;bean class="org.apache.ignite.cache.store.jdbc.CacheJdbcStoreFactory"&gt;
+ *                                      &lt;property name="dataSourceBean" value="simpleDataSource"
+ *                                      &lt;property name="types"&gt;
+ *                                          &lt;list&gt;
+ *                                              &lt;bean class="org.apache.ignite.cache.store.jdbc.JdbcType"&gt;
+ *                                                  &lt;property name="cacheName" value="myCache"
/&gt;
+ *                                                  &lt;property name="databaseSchema"
value="MY_DB_SCHEMA" /&gt;
+ *                                                  &lt;property name="databaseTable"
value="PERSON" /&gt;
+ *                                                  &lt;property name="keyType" value="java.lang.Integer"
/&gt;
+ *                                                  &lt;property name="keyFields"&gt;
+ *                                                      &lt;list&gt;
+ *                                                          &lt;bean class="org.apache.ignite.cache.store.jdbc.JdbcTypeField"&gt;
+ *                                                              &lt;property name="databaseFieldType"
&gt;
+ *                                                                  &lt;util:constant
static-field="java.sql.Types.INTEGER"/&gt;
+ *                                                              &lt;/property&gt;
+ *                                                              &lt;property name="databaseFieldName"
value="ID" /&gt;
+ *                                                              &lt;property name="javaFieldType"
value="java.lang.Integer" /&gt;
+ *                                                              &lt;property name="javaFieldName"
value="id" /&gt;
+ *                                                          &lt;/bean&gt;
+ *                                                      &lt;/list&gt;
+ *                                                  &lt;/property&gt;
+ *                                                  &lt;property name="valueType" value="my.company.Person"
/&gt;
+ *                                                  &lt;property name="valueFields"&gt;
+ *                                                      &lt;list&gt;
+ *                                                          &lt;bean class="org.apache.ignite.cache.store.jdbc.JdbcTypeField"&gt;
+ *                                                              &lt;property name="databaseFieldType"
&gt;
+ *                                                                  &lt;util:constant
static-field="java.sql.Types.VARCHAR"/&gt;
+ *                                                              &lt;/property&gt;
+ *                                                              &lt;property name="databaseFieldName"
value="NAME" /&gt;
+ *                                                              &lt;property name="javaFieldType"
value="java.lang.String" /&gt;
+ *                                                              &lt;property name="javaFieldName"
value="name" /&gt;
+ *                                                          &lt;/bean&gt;
+ *                                                      &lt;/list&gt;
+ *                                                  &lt;/property&gt;
+ *                                              &lt;/bean&gt;
+ *                                          &lt;/list&gt;
+ *                                      &lt;/property&gt;
+ *                                  &lt;/bean&gt;
  *                          &lt;/bean&gt;
  *                      &lt;/property&gt;
  *                  &lt;/bean&gt;


Mime
View raw message