Package org.kuali.rice.krad.dao.impl
Class BusinessObjectDaoOjb
java.lang.Object
org.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
- All Implemented Interfaces:
PlatformAwareDao,BusinessObjectDao,OjbCollectionAware,org.springframework.beans.factory.InitializingBean
@Deprecated
public class BusinessObjectDaoOjb
extends PlatformAwareDaoBaseOjb
implements BusinessObjectDao, OjbCollectionAware
Deprecated.
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
ConstructorsConstructorDescriptionBusinessObjectDaoOjb(PersistenceStructureService persistenceStructureService) Deprecated. -
Method Summary
Modifier and TypeMethodDescription<T extends PersistableBusinessObject>
intcountMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.This is the default impl that comes with Kuali - uses OJB.<T extends PersistableBusinessObject>
intDeprecated.This is the default impl that comes with Kuali - uses OJB.voidDeprecated.Deletes the business object passed in.<T extends PersistableBusinessObject>
voidDeprecated.Deletes each business object in the given List from the database.<T extends PersistableBusinessObject>
voiddeleteMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.Deletes the business objects matching the given fieldValues<T extends PersistableBusinessObject>
List<T> Deprecated.Retrieves all of the records for a given class name.<T extends PersistableBusinessObject>
QueryPagingResults<T> findAll(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findAllActive(Class<T> clazz) Deprecated.Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.<T extends PersistableBusinessObject>
QueryPagingResults<T> findAllActive(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending) Deprecated.Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.<T extends PersistableBusinessObject>
QueryPagingResults<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findAllInactive(Class<T> clazz) Deprecated.<T extends PersistableBusinessObject>
QueryPagingResults<T> findAllInactive(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending) Deprecated.Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.<T extends PersistableBusinessObject>
QueryPagingResults<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
TfindByPrimaryKey(Class<T> clazz, Map<String, ?> primaryKeys) Deprecated.Retrieves an object instance identified bys it primary keys and values.<T extends PersistableBusinessObject>
TfindByPrimaryKeyUsingKeyObject(Class<T> clazz, Object pkObject) Deprecated.OJB does not support this method<T extends PersistableBusinessObject>
TfindBySinglePrimaryKey(Class<T> clazz, Object primaryKey) Deprecated.Retrieves an object instance identified by its primary key.<T extends PersistableBusinessObject>
List<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.This is the default impl that comes with Kuali - uses OJB.<T extends PersistableBusinessObject>
QueryPagingResults<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findMatchingActive(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.<T extends PersistableBusinessObject>
QueryPagingResults<T> findMatchingActive(Class<T> clazz, Map<String, ?> fieldValues, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending) Deprecated.This is the default impl that comes with Kuali - uses OJB.<T extends PersistableBusinessObject>
QueryPagingResults<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated.protected OjbCollectionHelperDeprecated.protected PersistenceStructureServiceDeprecated.<T extends PersistableBusinessObject>
TmanageReadOnly(T bo) Deprecated.No need to do anything - avoid saving and OJB will "manage read only"Deprecated.Retrieves an object instance identified by the class of the given object and the object's primary key values.<T extends PersistableBusinessObject>
List<T> Deprecated.Saves a business object.<T extends PersistableBusinessObject>
Tsave(T bo) Deprecated.Saves a business object.voidsetOjbCollectionHelper(OjbCollectionHelper ojbCollectionHelper) Deprecated.voidsetPersistenceStructureService(PersistenceStructureService persistenceStructureService) Deprecated.Methods inherited from class org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
getDbPlatform, setDbPlatformMethods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplateMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDaoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.service.util.OjbCollectionAware
getPersistenceBrokerTemplate
-
Constructor Details
-
BusinessObjectDaoOjb
Deprecated.
-
-
Method Details
-
findBySinglePrimaryKey
public <T extends PersistableBusinessObject> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey) Deprecated.Description copied from interface:BusinessObjectDaoRetrieves an object instance identified by its primary key. For composite keys, useBusinessObjectDao.findByPrimaryKey(Class, Map)- Specified by:
findBySinglePrimaryKeyin interfaceBusinessObjectDao
-
findByPrimaryKey
public <T extends PersistableBusinessObject> T findByPrimaryKey(Class<T> clazz, Map<String, ?> primaryKeys) Deprecated.Description copied from interface:BusinessObjectDaoRetrieves an object instance identified bys it primary keys and values. This can be done by constructing a map where the key to the map entry is the primary key attribute and the value of the entry being the primary key value. For composite keys, pass in each primaryKey attribute and its value as a map entry.- Specified by:
findByPrimaryKeyin interfaceBusinessObjectDao
-
findAll
Deprecated.Retrieves all of the records for a given class name.- Specified by:
findAllin interfaceBusinessObjectDao- Parameters:
clazz- - the name of the object being used, either KualiCodeBase or a subclass- Returns:
- Collection
-
findAll
public <T extends PersistableBusinessObject> QueryPagingResults<T> findAll(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findAllin interfaceBusinessObjectDao
-
findAllOrderBy
public <T extends PersistableBusinessObject> List<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending) Deprecated.Description copied from interface:BusinessObjectDaoRetrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type. Orders the results by the given field.- Specified by:
findAllOrderByin interfaceBusinessObjectDao
-
findAllOrderBy
public <T extends PersistableBusinessObject> QueryPagingResults<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findAllOrderByin interfaceBusinessObjectDao
-
findMatching
public <T extends PersistableBusinessObject> List<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.This is the default impl that comes with Kuali - uses OJB.- Specified by:
findMatchingin interfaceBusinessObjectDao
-
findMatching
public <T extends PersistableBusinessObject> QueryPagingResults<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findMatchingin interfaceBusinessObjectDao
-
findAllActive
Deprecated.Description copied from interface:BusinessObjectDaoRetrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type. Adds criteria on active column to return only active records. Assumes there exist a mapping for PropertyConstants.Active- Specified by:
findAllActivein interfaceBusinessObjectDao
-
findAllActive
public <T extends PersistableBusinessObject> QueryPagingResults<T> findAllActive(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findAllActivein interfaceBusinessObjectDao
-
findAllInactive
Deprecated.- Specified by:
findAllInactivein interfaceBusinessObjectDao
-
findAllInactive
public <T extends PersistableBusinessObject> QueryPagingResults<T> findAllInactive(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findAllInactivein interfaceBusinessObjectDao
-
findAllActiveOrderBy
public <T extends PersistableBusinessObject> List<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending) Deprecated.Description copied from interface:BusinessObjectDaoRetrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type. Orders the results by the given field. Adds criteria on active column to return only active records. Assumes there exist a mapping for PropertyConstants.Active- Specified by:
findAllActiveOrderByin interfaceBusinessObjectDao
-
findAllActiveOrderBy
public <T extends PersistableBusinessObject> QueryPagingResults<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findAllActiveOrderByin interfaceBusinessObjectDao
-
findMatchingActive
public <T extends PersistableBusinessObject> List<T> findMatchingActive(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.Description copied from interface:BusinessObjectDaoThis method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs, specifically attribute name-expected value. Adds criteria on active column to return only active records. Assumes there exist a mapping for PropertyConstants.Active- Specified by:
findMatchingActivein interfaceBusinessObjectDao
-
findMatchingActive
public <T extends PersistableBusinessObject> QueryPagingResults<T> findMatchingActive(Class<T> clazz, Map<String, ?> fieldValues, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findMatchingActivein interfaceBusinessObjectDao
-
countMatching
public <T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.This is the default impl that comes with Kuali - uses OJB.- Specified by:
countMatchingin interfaceBusinessObjectDao- Returns:
- count of BusinessObjects of the given class whose fields match the values in the given Map.
-
countMatching
public <T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String, ?> positiveFieldValues, Map<String, ?> negativeFieldValues) Deprecated.This is the default impl that comes with Kuali - uses OJB.- Specified by:
countMatchingin interfaceBusinessObjectDao- Parameters:
positiveFieldValues- Map of fields and values for positive criterianegativeFieldValues- Map of fields and values for negative criteria
-
findMatchingOrderBy
public <T extends PersistableBusinessObject> List<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending) Deprecated.This is the default impl that comes with Kuali - uses OJB.- Specified by:
findMatchingOrderByin interfaceBusinessObjectDao
-
findMatchingOrderBy
public <T extends PersistableBusinessObject> QueryPagingResults<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findMatchingOrderByin interfaceBusinessObjectDao
-
save
public <T extends PersistableBusinessObject> T save(T bo) throws org.springframework.dao.DataAccessException Deprecated.Saves a business object.- Specified by:
savein interfaceBusinessObjectDao- Throws:
org.springframework.dao.DataAccessException
-
save
public <T extends PersistableBusinessObject> List<T> save(List<T> businessObjects) throws org.springframework.dao.DataAccessException Deprecated.Saves a business object.- Specified by:
savein interfaceBusinessObjectDao- Throws:
org.springframework.dao.DataAccessException
-
delete
Deprecated.Deletes the business object passed in.- Specified by:
deletein interfaceBusinessObjectDao
-
delete
Deprecated.Description copied from interface:BusinessObjectDaoDeletes each business object in the given List from the database.- Specified by:
deletein interfaceBusinessObjectDao
-
deleteMatching
public <T extends PersistableBusinessObject> void deleteMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.Description copied from interface:BusinessObjectDaoDeletes the business objects matching the given fieldValues- Specified by:
deleteMatchingin interfaceBusinessObjectDao
-
retrieve
Deprecated.Description copied from interface:BusinessObjectDaoRetrieves an object instance identified by the class of the given object and the object's primary key values.- Specified by:
retrievein interfaceBusinessObjectDao
-
findByPrimaryKeyUsingKeyObject
public <T extends PersistableBusinessObject> T findByPrimaryKeyUsingKeyObject(Class<T> clazz, Object pkObject) Deprecated.OJB does not support this method- Specified by:
findByPrimaryKeyUsingKeyObjectin interfaceBusinessObjectDao- Parameters:
clazz- the class of the object to retrievepkObject- the value of the primary key- Returns:
- the retrieved PersistableBusinessObject
-
manageReadOnly
Deprecated.No need to do anything - avoid saving and OJB will "manage read only"- Specified by:
manageReadOnlyin interfaceBusinessObjectDao- Parameters:
bo- the business object to managed- Returns:
- the managed copied of the business object
-
getPersistenceStructureService
Deprecated. -
setPersistenceStructureService
Deprecated. -
getOjbCollectionHelper
Deprecated. -
setOjbCollectionHelper
Deprecated.
-