示例#1
0
 /**
  * Gets the SQL Map Transaction Manager associated with the current DaoTransaction that this Dao
  * is working under. The SqlMapExecutor interface declares a number of methods for executing
  * statements via an SqlMapClient instance.
  *
  * <p>NOTE: It is rare to require this in a DAO. Only very special cases of DAO implementations
  * will require access to the SqlMapTransactionManager. Messing with transactions at this level
  * might be dangerous to your data integrity (e.g. committing too early).
  *
  * @return A SqlMapTransactionManager instance.
  */
 protected SqlMapTransactionManager getSqlMapTransactionManager() {
   SqlMapDaoTransaction trans = (SqlMapDaoTransaction) daoManager.getTransaction(this);
   return trans.getSqlMap();
 }