|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibatis.dao.client.template.DaoTemplate com.ibatis.dao.client.template.OjbBrokerDaoTemplate
A DaoTemplate for OJB broker implementations that provides a convenient method to access the broker.
This is the base class for OJB DAOs and provides the CRUD pattern necessary methods plus an additional method to retrieve all instances of a given class.
Field Summary |
Fields inherited from class com.ibatis.dao.client.template.DaoTemplate |
daoManager |
Constructor Summary | |
OjbBrokerDaoTemplate(DaoManager daoManager)
The DaoManager that manages this Dao instance will be passed in as the parameter to this constructor automatically upon instantiation. |
Method Summary | |
void |
create(java.lang.Object vo)
Puts an instance/value object on the persistentence layer. |
void |
delete(java.lang.Object vo)
Removes an instance/value object from the persistence layer. |
protected org.apache.ojb.broker.PersistenceBroker |
getPersistenceBroker()
Gets the OJB persistence broker associated with the current DaoTransaction that this Dao is working under. |
java.lang.Object |
retrieveByPk(java.lang.Object vo)
Retrieves an instance/value object, according to its primary key, |
java.util.Collection |
retrieveExtent(java.lang.Class clazz)
Retrieves all instances of a given class, from the persistence layer. |
void |
update(java.lang.Object vo)
Updates the instance/value object representation on the persistence layer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OjbBrokerDaoTemplate(DaoManager daoManager)
daoManager
- Method Detail |
public final void create(java.lang.Object vo)
vo
- the value object.public final java.lang.Object retrieveByPk(java.lang.Object vo)
vo
- the value object criteria.
public final void update(java.lang.Object vo)
vo
- the value object.public final void delete(java.lang.Object vo)
vo
- the value object.public final java.util.Collection retrieveExtent(java.lang.Class clazz)
clazz
- the class of the instances to be fetched.
protected final org.apache.ojb.broker.PersistenceBroker getPersistenceBroker()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |