|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibatis.dao.engine.impl.StandardDaoManager
Constructor Summary | |
StandardDaoManager()
|
Method Summary | |
void |
addContext(DaoContext context)
|
void |
addContextInTransaction(DaoContext ctx)
|
void |
commitTransaction()
Commits all transactions currently started for all DAO contexts managed by this DaoManager. |
void |
endTransaction()
Ends all transactions currently started for all DAO contexts managed by this DaoManager. |
Dao |
getDao(java.lang.Class iface)
Gets a Dao instance for the requested interface type. |
Dao |
getDao(java.lang.Class iface,
java.lang.String contextId)
Gets a Dao instance for the requested interface type registered under the context with the specified id. |
DaoTransaction |
getTransaction(Dao dao)
Gets the transaction that the provided Dao is currently working under. |
boolean |
isExplicitTransaction()
|
void |
startTransaction()
Starts a transaction scope managed by this DaoManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StandardDaoManager()
Method Detail |
public void addContext(DaoContext context)
public Dao getDao(java.lang.Class iface)
DaoManager
getDao
in interface DaoManager
iface
- The interface or generic type for which an implementation
should be returned.
public Dao getDao(java.lang.Class iface, java.lang.String contextId)
DaoManager
getDao
in interface DaoManager
iface
- The interface or generic type for which an implementation
should be returned.contextId
- The ID of the context under which to find the DAO
implementation (use for multiple interface defs).
public void startTransaction()
DaoManager
startTransaction
in interface DaoManager
public void commitTransaction()
DaoManager
commitTransaction
in interface DaoManager
public void endTransaction()
DaoManager
endTransaction
in interface DaoManager
public DaoTransaction getTransaction(Dao dao)
DaoManager
getTransaction
in interface DaoManager
dao
- The Dao to find a transaction for.
public boolean isExplicitTransaction()
public void addContextInTransaction(DaoContext ctx)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |