|
||||||||||
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 |
|
long |
executeReturnLong(org.springframework.orm.hibernate.HibernateCallback callback)
Excute a HibernateCallback and return Long |
|
|
findAll(java.lang.Class<E> aClass)
Finds all the entitites 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. |
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
- void delete(@NotNull T t)
t
- @NotNull <E extends T> java.util.Collection<E> findAll(@NotNull java.lang.Class<E> aClass)
Class
aClass
-
@Nullable <E extends T> E findById(long id, java.lang.Class<E> aClass)
id
- aClass
-
long executeReturnLong(@NotNull org.springframework.orm.hibernate.HibernateCallback callback)
HibernateCallback
and return Long
callback
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |