gov.nih.nci.caarray.domain
Class AbstractCaArrayEntity

java.lang.Object
  extended by gov.nih.nci.caarray.domain.AbstractCaArrayObject
      extended by gov.nih.nci.caarray.domain.AbstractCaArrayEntity
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, java.io.Serializable
Direct Known Subclasses:
AbstractArrayData, AbstractContact, AbstractExperimentDesignNode, AbstractProbeAnnotation, AbstractUnitableValue, Address, Array, ArrayDesign, AssayType, CaArrayFile, Category, Country, DesignElementList, Experiment, ExperimentContact, Factor, Gene, Image, Parameter, ProbeGroup, Project, Protocol, ProtocolApplication, Publication, State, Term, TermSource

public abstract class AbstractCaArrayEntity
extends AbstractCaArrayObject

Base class for all caArray domain entities.

Author:
ETavela
See Also:
Serialized Form

Field Summary
static java.lang.String CAARRAY_LSID_AUTHORITY
          LSID Authority for CAARRAY.
static java.lang.String CAARRAY_LSID_NAMESPACE
          LSID Namespace for CAARRAY.
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH
 
Constructor Summary
  AbstractCaArrayEntity()
          Default constructor.
protected AbstractCaArrayEntity(java.lang.String lsidAuthority, java.lang.String lsidNamespace, java.lang.String lsidObjectId)
          Constructor with LSID information.
 
Method Summary
 java.lang.String getLsid()
          Returns the concatenated the LSID for this entity.
 java.lang.String getLsidAuthority()
          Returns the LSID authority.
 java.lang.String getLsidNamespace()
          Returns the LSID namespace.
 java.lang.String getLsidObjectId()
          Returns the LSID object ID.
 void setLsid(LSID lsid)
          Set the LSID for this entity.
 void setLsid(java.lang.String lsid)
          Set the LSID for this entity.
 void setLsidForEntity(java.lang.String lsidString)
          Sets the LSID components for this entity.
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
equals, getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, hashCode, setCaBigId, setId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CAARRAY_LSID_AUTHORITY

public static final java.lang.String CAARRAY_LSID_AUTHORITY
LSID Authority for CAARRAY. Used for entities which require an LSID but do not have one assigned from elsewhere

See Also:
Constant Field Values

CAARRAY_LSID_NAMESPACE

public static final java.lang.String CAARRAY_LSID_NAMESPACE
LSID Namespace for CAARRAY. Used for entities which require an LSID but do not have one assigned from elsewhere

See Also:
Constant Field Values
Constructor Detail

AbstractCaArrayEntity

public AbstractCaArrayEntity()
Default constructor. All lsid information will be blank.


AbstractCaArrayEntity

protected AbstractCaArrayEntity(java.lang.String lsidAuthority,
                                java.lang.String lsidNamespace,
                                java.lang.String lsidObjectId)
Constructor with LSID information.

Parameters:
lsidAuthority - authority
lsidNamespace - namespace
lsidObjectId - object id
Method Detail

getLsidAuthority

public java.lang.String getLsidAuthority()
Returns the LSID authority.

Returns:
the LSID authority

getLsidNamespace

public java.lang.String getLsidNamespace()
Returns the LSID namespace.

Returns:
the LSID namespace

getLsidObjectId

public java.lang.String getLsidObjectId()
Returns the LSID object ID.

Returns:
the LSID object ID

setLsidForEntity

public void setLsidForEntity(java.lang.String lsidString)
Sets the LSID components for this entity. If the authority and namespace are both absent, the default caArray authority and namespace will be used. The LSID string is of the form authority:namespace:objectId where authority can be absent, or authority and namespace can both be absent.

Parameters:
lsidString - the LSID string

setLsid

public void setLsid(LSID lsid)
Set the LSID for this entity.

Parameters:
lsid - the LSID to set.

setLsid

public void setLsid(java.lang.String lsid)
Set the LSID for this entity.

Parameters:
lsid - the LSID to set.

getLsid

public java.lang.String getLsid()
Returns the concatenated the LSID for this entity.

Returns:
the LSID.