Package com.poscoict.glueframework.dao

dao package.

See:
          Description

Interface Summary
GlueAuditAttributeHolder Audit Ç׸ñÀ» ȦµåÇÏ´Â ¿ªÇÒÀ» ¼öÇàÇÏ´Â ÀÎÅÍÆäÀ̽º
GlueGenericDao  
 

Class Summary
GlueColumnMapRowMapper ColumnMapRowMapper È®Àå.
 

Exception Summary
GlueBadSqlGrammarException SQL ¹®¹ý ¿À·ù·Î ÀÎÇؼ­ ¹ß»ýÇÏ´Â Exception Ŭ·¡½º.
GlueDaoException Data Access Object(DAO) °ü·Ã ExceptionÀÌ ¹ß»ýÇßÀ» ¶§ ¾²·Î¿ì µÈ´Ù.
GlueDataAccessResourceFailureException µ¥ÀÌŸ º£À̽º¿Í °°Àº ÀÚ¿ø¿¡ ¿¬°á½Ã ¿¡·¯°¡ ¹ß»ýµÇ¸é ´øÁ®Áö´Â Exception Ŭ·¡½º.
GlueDataIntegrityViolationException µ¥ÀÌŸº£À̽º¿¡ insert or update ½Ã ¹«°á¼º Á¦¾àÁ¶°Ç¿¡ À§¹èµÇ´Â °æ¿ì ´øÁ®Áö´Â Exception Ŭ·¡½º.
GlueUncategorizedSQLException Ä«Å×°í¸®È­ µÇÁö ¸øÇÏ´Â ÀϹÝÀûÀÎ SQLExceptionÀÌ ¹ß»ýÇÏ¸é ´øÁ®Áö´Â Exception Ŭ·¡½º.
 

Package com.poscoict.glueframework.dao Description

dao package. Glue Data Access Object(DAO).

DAO class´Â applicationContext.xml¿¡ Á¤ÀǵȴÙ.

 1. JDBC DAO »ç¿ë¿¹ 
 <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
     <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
     <property name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:ORCL"/>
     <property name="username" value="scott"/>
     <property name="password" value="tiger"/>
     <property name="defaultAutoCommit" value="false"/>
 </bean>
 <bean id="dao" class="com.poscoict.glueframework.dao.jdbc.GlueJdbcDao">
     <property name="dataSource" ref="dataSource"/>
     <property name="queryManager" ref="queryManager"/>
 </bean>
 <bean id="queryManager" class="com.poscoict.glueframework.dao.manager.GlueQueryManagerImpl">
     <constructor-arg><ref local="cacheManager"/></constructor-arg>
     <constructor-arg><ref local="queryLoader"/></constructor-arg>
 </bean>
 <bean id="cacheManager" class="com.poscoict.glueframework.cache.jcs.GlueJCSCacheManager"/>
 <bean id="queryLoader" class="com.poscoict.glueframework.dao.manager.GlueQueryLoader">
     <property name="rootPath" value="query"/>
 </bean>
 
 2. MyBatis DAO »ç¿ë¿¹ 
 <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
     <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
     <property name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:ORCL"/>
     <property name="username" value="scott"/>
     <property name="password" value="tiger"/>
     <property name="defaultAutoCommit" value="false"/>
 </bean>
 <bean id="dao" class="com.poscoict.glueframework.dao.mybatis.GlueMybatisDao">
     <property name="sqlSession" ref="sqlSession" />
 </bean>
 <bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">
     <constructor-arg index="0" ref="sqlSessionFactory" />
 </bean>
 <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
     <property name="dataSource" ref="dataSource" />
     <property name="mapperLocations" value="classpath*:mybatis/mapper/*.xml" />
 </bean>
 

Since:
2013. 5. 10.
Version:
1.0.0
Author:
Ç㠵γç


Copyright © 2013–2017 POSCO ICT. All rights reserved.