gov.nih.nci.caarray.domain.vocabulary
Class TermSource

java.lang.Object
  extended by gov.nih.nci.caarray.domain.AbstractCaArrayObject
      extended by gov.nih.nci.caarray.domain.AbstractCaArrayEntity
          extended by gov.nih.nci.caarray.domain.vocabulary.TermSource
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, java.io.Serializable

@UniqueConstraints(constraints={@UniqueConstraint(fields={@UniqueConstraintField(name="name"),@UniqueConstraintField(name="version",nullsEqual=true)}),@UniqueConstraint(fields={@UniqueConstraintField(name="url"),@UniqueConstraintField(name="version",nullsEqual=true)})},
                   message="{termSource.uniqueConstraint}")
public class TermSource
extends AbstractCaArrayEntity

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
CAARRAY_LSID_AUTHORITY, CAARRAY_LSID_NAMESPACE
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH
 
Constructor Summary
TermSource()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          The default comparison uses the id.
 java.lang.String getName()
          Gets the name.
 java.lang.String getNameAndVersion()
           
 java.lang.String getUrl()
          Gets the url.
 java.lang.String getVersion()
          Gets the version.
 int hashCode()
          Default hashCode goes off of id.
 void setName(java.lang.String nameVal)
          Sets the name.
 void setUrl(java.lang.String urlVal)
          Sets the url.
 void setVersion(java.lang.String versionVal)
          Sets the version.
 java.lang.String toString()
          
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
getLsid, getLsidAuthority, getLsidNamespace, getLsidObjectId, setLsid, setLsid, setLsidForEntity
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, setCaBigId, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TermSource

public TermSource()
Method Detail

getName

@NotNull
@Length(min=1,
        max=254)
public java.lang.String getName()
Gets the name.

Returns:
the name

setName

public void setName(java.lang.String nameVal)
Sets the name.

Parameters:
nameVal - the name

getUrl

@Length(max=254)
public java.lang.String getUrl()
Gets the url.

Returns:
the url

setUrl

public void setUrl(java.lang.String urlVal)
Sets the url.

Parameters:
urlVal - the url

getVersion

public java.lang.String getVersion()
Gets the version.

Returns:
the version

setVersion

public void setVersion(java.lang.String versionVal)
Sets the version.

Parameters:
versionVal - the version

getNameAndVersion

public java.lang.String getNameAndVersion()
Returns:
the name and the version, if any, of this term source

equals

public boolean equals(java.lang.Object o)
The default comparison uses the id.

Overrides:
equals in class AbstractCaArrayObject
Parameters:
o - other object
Returns:
equal or not

hashCode

public int hashCode()
Default hashCode goes off of id.

Overrides:
hashCode in class AbstractCaArrayObject
Returns:
hashCode

toString

public java.lang.String toString()

Overrides:
toString in class AbstractCaArrayObject