|
||||||||||
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>
public abstract class AbstractLuteceHome<K,E,DAO extends IGenericDAO<K,E>>
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()
|
void |
remove(K key)
Removes the entity if exists |
void |
setDao(DAO 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)
public 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 |