Package be.gaudry.eid.dao.jpa
Class JpaBeID
java.lang.Object
be.gaudry.eid.dao.jpa.JpaBeID
- All Implemented Interfaces:
IBeID
- Since:
- 1.0 Oct 29, 2010, 1.0
- Version:
- %I%, %G%
- Author:
- Steph GAUDRY
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
finalize()
loadPerson(int id)
loadPerson(String firstName, String lastName)
void
Saves a person without checking if this person already exists into the persistencesaveIfNotExists(PersonExt person)
Saves a person if this person doesn't exist into the persistence.
-
Field Details
-
em
protected javax.persistence.EntityManager em -
tx
protected javax.persistence.EntityTransaction tx
-
-
Constructor Details
-
JpaBeID
public JpaBeID()
-
-
Method Details
-
finalize
-
save
Description copied from interface:IBeID
Saves a person without checking if this person already exists into the persistence -
saveIfNotExists
Description copied from interface:IBeID
Saves a person if this person doesn't exist into the persistence. If persons matching this argument exist into the persistence, these persons are returned.- Specified by:
saveIfNotExists
in interfaceIBeID
- Parameters:
person
-PersonExt
to save- Returns:
- Collection of matching persons, or null if no matches and person saved
-
loadPerson
- Specified by:
loadPerson
in interfaceIBeID
-
loadPerson
- Specified by:
loadPerson
in interfaceIBeID
-