gov.nih.nci.caarray.services.contact
Class ContactManagerDB

java.lang.Object
  extended by gov.nih.nci.caarray.services.util.db.ManagerDB
      extended by gov.nih.nci.caarray.services.contact.ContactManagerDB

public class ContactManagerDB
extends ManagerDB

Author:
TranP

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.services.util.db.ManagerDB
CASCADE_LINK, CASCADE_NONE, CASCADE_OBJECT, ID_UNSET
 
Constructor Summary
ContactManagerDB()
           
 
Method Summary
 long addOrganization(Organization org)
           
 long addPerson(Person person)
           
 void deleteOrganization(long id)
           
 void deletePerson(long id)
           
 Organization getOrganization(long id)
           
 Organization[] getOrganizations()
           
 Organization[] getOrganizations(OrganizationSearchCriteria criteria)
           
 Person getPerson(long id)
           
 Person[] getPersons()
           
 Person[] getPersons(PersonSearchCriteria criteria)
           
 void updateOrganization(Organization org)
           
 void updatePerson(Person person)
           
 
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
 

Constructor Detail

ContactManagerDB

public ContactManagerDB()
Method Detail

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