K
- the key typeE
- the element typeD
- the generic typepublic abstract class AbstractLuteceHome<K,E,D extends IGenericDAO<K,E>> extends Object implements IGenericHome<K,E>
Constructor and Description |
---|
AbstractLuteceHome() |
Modifier and Type | Method and Description |
---|---|
void |
create(E entityBean)
Creates the entity
|
List<E> |
findAll()
Finds all
|
E |
findByPrimaryKey(K key)
Loads an entity by its key
|
D |
getDao()
Gets the dao.
|
void |
remove(K key)
Removes the entity if exists
|
void |
setDao(D dao)
Sets the dao.
|
void |
update(E entityBean)
Merges the entity
|
public void setDao(D dao)
dao
- the new daopublic D 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 keynull
otherwise.@Transactional public void update(E entityBean)
update
in interface IGenericHome<K,E>
entityBean
- objectCopyright © 2020 City of Paris. All rights reserved.