Class AbstractLuteceHome<K,E,D extends IGenericDAO<K,E>>
java.lang.Object
fr.paris.lutece.portal.service.jpa.AbstractLuteceHome<K,E,D>
- Type Parameters:
K- the key typeE- the element typeD- the generic type
- All Implemented Interfaces:
IGenericHome<K,E>
public abstract class AbstractLuteceHome<K,E,D extends IGenericDAO<K,E>>
extends Object
implements IGenericHome<K,E>
The Class AbstractLuteceHome.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates the entityfindAll()Finds allfindByPrimaryKey(K key) Loads an entity by its keygetDao()Gets the dao.voidRemoves the entity if existsvoidSets the dao.voidMerges the entity
-
Constructor Details
-
AbstractLuteceHome
public AbstractLuteceHome()
-
-
Method Details
-
setDao
Sets the dao.- Parameters:
dao- the new dao
-
getDao
Gets the dao.- Returns:
- the dao
-
create
Creates the entity- Specified by:
createin interfaceIGenericHome<K,E> - Parameters:
entityBean- object
-
remove
Removes the entity if exists- Specified by:
removein interfaceIGenericHome<K,E> - Parameters:
key- The entity key
-
findByPrimaryKey
Loads an entity by its key- Specified by:
findByPrimaryKeyin interfaceIGenericHome<K,E> - Parameters:
key- primary key- Returns:
- the found entity,
nullotherwise.
-
update
Merges the entity- Specified by:
updatein interfaceIGenericHome<K,E> - Parameters:
entityBean- object
-
findAll
Finds all- Specified by:
findAllin interfaceIGenericHome<K,E> - Returns:
- the list
-