T
- public interface GenericDao<T> extends FreeQuery
Modifier and Type | Method and Description |
---|---|
Long |
delete(Long id)
A special Delete operation on the entity that will remove the entity and related entities based on id.
|
void |
delete(T persistentObject) |
T |
load(Object objectId) |
T |
load(Object objectId,
Class entityClass)
In some situations the DAO represents an Interface or perhaps a parent of the actual Entity./
The exact type of the entity would have to be Supplied.
|
T |
save(T transientObject) |
void delete(T persistentObject)
Long delete(Long id)
id
- Long
T load(Object objectId, Class entityClass)
objectId
- as Id for EntityentityClass
- as Class
of entityCopyright © 2018. All rights reserved.