Package fr.paris.lutece.util.jpa
Interface IGenericHome<K,E>
- Type Parameters:
K- key classE- entity class
- All Known Implementing Classes:
AbstractLuteceHome
public interface IGenericHome<K,E>
Interface IGenericLuteceHome
-
Method Summary
-
Method Details
-
create
Creates the entity- Parameters:
entity- object
-
update
Merges the entity- Parameters:
entity- object
-
remove
Removes the entity if exists- Parameters:
key- The entity key
-
findByPrimaryKey
Loads an entity by its key- Parameters:
pKey- primary key- Returns:
- the found entity,
nullotherwise.
-
findAll
Finds all- Returns:
- the list
-