|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Dao<T extends DalObject>
| Method Summary | |
|---|---|
void |
delete(T o)
deletes an object from the database |
java.util.Collection<T> |
getAll()
retrieves all objects of the managed type from the database |
T |
getByBusinessKey(T dm)
retrieves an object that matches the business key properties in the dm. |
T |
getByPk(java.io.Serializable pk)
retrieves an object from the database by its primary key |
java.util.Collection<T> |
getByProperties(T dm,
java.lang.Object... names)
retrieves all objects that match the properties. |
T |
getByUniqueProperties(T dm)
retrieves an object that matches the unique properties of the provided dm. |
T |
merge(T o)
merges an object to the database. |
T |
save(T o)
saves an object to the database |
| Method Detail |
|---|
void delete(T o)
o - DalObject to deletejava.util.Collection<T> getAll()
T getByPk(java.io.Serializable pk)
throws org.springframework.dao.DataAccessException
pk - primary key
org.springframework.dao.DataAccessException
java.util.Collection<T> getByProperties(T dm,
java.lang.Object... names)
dm
as an "example" object on which properties named names are
being considered in the query
dm - example domain objectnames - property named to fetch by
T getByUniqueProperties(T dm)
Column(unique=true) persistence annotation.
dm - example domain object
T getByBusinessKey(T dm)
BusinessKey
annotation.
dm - example domain object
T save(T o)
o - DalObject to save
T merge(T o)
o - DalObject to merge
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||