|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.jpa.AbstractLuteceHome<K,E,DAO>
K - the key typeE - the element typeDAO - the generic typepublic abstract class AbstractLuteceHome<K,E,DAO extends IGenericDAO<K,E>>
The Class AbstractLuteceHome.
| Constructor Summary | |
|---|---|
AbstractLuteceHome()
|
|
| Method Summary | |
|---|---|
void |
create(E entityBean)
Creates the entity |
java.util.List<E> |
findAll()
Finds all |
E |
findByPrimaryKey(K key)
Loads an entity by its key |
DAO |
getDao()
Gets the dao. |
void |
remove(K key)
Removes the entity if exists |
void |
setDao(DAO dao)
Sets the dao. |
void |
update(E entityBean)
Merges the entity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractLuteceHome()
| Method Detail |
|---|
public void setDao(DAO dao)
dao - the new daopublic DAO getDao()
@Transactional public void create(E entityBean)
create in interface IGenericHome<K,E>entityBean - object@Transactional public void remove(K key)
remove in interface IGenericHome<K,E>key - The entity keypublic E findByPrimaryKey(K key)
findByPrimaryKey in interface IGenericHome<K,E>key - primary key
null otherwise.@Transactional public void update(E entityBean)
update in interface IGenericHome<K,E>entityBean - objectpublic java.util.List<E> findAll()
findAll in interface IGenericHome<K,E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||