gov.nih.nci.mageom.domain.Description.impl
Class DatabaseEntryImpl

java.lang.Object
  extended by gov.nih.nci.mageom.domain.impl.MAGEOMObject
      extended by gov.nih.nci.mageom.domain.impl.ExtendableImpl
          extended by gov.nih.nci.mageom.domain.Description.impl.DatabaseEntryImpl
All Implemented Interfaces:
DatabaseEntry, Extendable, java.io.Serializable

public class DatabaseEntryImpl
extends ExtendableImpl
implements DatabaseEntry

A reference to a record in a database.

Version:
%I%, %G%
See Also:
Serialized Form

Field Summary
protected  java.lang.String accession
          The identifier used to look up the record.
protected  java.lang.String accessionVersion
          The appropriate version of the accession (if applicable).
protected static java.util.ArrayList allAssociationMethods
           
protected static java.util.Hashtable associationMethods
           
protected  Database database
          DOCUMENT ME
protected  java.lang.Long databaseId
          The internal ID of the associated database object.
protected  OntologyEntry type
          DOCUMENT ME
protected  java.lang.Long typeId
          The internal ID of the associated type object.
protected  java.lang.String URI
          The location of the record.
 
Fields inherited from class gov.nih.nci.mageom.domain.impl.ExtendableImpl
propertySets, propertySetsCount, securedElementId
 
Constructor Summary
DatabaseEntryImpl()
          Default constructor
 
Method Summary
 java.lang.String getAccession()
          Returns the value of this DatabaseEntry object's accession attribute.
 java.lang.String getAccessionVersion()
          Returns the value of this DatabaseEntry object's accessionVersion attribute.
 Database getDatabase()
          Returns the value of this DatabaseEntry object's database attribute.
 OntologyEntry getType()
          Returns the value of this DatabaseEntry object's type attribute.
 java.lang.String getURI()
          Returns the value of this DatabaseEntry object's URI attribute.
 java.util.Hashtable getXMLMethodDescriptors()
          Returns a Hashtable containing XMLMethodDescriptors descriptors of the association methods of this object.
protected  void init()
           
 DatabaseEntry[] searchDatabaseEntries(DatabaseEntrySearchCriteria criteria)
          Returns an array of DatabaseEntry objects that satisfy the given DatabaseEntrySearchCriteria.
 void setAccession(java.lang.String p_accession)
          Sets the accession attribute.
 void setAccessionVersion(java.lang.String p_accessionVersion)
          Sets the accessionVersion attribute.
 void setDatabase(Database p_database)
          Sets the database attribute.
 void setType(OntologyEntry p_type)
          Sets the type attribute.
 void setURI(java.lang.String p_URI)
          Sets the URI attribute.
 java.lang.String toString()
          Returns a String representation of this object suitable for console display.
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
           
 org.w3c.dom.Element toXMLDoc(org.w3c.dom.Document doc)
           
 org.w3c.dom.Element toXMLProcessor(org.w3c.dom.Document doc, java.util.ArrayList fillOutValues)
          Returns an XML representation of the object.
 
Methods inherited from class gov.nih.nci.mageom.domain.impl.ExtendableImpl
getPropertySets, getPropertySetsCount, getSecuredElementId, searchExtendables, setPropertySets, setSecuredElementId
 
Methods inherited from class gov.nih.nci.mageom.domain.impl.MAGEOMObject
getId, getIsEditable, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nih.nci.mageom.domain.Extendable
getPropertySets, setPropertySets
 

Field Detail

allAssociationMethods

protected static java.util.ArrayList allAssociationMethods

associationMethods

protected static java.util.Hashtable associationMethods

accession

protected java.lang.String accession
The identifier used to look up the record.


accessionVersion

protected java.lang.String accessionVersion
The appropriate version of the accession (if applicable).


URI

protected java.lang.String URI
The location of the record.


database

protected Database database
DOCUMENT ME


databaseId

protected java.lang.Long databaseId
The internal ID of the associated database object.


type

protected OntologyEntry type
DOCUMENT ME


typeId

protected java.lang.Long typeId
The internal ID of the associated type object.

Constructor Detail

DatabaseEntryImpl

public DatabaseEntryImpl()
Default constructor

Method Detail

init

protected void init()
Overrides:
init in class ExtendableImpl

searchDatabaseEntries

public DatabaseEntry[] searchDatabaseEntries(DatabaseEntrySearchCriteria criteria)
                                      throws gov.nih.nci.common.search.SearchException
