| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
org.kuali.rice.krad.dao.impl.BusinessObjectDaoOjb
public class BusinessObjectDaoOjb
This class is the OJB implementation of the BusinessObjectDao interface and should be used for generic business object unit tests.
| Field Summary | 
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport | 
|---|
| logger | 
| Constructor Summary | |
|---|---|
| BusinessObjectDaoOjb(PersistenceStructureService persistenceStructureService)This constructs a BusinessObjectDaoOjb | |
| Method Summary | ||
|---|---|---|
|  int | countMatching(Class clazz,
                           Map<String,?> fieldValues)This is the default impl that comes with Kuali - uses OJB. | |
|  int | countMatching(Class clazz,
                           Map<String,?> positiveFieldValues,
                           Map<String,?> negativeFieldValues)This is the default impl that comes with Kuali - uses OJB. | |
|  void | delete(List<? extends PersistableBusinessObject> boList)Deletes each business object in the given List from the database. | |
|  void | delete(PersistableBusinessObject bo)Deletes the business object passed in. | |
|  void | deleteMatching(Class clazz,
                             Map<String,?> fieldValues)Deletes the business objects matching the given fieldValues | |
| 
 | findAll(Class<T> clazz)Retrieves all of the records for a given class name. | |
| 
 | findAllActive(Class<T> clazz)Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. | |
| 
 | findAllActiveOrderBy(Class<T> clazz,
                                         String sortField,
                                         boolean sortAscending)Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. | |
| 
 | findAllInactive(Class<T> clazz) | |
| 
 | findAllOrderBy(Class<T> clazz,
                             String sortField,
                             boolean sortAscending)Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. | |
| 
 | findByPrimaryKey(Class<T> clazz,
                                 Map<String,?> primaryKeys)Retrieves an object instance identified bys it primary keys and values. | |
| 
 | findByPrimaryKeyUsingKeyObject(Class<T> clazz,
                                                             Object pkObject)OJB does not support this method | |
| 
 | findBySinglePrimaryKey(Class<T> clazz,
                                             Object primaryKey)Retrieves an object instance identified by its primary key. | |
| 
 | findMatching(Class<T> clazz,
                         Map<String,?> fieldValues)This is the default impl that comes with Kuali - uses OJB. | |
| 
 | findMatchingActive(Class<T> clazz,
                                     Map<String,?> fieldValues)This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. | |
| 
 | findMatchingOrderBy(Class<T> clazz,
                                       Map<String,?> fieldValues,
                                       String sortField,
                                       boolean sortAscending)This is the default impl that comes with Kuali - uses OJB. | |
| protected  PersistenceStructureService | getPersistenceStructureService()Gets the persistenceStructureService attribute. | |
|  PersistableBusinessObject | manageReadOnly(PersistableBusinessObject bo)No need to do anything - avoid saving and OJB will "manage read only" | |
|  PersistableBusinessObject | retrieve(PersistableBusinessObject object)Retrieves an object instance identified by the class of the given object and the object's primary key values. | |
|  List<? extends PersistableBusinessObject> | save(List businessObjects)Saves a business object. | |
|  PersistableBusinessObject | save(PersistableBusinessObject bo)Saves a business object. | |
|  void | setPersistenceStructureService(PersistenceStructureService persistenceStructureService)Sets the persistenceStructureService attribute value. | |
| Methods inherited from class org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb | 
|---|
| getDbPlatform, setDbPlatform | 
| Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport | 
|---|
| checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate | 
| Methods inherited from class org.springframework.dao.support.DaoSupport | 
|---|
| afterPropertiesSet, initDao | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.kuali.rice.krad.util.OjbCollectionAware | 
|---|
| getPersistenceBrokerTemplate | 
| Constructor Detail | 
|---|
public BusinessObjectDaoOjb(PersistenceStructureService persistenceStructureService)
BusinessObjectDaoOjb
| Method Detail | 
|---|
public <T extends BusinessObject> T findBySinglePrimaryKey(Class<T> clazz,
                                                           Object primaryKey)
BusinessObjectDaoBusinessObjectDao.findByPrimaryKey(Class, Map)
findBySinglePrimaryKey in interface BusinessObjectDaoBusinessObjectDao.findBySinglePrimaryKey(java.lang.Class, java.lang.Object)
public <T extends BusinessObject> T findByPrimaryKey(Class<T> clazz,
                                                     Map<String,?> primaryKeys)
BusinessObjectDao
findByPrimaryKey in interface BusinessObjectDaoBusinessObjectDao.findByPrimaryKey(java.lang.Class, java.util.Map)public <T extends BusinessObject> Collection<T> findAll(Class<T> clazz)
findAll in interface BusinessObjectDaoclazz - - the name of the object being used, either KualiCodeBase or a subclass
BusinessObjectDao.findAll(java.lang.Class)
public <T extends BusinessObject> Collection<T> findAllOrderBy(Class<T> clazz,
                                                               String sortField,
                                                               boolean sortAscending)
