DataObjectService@Deprecated public interface GenericDao
| Modifier and Type | Method and Description |
|---|---|
int |
countMatching(Class clazz,
Map fieldValues)
Deprecated.
|
int |
countMatching(Class clazz,
Map positiveFieldValues,
Map negativeFieldValues)
Deprecated.
This method returns the number of matching result given the positive
criterias and negative criterias.
|
void |
delete(List<Object> boList)
Deprecated.
Deletes each business object in the given List from the database.
|
void |
delete(Object bo)
Deprecated.
Deletes a business object from the database.
|
void |
deleteMatching(Class clazz,
Map fieldValues)
Deprecated.
Deletes the business objects matching the given fieldValues
|
Collection |
findAll(Class clazz)
Deprecated.
Retrieves a collection of business objects populated with data, such
that each record in the database populates a new object instance.
|
Collection |
findAllOrderBy(Class 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.
|
Object |
findById(Class clazz,
Object keyValue)
Deprecated.
Retrieves an object instance identified bys it primary key.
|
Object |
findByPrimaryKey(Class clazz,
Map primaryKeys)
Deprecated.
Retrieves an object instance identified by its primary keys and
values.
|
Object |
findByUniqueKey(Class clazz,
Map uniqueKeys)
Deprecated.
This method should be used to try and locate an object instance by passing
in unique keys and values.
|
Collection |
findMatching(Class clazz,
org.apache.ojb.broker.query.Criteria criteria)
Deprecated.
This method allows for a more flexible search by allowing the programmer to
construct the criteria however they need to and then pass that in for execution.
|
Collection |
findMatching(Class clazz,
org.apache.ojb.broker.query.Criteria criteria,
boolean selectForUpdate,
long wait)
Deprecated.
This method allows for a more flexible search by allowing the programmer to
construct the criteria however they need to and then pass that in for execution.
|
Collection |
findMatching(Class clazz,
Map 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.
|
Collection |
findMatching(Class clazz,
Map criteria,
boolean selectForUpdate,
long wait)
Deprecated.
|
Collection |
findMatchingByExample(Object object)
Deprecated.
This method allows you to pass in an object that has some fields filled in,
and will query underneath by automatically constructing a select statement
whose where clause is built automatically by looking at the non-null
attributes and using their values as part of the query.
|
Collection |
findMatchingOrderBy(Class clazz,
Map fieldValues,
String sortField,
boolean sortAscending)
Deprecated.
This method retrieves a collection of business objects populated with
data, such that each record in the database populates a new object
instance.
|
Object |
retrieve(Object object)
Deprecated.
Retrieves an object instance identified by the class of the given
object and the object's primary key values.
|
void |
save(List businessObjects)
Deprecated.
Saves a List of objects
|
void |
save(Object bo)
Deprecated.
Saves any object
|
void save(List businessObjects)
businessObjects - Object findById(Class clazz, Object keyValue)
clazz - the classid - the primary key valueObject findByPrimaryKey(Class clazz, Map primaryKeys)
clazz - primaryKeys - Object findByUniqueKey(Class clazz, Map uniqueKeys)
clazz - uniqueKeys - Object retrieve(Object object)
object - Collection findMatchingByExample(Object object)
object - Collection findAll(Class clazz)
clazz - Collection findAllOrderBy(Class clazz, String sortField, boolean sortAscending)
clazz - Collection findMatching(Class clazz, Map fieldValues)
clazz - fieldValues - Collection findMatching(Class clazz, org.apache.ojb.broker.query.Criteria criteria)
clazz - criteria - Collection findMatching(Class clazz, org.apache.ojb.broker.query.Criteria criteria, boolean selectForUpdate, long wait)
clazz - criteria - selectForUpdate - whether to perform a select for update querywait - millis to wait for select for updateCollection findMatching(Class clazz, Map criteria, boolean selectForUpdate, long wait)
int countMatching(Class clazz, Map fieldValues)
clazz - fieldValues - int countMatching(Class clazz, Map positiveFieldValues, Map negativeFieldValues)
clazz - positiveFieldValues - Map of fields and values for positive criterianegativeFieldValues - Map of fields and values for negative criteriaCollection findMatchingOrderBy(Class clazz, Map fieldValues, String sortField, boolean sortAscending)
clazz - fieldValues - void delete(Object bo)
bo - void delete(List<Object> boList)
boList - void deleteMatching(Class clazz, Map fieldValues)
clazz - fieldValues - Copyright © 2005–2018 The Kuali Foundation. All rights reserved.