|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GenericDao<T>
Define interface which provides a CRUD functions for all database requests.
Method Summary | |
---|---|
boolean |
addAddressToParty(AddressParty addressParty)
|
boolean |
addNameToParty(NameParty nameParty)
|
void |
create(T object)
Persists the given object to the database. |
boolean |
deleteById(T object)
|
java.util.List<T> |
retrieveAll(T object)
|
T |
retrieveById(T object)
Search in the database for an object, with the given id . |
boolean |
updateById(T object)
|
Method Detail |
---|
void create(T object)
object
- Object to be persisted.
java.lang.IllegalArgumentException
- If the given argument is null
.
DataIntegrityViolationException
- If an entity with this id
already exist.T retrieveById(T object)
id
.
object
- Contains the id
.
null
.
java.lang.IllegalArgumentException
- If the given argument is null
, or its id is null
.java.util.List<T> retrieveAll(T object)
boolean updateById(T object)
boolean deleteById(T object)
boolean addAddressToParty(AddressParty addressParty)
boolean addNameToParty(NameParty nameParty)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |