@Deprecated public class BusinessObjectDaoOjb extends PlatformAwareDaoBaseOjb implements BusinessObjectDao, OjbCollectionAware
Constructor and Description |
---|
BusinessObjectDaoOjb(PersistenceStructureService persistenceStructureService)
Deprecated.
This constructs a
BusinessObjectDaoOjb |
Modifier and Type | Method and Description |
---|---|
int |
countMatching(Class clazz,
Map<String,?> fieldValues)
Deprecated.
This is the default impl that comes with Kuali - uses OJB.
|
int |
countMatching(Class clazz,
Map<String,?> positiveFieldValues,
Map<String,?> negativeFieldValues)
Deprecated.
This is the default impl that comes with Kuali - uses OJB.
|
void |
delete(List<? extends PersistableBusinessObject> boList)
Deprecated.
Deletes each business object in the given List from the database.
|
void |
delete(Object bo)
Deprecated.
Deletes the business object passed in.
|
void |
deleteMatching(Class clazz,
Map<String,?> fieldValues)
Deprecated.
Deletes the business objects matching the given fieldValues
|
<T extends BusinessObject> |
findAll(Class<T> clazz)
Deprecated.
Retrieves all of the records for a given class name.
|
<T extends BusinessObject> |
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 BusinessObject> |
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 BusinessObject> |
findAllInactive(Class<T> clazz)
Deprecated.
|
<T extends BusinessObject> |
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 BusinessObject> |
findByPrimaryKey(Class<T> clazz,
Map<String,?> primaryKeys)
Deprecated.
Retrieves an object instance identified bys it primary keys and values.
|
<T extends BusinessObject> |
findByPrimaryKeyUsingKeyObject(Class<T> clazz,
Object pkObject)
Deprecated.
OJB does not support this method
|
<T extends BusinessObject> |
findBySinglePrimaryKey(Class<T> clazz,
Object primaryKey)
Deprecated.
Retrieves an object instance identified by its primary key.
|
<T extends BusinessObject> |
findMatching(Class<T> clazz,
Map<String,?> fieldValues)
Deprecated.
This is the default impl that comes with Kuali - uses OJB.
|
<T extends BusinessObject> |
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 BusinessObject> |
findMatchingOrderBy(Class<T> clazz,
Map<String,?> fieldValues,
String sortField,
boolean sortAscending)
Deprecated.
This is the default impl that comes with Kuali - uses OJB.
|
protected OjbCollectionHelper |
getOjbCollectionHelper()
Deprecated.
OJB collection helper instance which processes collections before persisting
|
protected PersistenceStructureService |
getPersistenceStructureService()
Deprecated.
Gets the persistenceStructureService attribute.
|
PersistableBusinessObject |
manageReadOnly(PersistableBusinessObject bo)
Deprecated.
No need to do anything - avoid saving and OJB will "manage read only"
|
Object |
retrieve(Object object)
Deprecated.
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)
Deprecated.
Saves a business object.
|
PersistableBusinessObject |
save(PersistableBusinessObject bo)
Deprecated.
Saves a business object.
|
void |
setOjbCollectionHelper(OjbCollectionHelper ojbCollectionHelper)
Deprecated.
Setter for the OJB collection helper
|
void |
setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
Deprecated.
Sets the persistenceStructureService attribute value.
|
getDbPlatform, setDbPlatform
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPersistenceBrokerTemplate
public BusinessObjectDaoOjb(PersistenceStructureService persistenceStructureService)
BusinessObjectDaoOjb
public <T extends BusinessObject> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey)
BusinessObjectDao
BusinessObjectDao.findByPrimaryKey(Class, Map)
findBySinglePrimaryKey
in interface BusinessObjectDao
BusinessObjectDao.findBySinglePrimaryKey(java.lang.Class, java.lang.Object)
public <T extends BusinessObject> T findByPrimaryKey(Class<T> clazz, Map<String,?> primaryKeys)
BusinessObjectDao
findByPrimaryKey
in interface BusinessObjectDao
BusinessObjectDao.findByPrimaryKey(java.lang.Class, java.util.Map)
public <T extends BusinessObject> Collection<T> findAll(Class<T> clazz)
findAll
in interface BusinessObjectDao
clazz
- - the name of the object being used, either KualiCodeBase or a subclassBusinessObjectDao.findAll(java.lang.Class)
public <T extends BusinessObject> Collection<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending)
BusinessObjectDao
findAllOrderBy
in interface BusinessObjectDao
BusinessObjectDao.findAllOrderBy(java.lang.Class, java.lang.String, boolean)
public <T extends BusinessObject> Collection<T> findMatching(Class<T> clazz, Map<String,?> fieldValues)
findMatching
in interface BusinessObjectDao
BusinessObjectDao.findMatching(java.lang.Class, java.util.Map)
public <T extends BusinessObject> Collection<T> findAllActive(Class<T> clazz)
BusinessObjectDao
findAllActive
in interface BusinessObjectDao
BusinessObjectDao.findAllActive(java.lang.Class)
public <T extends BusinessObject> Collection<T> findAllInactive(Class<T> clazz)
findAllInactive
in interface BusinessObjectDao
BusinessObjectDao.findAllActive(java.lang.Class)
public <T extends BusinessObject> Collection<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending)
BusinessObjectDao
findAllActiveOrderBy
in interface BusinessObjectDao
BusinessObjectDao.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 BusinessObjectDao
BusinessObjectDao.findMatchingActive(java.lang.Class, java.util.Map)
public int countMatching(Class clazz, Map<String,?> fieldValues)
countMatching
in interface BusinessObjectDao
BusinessObjectDao.countMatching(java.lang.Class, java.util.Map)
public int countMatching(Class clazz, Map<String,?> positiveFieldValues, Map<String,?> negativeFieldValues)
countMatching
in interface BusinessObjectDao
positiveFieldValues
- Map of fields and values for positive criterianegativeFieldValues
- Map of fields and values for negative criteriaBusinessObjectDao.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 BusinessObjectDao
BusinessObjectDao.findMatching(java.lang.Class, java.util.Map)
public PersistableBusinessObject save(PersistableBusinessObject bo) throws org.springframework.dao.DataAccessException
save
in interface BusinessObjectDao
org.springframework.dao.DataAccessException
BusinessObjectDao.save(org.kuali.rice.krad.bo.PersistableBusinessObject)
public List<? extends PersistableBusinessObject> save(List businessObjects) throws org.springframework.dao.DataAccessException
save
in interface BusinessObjectDao
org.springframework.dao.DataAccessException
BusinessObjectDao.save(org.kuali.rice.krad.bo.PersistableBusinessObject)
public void delete(Object bo)
delete
in interface BusinessObjectDao
bo
- org.springframework.dao.DataAccessException
org.kuali.rice.krad.dao.BusinessObjectDao#delete(org.kuali.rice.krad.bo.PersistableBusinessObject)
public void delete(List<? extends PersistableBusinessObject> boList)
BusinessObjectDao
delete
in interface BusinessObjectDao
BusinessObjectDao.delete(java.util.List)
public void deleteMatching(Class clazz, Map<String,?> fieldValues)
BusinessObjectDao
deleteMatching
in interface BusinessObjectDao
BusinessObjectDao.deleteMatching(java.lang.Class, java.util.Map)
public Object retrieve(Object object)
BusinessObjectDao
retrieve
in interface BusinessObjectDao
org.kuali.rice.krad.dao.BusinessObjectDao#retrieve(org.kuali.rice.krad.bo.PersistableBusinessObject)
public <T extends BusinessObject> T findByPrimaryKeyUsingKeyObject(Class<T> clazz, Object pkObject)
findByPrimaryKeyUsingKeyObject
in interface BusinessObjectDao
clazz
- the class of the object to retrievepkObject
- the value of the primary keyorg.kuali.rice.krad.dao.BusinessObjectDao#findByPrimaryKey(java.lang.Class, java.lang.Object)
public PersistableBusinessObject manageReadOnly(PersistableBusinessObject bo)
manageReadOnly
in interface BusinessObjectDao
bo
- the business object to managedBusinessObjectDao.manageReadOnly(org.kuali.rice.krad.bo.PersistableBusinessObject)
protected PersistenceStructureService getPersistenceStructureService()
public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
persistenceStructureService
- The persistenceStructureService to set.protected OjbCollectionHelper getOjbCollectionHelper()
public void setOjbCollectionHelper(OjbCollectionHelper ojbCollectionHelper)
ojbCollectionHelper
- Copyright © 2005–2016 The Kuali Foundation. All rights reserved.