|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.dao.proxy.BusinessObjectDaoProxy
@Transactional public class BusinessObjectDaoProxy
Field Summary | |
---|---|
private static HashMap<String,BusinessObjectDao> |
boDaoValues
|
private BusinessObjectDao |
businessObjectDaoJpa
|
private BusinessObjectDao |
businessObjectDaoOjb
|
private static KualiModuleService |
kualiModuleService
|
private static org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
BusinessObjectDaoProxy()
|
Method Summary | ||
---|---|---|
int |
countMatching(Class clazz,
Map<String,?> fieldValues)
|
|
int |
countMatching(Class clazz,
Map<String,?> positiveFieldValues,
Map<String,?> negativeFieldValues)
This method returns the number of matching result given the positive criterias and negative criterias. |
|
void |
delete(List<? extends PersistableBusinessObject> boList)
Deletes each business object in the given List from the database. |
|
void |
delete(PersistableBusinessObject bo)
Deletes a business object from the database. |
|
void |
deleteMatching(Class clazz,
Map<String,?> fieldValues)
Deletes the business objects matching the given fieldValues |
|
|
findAll(Class<T> clazz)
Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. |
|
|
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)
Defers to correct DAO for this class |
|
|
findBySinglePrimaryKey(Class<T> clazz,
Object primaryKey)
Retrieves an object instance identified by its primary key. |
|
|
findMatching(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. |
|
|
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 method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. |
|
private BusinessObjectDao |
getDao(Class clazz)
|
|
private static KualiModuleService |
getKualiModuleService()
|
|
PersistableBusinessObject |
manageReadOnly(PersistableBusinessObject bo)
Merges the given business object, but tells the ORM that the object is to be treated as Read Only, and even if it has changes, it will not be persisted to the database |
|
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 List of BusinessObjects. |
|
PersistableBusinessObject |
save(PersistableBusinessObject bo)
Saves any object that implements the BusinessObject interface. |
|
void |
setBusinessObjectDaoJpa(BusinessObjectDao businessObjectDaoJpa)
|
|
void |
setBusinessObjectDaoOjb(BusinessObjectDao businessObjectDaoOjb)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.log4j.Logger LOG
private BusinessObjectDao businessObjectDaoJpa
private BusinessObjectDao businessObjectDaoOjb
private static KualiModuleService kualiModuleService
private static HashMap<String,BusinessObjectDao> boDaoValues
Constructor Detail |
---|
public BusinessObjectDaoProxy()
Method Detail |
---|
private BusinessObjectDao getDao(Class clazz)
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)
BusinessObjectDao
countMatching
in interface BusinessObjectDao
positiveFieldValues
- 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 void delete(PersistableBusinessObject bo)
BusinessObjectDao
delete
in interface BusinessObjectDao
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 <T extends BusinessObject> Collection<T> findAll(Class<T> clazz)
BusinessObjectDao
findAll
in interface BusinessObjectDao
BusinessObjectDao.findAll(java.lang.Class)
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.findAllInactive(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> 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> 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> findMatching(Class<T> clazz, Map<String,?> fieldValues)
BusinessObjectDao
findMatching
in interface BusinessObjectDao
BusinessObjectDao.findMatching(java.lang.Class, java.util.Map)
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 <T extends BusinessObject> Collection<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending)
BusinessObjectDao
findMatchingOrderBy
in interface BusinessObjectDao
BusinessObjectDao.findMatchingOrderBy(java.lang.Class, java.util.Map, java.lang.String, boolean)
public PersistableBusinessObject retrieve(PersistableBusinessObject object)
BusinessObjectDao
retrieve
in interface BusinessObjectDao
BusinessObjectDao.retrieve(org.kuali.rice.krad.bo.PersistableBusinessObject)
public PersistableBusinessObject manageReadOnly(PersistableBusinessObject bo)
BusinessObjectDao
manageReadOnly
in interface BusinessObjectDao
bo
- the business object to managed
BusinessObjectDao.manageReadOnly(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 key
BusinessObjectDao.findByPrimaryKeyUsingKeyObject(java.lang.Class, java.lang.Object)
public PersistableBusinessObject save(PersistableBusinessObject bo)
BusinessObjectDao
save
in interface BusinessObjectDao
BusinessObjectDao.save(org.kuali.rice.krad.bo.PersistableBusinessObject)
public List<? extends PersistableBusinessObject> save(List businessObjects)
BusinessObjectDao
save
in interface BusinessObjectDao
BusinessObjectDao.save(java.util.List)
private static KualiModuleService getKualiModuleService()
public void setBusinessObjectDaoJpa(BusinessObjectDao businessObjectDaoJpa)
public void setBusinessObjectDaoOjb(BusinessObjectDao businessObjectDaoOjb)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |