|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibatis.dao.client.template.DaoTemplate
com.ibatis.dao.client.template.ToplinkDaoTemplate
public abstract class ToplinkDaoTemplate
A DaoTemplate for Toplink implementations that provides a convenient method to access the Toplink Session.
| Field Summary |
|---|
| Fields inherited from class com.ibatis.dao.client.template.DaoTemplate |
|---|
daoManager |
| Constructor Summary | |
|---|---|
ToplinkDaoTemplate(DaoManager daoManager)
The DaoManager that manages this Dao instance will be passed in as the parameter to this constructor automatically upon instantiation. |
|
| Method Summary | |
|---|---|
protected int |
getCount(java.lang.Class referenceClass,
oracle.toplink.expressions.Expression expression)
Returns a count of the number of objects in a result set given the specified expression. |
protected oracle.toplink.sessions.Session |
getSession()
Gets the Toplink session associated with the current DaoTransaction that this Dao is working under. |
protected oracle.toplink.sessions.UnitOfWork |
getUnitOfWork()
Gets the Toplink UnitOfWork associated with the current DaoTransaction that this Dao is working under. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToplinkDaoTemplate(DaoManager daoManager)
daoManager - The Dao manager instance for this template| Method Detail |
|---|
protected int getCount(java.lang.Class referenceClass,
oracle.toplink.expressions.Expression expression)
referenceClass - The reference class to use as instances in the result setexpression - The expression to use as a where clause
protected oracle.toplink.sessions.Session getSession()
throws DaoException
DaoException - If a DaoException is thrown
protected oracle.toplink.sessions.UnitOfWork getUnitOfWork()
throws DaoException
DaoException - If a DaoException is thrown
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||