|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Class Summary | |
|---|---|
| AbstractEnumTypeHandler | |
| AbstractSqlMapClientDAO | |
| SqlMapClientFactory | This service creates Proxys to iBATIS SqlMapClient (V2). |
| SqlMapClientFactoryContribution | Represents a configuration parameter to the SqlMapClientFactory
configured for building a SqlMapClient service. |
This is the main package for iBATIS SqlMaps usage under HiveTranse.
It reuses the JdbcTransactionService fromhivetranse.jdbc module.SqlMapClient into the application services.SqlMapClient at a time (each using a different Connection ie a different Database.hivetranse.jdbc module documentation.
<service-point id="MySqlMapClient" interface="com.ibatis.sqlmap.client.SqlMapClient">
<invoke-factory service-id="hivetranse.ibatis.SqlMapClientFactory" model="singleton">
<sqlmap config="sqlmap-config.xml" connection="MyConnection"/>
</invoke-factory>
</service-point>
The service must use the singleton service model.
<contribution configuration-id="hivemind.EagerLoad">
<load service-id="MySqlMapClient"/>
</contribution>
Such a SqlMapClient service can then be injected in your services that need it.
Those services just need to use the injected SqlMapClient in a usual way, as if it had been obtained directly from a call to iBATIS SqlMapClientBuilder class.SqlMapClient methods related to transaction handling.
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||