|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Holds all the contacts in the OGo database. This combines Person and Enterprise information, as they both are logically contacts.
Method Summary | |
void |
delete(Enterprise enterprise)
|
void |
delete(Person person)
|
java.util.Iterator |
fetchContacts(FetchSpecification fetch_spec)
Fetches both Person and Enterprise records that match the FetchSpecification. |
java.lang.Object |
fetchEnterpriseMapId(int integer)
|
java.util.Iterator |
fetchEnterprises(FetchSpecification fetch_spec)
Fetches only Enterprise records that match the FetchSpecification. |
java.lang.Object |
fetchPersonMapId(int integer)
|
java.util.Iterator |
fetchPersons(FetchSpecification fetch_spec)
Fetches only Person records that match the FetchSpecification. |
Enterprise |
getEnterprise(int number)
|
Enterprise |
getEnterprise(java.lang.String number)
|
Enterprise |
getEnterpriseById(java.lang.String id)
|
java.util.Iterator |
getEnterprises(java.util.Map attributes)
|
java.util.Iterator |
getEnterprisesByAttributes(java.util.Map attributes)
Gets the Iterator of a List of Enterprise objects that have the attributes contained in the attributes argument. |
Person |
getPersonById(java.lang.String id)
|
Person |
getPersonByNumber(java.lang.String number)
|
java.util.Iterator |
getPersonsByAttributes(java.util.Map attributes)
Gets the Iterator of a List of Person objects that have the attributes contained in the attributes argument. |
Enterprise |
insertEnterprise(java.lang.String description)
|
Person |
insertPerson(java.lang.String first_name,
java.lang.String last_name)
|
Methods inherited from interface java.util.Observer |
update |
Method Detail |
public java.util.Iterator fetchContacts(FetchSpecification fetch_spec) throws OgoException, ConnectionException
fetch_spec
- A FetchSpecification describing the contacts to fetch.
null
if no matching records were found.
OgoException
ConnectionException
FetchSpecification
public java.util.Iterator fetchPersons(FetchSpecification fetch_spec) throws OgoException, ConnectionException
fetch_spec
- A FetchSpecification describing the contacts to fetch.
null
if no matching records were found.
OgoException
ConnectionException
FetchSpecification
public java.util.Iterator fetchEnterprises(FetchSpecification fetch_spec) throws OgoException, ConnectionException
fetch_spec
- A FetchSpecification describing the contacts to fetch.
null
if no matching records were found.
OgoException
ConnectionException
FetchSpecification
public void delete(Enterprise enterprise) throws OgoException, ConnectionException
OgoException
ConnectionException
public void delete(Person person) throws OgoException, ConnectionException
OgoException
ConnectionException
public Enterprise insertEnterprise(java.lang.String description) throws OgoException, ConnectionException
OgoException
ConnectionException
public Person insertPerson(java.lang.String first_name, java.lang.String last_name) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.lang.Object fetchPersonMapId(int integer) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.lang.Object fetchEnterpriseMapId(int integer) throws OgoException, ConnectionException
OgoException
ConnectionException
public Enterprise getEnterpriseById(java.lang.String id) throws OgoException, ConnectionException
OgoException
ConnectionException
public Person getPersonById(java.lang.String id) throws OgoException, ConnectionException
OgoException
ConnectionException
public Person getPersonByNumber(java.lang.String number) throws OgoException, ConnectionException
OgoException
ConnectionException
public Enterprise getEnterprise(int number) throws OgoException, ConnectionException
OgoException
ConnectionException
public Enterprise getEnterprise(java.lang.String number) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.util.Iterator getEnterprises(java.util.Map attributes) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.util.Iterator getPersonsByAttributes(java.util.Map attributes) throws OgoException, ConnectionException
attributes
- a Map with key= name of attribute (eg name,...)
and value=String for the value of the attribute;
OgoException
ConnectionException
public java.util.Iterator getEnterprisesByAttributes(java.util.Map attributes) throws OgoException, ConnectionException
attributes
- a Map with key= name of attribute (eg name,...)
and value=String for the value of the attribute;
OgoException
ConnectionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |