| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
COUNT_ACCOUNT_REFERENCES_QUERY |
private EntityManager |
em |
(package private) static org.apache.commons.logging.Log |
log |
GET_OWNERS_QUERY| Constructor and Description |
|---|
JPAOwnerDAO() |
| Modifier and Type | Method and 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) |
static final org.apache.commons.logging.Log log
static final String COUNT_ACCOUNT_REFERENCES_QUERY
private EntityManager em
public void setEntityManager(EntityManager em)
public Owner createOwner(Owner owner) throws DAOException
createOwner in interface OwnerDAODAOExceptionpublic List<Owner> findOwners(String queryName, Map<String,Object> params, int index, int count) throws DAOException
findOwners in interface OwnerDAODAOExceptionpublic Owner getOwnerById(long id) throws DAOException
getOwnerById in interface OwnerDAODAOExceptionpublic Owner removeOwner(Owner owner) throws DAOException
removeOwner in interface OwnerDAODAOExceptionpublic List<Owner> getAccountOwners(Account account) throws DAOException
getAccountOwners in interface OwnerDAODAOExceptionCopyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.