码迷,mamicode.com
首页 > 其他好文 > 详细

xml

时间:2019-09-26 12:09:57      阅读:80      评论:0      收藏:0      [点我收藏+]

标签:lang   read   tor   VID   stat   mil   ant   value   ide   

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/util
       http://www.springframework.org/schema/util/spring-util-4.3.xsd">
 
<bean id="dsOracle_test" class="oracle.jdbc.pool.OracleDataSource">
<property name="URL"
value="jdbc:oracle:thin:@10.20.131.84:1534/d0tlife" />
<property name="user" value="devmgr" />
<property name="password" value="ptmjygb8" />
</bean>
 
<!-- Ignite Configuration -->
<bean id="grid.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="cacheConfiguration">
<list>
<!-- Configuration for PersonCache -->
<bean
class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="PersonCache" />
<property name="cacheMode" value="PARTITIONED" />
<property name="atomicityMode" value="ATOMIC" />
 
<property name="cacheStoreFactory">
<bean
class="org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory">
<property name="dataSourceBean" value="dsOracle_test" />
<property name="dialect">
<bean
class="org.apache.ignite.cache.store.jdbc.dialect.OracleDialect">
</bean>
</property>
 
<property name="types">
<list>
 
<bean class="org.apache.ignite.cache.store.jdbc.JdbcType">
<property name="cacheName" value="PersonCache" />
<property name="keyType" value="java.lang.String" />
<property name="valueType"
value="myexamples.model.Ocm_schedule_type" />
<property name="databaseSchema" value="DEVMGR" />
<property name="databaseTable"  value="OCM_SCHEDULE_TYPE" />
 
<property name="keyFields">
<list>
<bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<constructor-arg>
<util:constant
static-field="java.sql.Types.VARCHAR" />
</constructor-arg>
<constructor-arg value="id_schedule_type" />
<constructor-arg value="java.lang.String" />
<constructor-arg value="id_schedule_type" />
</bean>
</list>
</property>
 
<property name="valueFields">
<list>
<bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<constructor-arg>
<util:constant
static-field="java.sql.Types.VARCHAR" />
</constructor-arg>
<constructor-arg value="schedule_type_code" />
<constructor-arg value="java.lang.String" />
<constructor-arg value="schedule_type_code" />
</bean>
 
<bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<constructor-arg>
<util:constant
static-field="java.sql.Types.VARCHAR" />
</constructor-arg>
<constructor-arg value="schedule_type_name" />
<constructor-arg value="java.lang.String" />
<constructor-arg value="schedule_type_name" />
</bean>
 
<bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<constructor-arg>
<util:constant
static-field="java.sql.Types.VARCHAR" />
</constructor-arg>
<constructor-arg value="is_in_use" />
<constructor-arg value="java.lang.String" />
<constructor-arg value="is_in_use" />
</bean>
 
<bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<constructor-arg>
<util:constant
static-field="java.sql.Types.VARCHAR" />
</constructor-arg>
<constructor-arg value="image_url" />
<constructor-arg value="java.lang.String" />
<constructor-arg value="image_url" />
</bean>
 
</list>
</property>
</bean>
 
<bean class="org.apache.ignite.cache.store.jdbc.JdbcType">
<!--<property name="cacheName" value="PersonCache" />
<property name="keyType" value="java.lang.String" />  --> 
<property name="valueType"
value="myexamples.model.Ocm_cust_schedule" />
<property name="databaseSchema" value="DEVMGR" />
<property name="databaseTable" value="OCM_CUST_SCHEDULE" />
 
<property name="keyFields">
<list>
<bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<constructor-arg>
<util:constant
static-field="java.sql.Types.VARCHAR" />
</constructor-arg>
<constructor-arg value="schedule_id" />
<constructor-arg value="java.lang.String" />
<constructor-arg value="schedule_id" />
</bean>
</list>
</property>
 
<property name="valueFields">
<list>
<bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<constructor-arg>
<util:constant
static-field="java.sql.Types.VARCHAR" />
</constructor-arg>
<constructor-arg value="schedule_theme" />
<constructor-arg value="java.lang.String" />
<constructor-arg value="schedule_theme" />
</bean>
  <!--  
<bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<constructor-arg>
<util:constant
static-field="java.sql.Types.INTEGER" />
</constructor-arg>
<constructor-arg value="schedule_priority" />
<constructor-arg value="java.lang.Integer" />
<constructor-arg value="schedule_priority" />
</bean>
 
<bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<constructor-arg>
<util:constant
static-field="java.sql.Types.VARCHAR" />
</constructor-arg>
<constructor-arg value="generate_type" />
<constructor-arg value="java.lang.String" />
<constructor-arg value="generate_type" />
</bean>
 
<bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<constructor-arg>
<util:constant
static-field="java.sql.Types.VARCHAR" />
</constructor-arg>
<constructor-arg value="ocm_cust_id" />
<constructor-arg value="java.lang.String" />
<constructor-arg value="ocm_cust_id" />
</bean>
 
<bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<constructor-arg>
<util:constant
static-field="java.sql.Types.DATE" />
</constructor-arg>
<constructor-arg value="schedule_time" />
<constructor-arg value="java.lang.String" />
<constructor-arg value="schedule_time" />
</bean>
 
  -->
 
</list>
</property>
</bean>
 
 
 
 
 
 
 
</list>
</property>
</bean>
</property>
 
 
 
 
<property name="readThrough" value="true" />
<property name="writeThrough" value="true" />
 
 
 
<property name="queryEntities">
<list>
  
<bean class="org.apache.ignite.cache.QueryEntity">
<property name="keyType" value="java.lang.String" />
<property name="valueType"
value="myexamples.model.Ocm_schedule_type" />
<property name="keyFieldName" value="id_schedule_type" />
 
<property name="keyFields">
<list>
<value>id_schedule_type</value>
</list>
</property>
<property name="fields">
<map>
<entry key="schedule_type_code" value="java.lang.String" />
<entry key="schedule_type_name" value="java.lang.String" />
<entry key="is_in_use" value="java.lang.String" />
<entry key="image_url" value="java.lang.String" />
<entry key="id_schedule_type" value="java.lang.String" />
</map>
</property>
</bean>
  
  
<bean class="org.apache.ignite.cache.QueryEntity">
<property name="keyType" value="java.lang.String" />
<property name="valueType"
value="myexamples.model.Ocm_cust_schedule" />
<property name="keyFieldName" value="schedule_id" />
 
<property name="keyFields">
<list>
<value>schedule_id</value>
</list>
</property>
<property name="fields">
<map>
<entry key="schedule_id" value="java.lang.String" />
<entry key="schedule_theme" value="java.lang.String" />
<!-- <entry key="schedule_priority" value="java.lang.Integer" />
<entry key="generate_type" value="java.lang.String" />
<entry key="ocm_cust_id" value="java.lang.String" />
<entry key="schedule_time" value="java.lang.String" />   -->
</map>
</property>
</bean>
 
</list>
</property>
</bean>
 
<!-- Provide similar configurations for other caches/tables -->
</list>
</property>
 
<property name="discoverySpi">
<bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
<property name="localPort" value="47500" />
<property name="ipFinder">
<bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
<property name="addresses">
<list>
<value>10.43.104.212:47500..47509</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
</bean>
 
</beans>

xml

标签:lang   read   tor   VID   stat   mil   ant   value   ide   

原文地址:https://www.cnblogs.com/a943981045/p/11589488.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!