|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- entity typepublic interface BambooObjectDao<T extends BambooObject>
Generic Dao for BambooObject
s
Method Summary | ||
---|---|---|
void |
delete(T t)
Removes the given entity from the database |
|
|
deleteAll(java.util.Collection<E> entities)
Remove all elements in the collection from database |
|
long |
executeReturnLong(org.springframework.orm.hibernate.HibernateCallback callback)
Execute a HibernateCallback and return Long |
|
|
findAll(java.lang.Class<E> aClass)
Finds all the entities that implement the given Class |
|
|
findById(long id,
java.lang.Class<E> aClass)
Find an entity by its id |
|
void |
save(T t)
Saves the given entity. |
|
|
saveAll(java.util.Collection<E> entities)
Save all entities in the collection to the database |
Method Detail |
---|
void save(@NotNull T t)
BambooEntityObject
this method will:
- update EntityObject.getLastModificationDate()
- set EntityObject.getCreationDate()
if the object has not been saved
t
- entity to be saved<E extends T> void saveAll(@NotNull java.util.Collection<E> entities)
entities
- entities to be saved to databasevoid delete(@NotNull T t)
t
- entity to be removed<E extends T> void deleteAll(@NotNull java.util.Collection<E> entities)
entities
- elements to be removed from database@NotNull <E extends T> java.util.Collection<E> findAll(@NotNull java.lang.Class<E> aClass)
Class
aClass
- class of entity
@Nullable <E extends T> E findById(long id, @NotNull java.lang.Class<E> aClass)
id
- id of entityaClass
- class of entity
long executeReturnLong(@NotNull org.springframework.orm.hibernate.HibernateCallback callback)
HibernateCallback
and return Long
callback
- callback to be executed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |