Class JPAOwnerDAO
- java.lang.Object
-
- ejava.examples.ejbsessionbank.jpa.JPAOwnerDAO
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static String
COUNT_ACCOUNT_REFERENCES_QUERY
private EntityManager
em
(package private) static org.slf4j.Logger
log
-
Fields inherited from interface ejava.examples.ejbsessionbank.dao.OwnerDAO
GET_OWNERS_QUERY
-
-
Constructor Summary
Constructors Constructor Description JPAOwnerDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Owner
createOwner(Owner owner)
List<Owner>
findOwners(String queryName, Map<String,Object> params, int index, int count)
List<Owner>
getAccountOwners(Account account)
Owner
getOwnerById(long id)
Owner
removeOwner(Owner owner)
void
setEntityManager(EntityManager em)
-
-
-
Field Detail
-
log
static final org.slf4j.Logger log
-
COUNT_ACCOUNT_REFERENCES_QUERY
static final String COUNT_ACCOUNT_REFERENCES_QUERY
- See Also:
- Constant Field Values
-
em
private EntityManager em
-
-
Method Detail
-
setEntityManager
public void setEntityManager(EntityManager em)
-
createOwner
public Owner createOwner(Owner owner) throws DAOException
- Specified by:
createOwner
in interfaceOwnerDAO
- Throws:
DAOException
-
findOwners
public List<Owner> findOwners(String queryName, Map<String,Object> params, int index, int count) throws DAOException
- Specified by:
findOwners
in interfaceOwnerDAO
- Throws:
DAOException
-
getOwnerById
public Owner getOwnerById(long id) throws DAOException
- Specified by:
getOwnerById
in interfaceOwnerDAO
- Throws:
DAOException
-
removeOwner
public Owner removeOwner(Owner owner) throws DAOException
- Specified by:
removeOwner
in interfaceOwnerDAO
- Throws:
DAOException
-
getAccountOwners
public List<Owner> getAccountOwners(Account account) throws DAOException
- Specified by:
getAccountOwners
in interfaceOwnerDAO
- Throws:
DAOException
-
-