BATIS Dec 1st. 2007 How sQL Map works 0461124黄闻 0461118;0461097;0461006;0461084 1
How SQL Map works -0461124 黄闻 0461118;0461097;0461006;0461084; Dec 1st, 2007 1
Outline Review SQL Map works SQL Map XML配置文件(上次讲的) - SQL Map XML映射文件
Outline • Review • SQL Map works: – SQL Map XML 配置文件(上次讲的) – SQL Map XML 映射文件
Review on dao Dec 1st. 2007 1. Hide persistence layer implementation details 2. Dynamically configured to use different persistence mechanisms. BATS
Review on DAO 1. Hide persistence layer implementation details 2. Dynamically configured to use different persistence mechanisms. 2 Dec 1st, 2007
SQL Map XMLI配置文件的构成cm < properties>元素 2.< setting>元素 3.< typeAlias>元素 4.< transaction Manager>元素 5.<qMap>元素 BATS
SQL Map XML配置文件的构成 1. <properties>元素 2. <setting>元素 3. <typeAlias>元素 4. <transactionManager>元素 5. <sqlMap>元素 4 Dec 1st, 2007
BATIS SQL Map XML配置文件 <sqlMapConfig> <properties resource=properties/database properties"/> <settings cacheModel eNabled=true enhancementEnabled="true lazyLoadingEnabled="true"/ typeAlias alias="order" type="testdomain Order"7> <transactionManager type=UDBC"> <data Source type=SIMPLE> <property value="sidriver)" name="JDBC Driver " <property value="s[url]" name="JDBC. ConnectionURL"/> <property value="uSername)"name="JDBC Username"/> <property value=password]" name="JDBC Password"/> </dataSource> </transactionManager> g-Map resource="com/ibatis/jpetstore/persistence/sglmapdao/ sql/Account. xml"/> <sgIMap resource="com/ibatis/jpetstore/persistence/sglmapdao/sql/Category. xml"/>
SQL Map XML配置文件 10