BusinessObjectDao
findAllOrderBy in interface BusinessObjectDaoBusinessObjectDao.findAllOrderBy(java.lang.Class, java.lang.String, boolean)
public <T extends BusinessObject> Collection<T> findMatching(Class<T> clazz,
                                                             Map<String,?> fieldValues)
findMatching in interface BusinessObjectDaoBusinessObjectDao.findMatching(java.lang.Class, java.util.Map)public <T extends BusinessObject> Collection<T> findAllActive(Class<T> clazz)
BusinessObjectDao
findAllActive in interface BusinessObjectDaoBusinessObjectDao.findAllActive(java.lang.Class)public <T extends BusinessObject> Collection<T> findAllInactive(Class<T> clazz)
findAllInactive in interface BusinessObjectDaoBusinessObjectDao.findAllActive(java.lang.Class)
public <T extends BusinessObject> Collection<T> findAllActiveOrderBy(Class<T> clazz,
                                                                     String sortField,
                                                                     boolean sortAscending)
BusinessObjectDao
findAllActiveOrderBy in interface BusinessObjectDaoBusinessObjectDao.findAllActiveOrderBy(java.lang.Class, java.lang.String, boolean)
public <T extends BusinessObject> Collection<T> findMatchingActive(Class<T> clazz,
                                                                   Map<String,?> fieldValues)
BusinessObjectDao
findMatchingActive in interface BusinessObjectDaoBusinessObjectDao.findMatchingActive(java.lang.Class, java.util.Map)
public int countMatching(Class clazz,
                         Map<String,?> fieldValues)
countMatching in interface BusinessObjectDaoBusinessObjectDao.countMatching(java.lang.Class, java.util.Map)
public int countMatching(Class clazz,
                         Map<String,?> positiveFieldValues,
                         Map<String,?> negativeFieldValues)
countMatching in interface BusinessObjectDaopositiveFieldValues - Map of fields and values for positive criterianegativeFieldValues - Map of fields and values for negative criteria
BusinessObjectDao.countMatching(java.lang.Class, java.util.Map, java.util.Map)
public <T extends BusinessObject> Collection<T> findMatchingOrderBy(Class<T> clazz,
                                                                    Map<String,?> fieldValues,
                                                                    String sortField,
                                                                    boolean sortAscending)
findMatchingOrderBy in interface BusinessObjectDaoBusinessObjectDao.findMatching(java.lang.Class, java.util.Map)
public PersistableBusinessObject save(PersistableBusinessObject bo)
                               throws org.springframework.dao.DataAccessException
save in interface BusinessObjectDaoorg.springframework.dao.DataAccessExceptionBusinessObjectDao.save(org.kuali.rice.krad.bo.PersistableBusinessObject)
public List<? extends PersistableBusinessObject> save(List businessObjects)
                                               throws org.springframework.dao.DataAccessException
save in interface BusinessObjectDaoorg.springframework.dao.DataAccessExceptionBusinessObjectDao.save(org.kuali.rice.krad.bo.PersistableBusinessObject)public void delete(PersistableBusinessObject bo)
delete in interface BusinessObjectDaobo - 
org.springframework.dao.DataAccessExceptionBusinessObjectDao.delete(org.kuali.rice.krad.bo.PersistableBusinessObject)public void delete(List<? extends PersistableBusinessObject> boList)
BusinessObjectDao
delete in interface BusinessObjectDaoBusinessObjectDao.delete(java.util.List)
public void deleteMatching(Class clazz,
                           Map<String,?> fieldValues)
BusinessObjectDao
deleteMatching in interface BusinessObjectDaoBusinessObjectDao.deleteMatching(java.lang.Class, java.util.Map)public PersistableBusinessObject retrieve(PersistableBusinessObject object)
BusinessObjectDao
retrieve in interface BusinessObjectDaoBusinessObjectDao.retrieve(org.kuali.rice.krad.bo.PersistableBusinessObject)
public <T extends BusinessObject> T findByPrimaryKeyUsingKeyObject(Class<T> clazz,
                                                                   Object pkObject)
findByPrimaryKeyUsingKeyObject in interface BusinessObjectDaoclazz - the class of the object to retrievepkObject - the value of the primary key
org.kuali.rice.krad.dao.BusinessObjectDao#findByPrimaryKey(java.lang.Class, java.lang.Object)public PersistableBusinessObject manageReadOnly(PersistableBusinessObject bo)
manageReadOnly in interface BusinessObjectDaobo - the business object to managed
BusinessObjectDao.manageReadOnly(org.kuali.rice.krad.bo.PersistableBusinessObject)protected PersistenceStructureService getPersistenceStructureService()
public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
persistenceStructureService - The persistenceStructureService to set.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||