Returns an array of DatabaseEntry objects that satisfy the given DatabaseEntrySearchCriteria.

Parameters:
criteria - The DatabaseEntrySearchCriteria which represents a query for DatabaseEntry objects.
Returns:
An array of DatabaseEntry objects.
Throws:
A - gov.nih.nci.common.search.SearchException if there is a problem searching.
gov.nih.nci.common.search.SearchException

setAccession

public void setAccession(java.lang.String p_accession)
Sets the accession attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a DatabaseEntry object.

Specified by:
setAccession in interface DatabaseEntry
Parameters:
p_accession - The new value for accession.
See Also:
DatabaseEntry.getAccession()

getAccession

public java.lang.String getAccession()
Description copied from interface: DatabaseEntry
Returns the value of this DatabaseEntry object's accession attribute. Description of accession: The identifier used to look up the record.

Specified by:
getAccession in interface DatabaseEntry
Returns:
String The value of accession.
See Also:
DatabaseEntry.getAccession()

setAccessionVersion

public void setAccessionVersion(java.lang.String p_accessionVersion)
Sets the accessionVersion attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a DatabaseEntry object.

Specified by:
setAccessionVersion in interface DatabaseEntry
Parameters:
p_accessionVersion - The new value for accessionVersion.
See Also:
DatabaseEntry.getAccessionVersion()

getAccessionVersion

public java.lang.String getAccessionVersion()
Description copied from interface: DatabaseEntry
Returns the value of this DatabaseEntry object's accessionVersion attribute. Description of accessionVersion: The appropriate version of the accession (if applicable).

Specified by:
getAccessionVersion in interface DatabaseEntry
Returns:
String The value of accessionVersion.
See Also:
DatabaseEntry.getAccessionVersion()

setURI

public void setURI(java.lang.String p_URI)
Sets the URI attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a DatabaseEntry object.

Specified by:
setURI in interface DatabaseEntry
Parameters:
p_URI - The new value for URI.
See Also:
DatabaseEntry.getURI()

getURI

public java.lang.String getURI()
Description copied from interface: DatabaseEntry
Returns the value of this DatabaseEntry object's URI attribute. Description of URI: The location of the record.

Specified by:
getURI in interface DatabaseEntry
Returns:
String The value of URI.
See Also:
DatabaseEntry.getURI()

setDatabase

public void setDatabase(Database p_database)
Sets the database attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a DatabaseEntry object.

Specified by:
setDatabase in interface DatabaseEntry
Parameters:
p_database - The new value for database.
See Also:
DatabaseEntry.getDatabase()

getDatabase

public Database getDatabase()
Description copied from interface: DatabaseEntry
Returns the value of this DatabaseEntry object's database attribute.

Specified by:
getDatabase in interface DatabaseEntry
Returns:
gov.nih.nci.mageom.bean.Description.Database The value of database.
See Also:
DatabaseEntry.getDatabase()

setType

public void setType(OntologyEntry p_type)
Sets the type attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a DatabaseEntry object.

Specified by:
setType in interface DatabaseEntry
Parameters:
p_type - The new value for type.
See Also:
DatabaseEntry.getType()

getType

public OntologyEntry getType()
Description copied from interface: DatabaseEntry
Returns the value of this DatabaseEntry object's type attribute.

Specified by:
getType in interface DatabaseEntry
Returns:
gov.nih.nci.mageom.bean.Description.OntologyEntry The value of type.
See Also:
DatabaseEntry.getType()

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
Overrides:
toXML in class ExtendableImpl

toXMLDoc

public org.w3c.dom.Element toXMLDoc(org.w3c.dom.Document doc)
Overrides:
toXMLDoc in class ExtendableImpl

toXMLProcessor

public org.w3c.dom.Element toXMLProcessor(org.w3c.dom.Document doc,
                                          java.util.ArrayList fillOutValues)
Returns an XML representation of the object. The document is not modified.

Overrides:
toXMLProcessor in class ExtendableImpl
Parameters:
doc - the working document
fillOutValues - a list of attribute names that should have full XML for their values.
Returns:
org.w3c.dom.Element an XML representation

getXMLMethodDescriptors

public java.util.Hashtable getXMLMethodDescriptors()
Returns a Hashtable containing XMLMethodDescriptors descriptors of the association methods of this object.

Overrides:
getXMLMethodDescriptors in class ExtendableImpl
Returns:
Hashtable The Hashtable of descriptors.

toString

public java.lang.String toString()
Returns a String representation of this object suitable for console display.

Overrides:
toString in class ExtendableImpl
Returns:
the String representation.