gov.nih.nci.caarray.services.contact
Class ContactManagerDB
java.lang.Object
gov.nih.nci.caarray.services.util.db.ManagerDB
gov.nih.nci.caarray.services.contact.ContactManagerDB
public class ContactManagerDB
- extends ManagerDB
- Author:
- TranP
Methods inherited from class gov.nih.nci.caarray.services.util.db.ManagerDB |
clearCache, close, countObjects, countObjects, deleteByQuery, deleteMtoNRelation, deleteObject, deleteObject, deleteObject, deleteObjectByQuery, exists, getIdentifiable, getObject, getObject, getObject, getObject, getObject, getObject, getObjectIterator, getObjectIterator, getObjects, getObjects, getObjects, getPersistenceBroker, getSqlInLimit, insertMtoNRelation, insertMtoNRelation, insertObject, insertObject, link, link, removeFromCache, retrieveReference, retrieveReferences, setCascadeDelete, setCascadeRetrieve, setCascadeStore, storeObject, storeObject, unlink, unlink, updateObject, updateObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContactManagerDB
public ContactManagerDB()
getPersons
public Person[] getPersons()
throws java.lang.Exception
- Throws:
java.lang.Exception
getPersons
public Person[] getPersons(PersonSearchCriteria criteria)
throws java.lang.Exception
- Parameters:
criteria
-
- Returns:
- MAGE Person object
- Throws:
java.lang.Exception
getOrganizations
public Organization[] getOrganizations()
throws java.lang.Exception
- Throws:
java.lang.Exception
getOrganizations
public Organization[] getOrganizations(OrganizationSearchCriteria criteria)
throws java.lang.Exception
- Parameters:
criteria
-
- Returns:
- MAGE Organization object
- Throws:
java.lang.Exception
getPerson
public Person getPerson(long id)
throws java.lang.Exception
- Throws:
java.lang.Exception
getOrganization
public Organization getOrganization(long id)
throws java.lang.Exception
- Throws:
java.lang.Exception
addPerson
public long addPerson(Person person)
throws java.lang.Exception
- Parameters:
person
-
- Returns:
-
- Throws:
InsertObjectException
ObjectNotExistException
- - If the associated affiliation does not
exist.
DBException
java.lang.Exception
updatePerson
public void updatePerson(Person person)
throws java.lang.Exception
- Parameters:
person
-
- Throws:
ObjectNotExistException
- - If the associated affiliation does not
exist.
DBException
java.lang.Exception
deletePerson
public void deletePerson(long id)
throws java.lang.Exception
- Parameters:
id
-
- Throws:
ObjectNotExistException
DBException
java.lang.Exception
addOrganization
public long addOrganization(Organization org)
throws java.lang.Exception
- Parameters:
org
-
- Returns:
-
- Throws:
InsertObjectException
DBException
java.lang.Exception
updateOrganization
public void updateOrganization(Organization org)
throws java.lang.Exception
- Parameters:
org
-
- Throws:
InsertObjectException
DBException
java.lang.Exception
deleteOrganization
public void deleteOrganization(long id)
throws java.lang.Exception
- Parameters:
id
-
- Throws:
ObjectNotExistException
ObjectInUseException
DBException
java.lang.Exception