Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.dao.client.template
Class ToplinkDaoTemplate  view ToplinkDaoTemplate download ToplinkDaoTemplate.java

java.lang.Object
  extended bycom.ibatis.dao.client.template.DaoTemplate
      extended bycom.ibatis.dao.client.template.ToplinkDaoTemplate
All Implemented Interfaces:
com.ibatis.dao.client.Dao

public abstract class ToplinkDaoTemplate
extends DaoTemplate

A DaoTemplate for Toplink implementations that provides a convenient method to access the Toplink Session.

Version:
$Revision: 152595 $ $Date: 2004-12-28 09:46:14 -0700 (Tue, 28 Dec 2004) $

Field Summary
 
Fields inherited from class com.ibatis.dao.client.template.DaoTemplate
daoManager
 
Constructor Summary
ToplinkDaoTemplate(com.ibatis.dao.client.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, Expression expression)
          Returns a count of the number of objects in a result set given the specified expression.
protected  Session getSession()
          Gets the Toplink session associated with the current DaoTransaction that this Dao is working under.
protected  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

ToplinkDaoTemplate

public ToplinkDaoTemplate(com.ibatis.dao.client.DaoManager daoManager)
The DaoManager that manages this Dao instance will be passed in as the parameter to this constructor automatically upon instantiation.

Method Detail

getCount

protected int getCount(java.lang.Class referenceClass,
                       Expression expression)
Returns a count of the number of objects in a result set given the specified expression.


getSession

protected Session getSession()
                      throws com.ibatis.dao.client.DaoException
Gets the Toplink session associated with the current DaoTransaction that this Dao is working under.


getUnitOfWork

protected UnitOfWork getUnitOfWork()
                            throws com.ibatis.dao.client.DaoException
Gets the Toplink UnitOfWork associated with the current DaoTransaction that this Dao is working under.