gov.nih.nci.caarray.domain.sample
Class AbstractCharacteristic

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.AbstractUnitableValue
              extended by gov.nih.nci.caarray.domain.sample.AbstractCharacteristic
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, UnitableValue, java.io.Serializable
Direct Known Subclasses:
MeasurementCharacteristic, TermBasedCharacteristic, UserDefinedCharacteristic

public abstract class AbstractCharacteristic
extends AbstractUnitableValue

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
AbstractCharacteristic()
          Hibernate-only constructor.
AbstractCharacteristic(Category category)
          Creates a new AbstractCharacteristic with given category.
AbstractCharacteristic(Category category, Term unit)
          Creates a new AbstractCharacteristic with given category and unit.
 
Method Summary
 AbstractBioMaterial getBioMaterial()
           
 Category getCategory()
           
 Term getUnit()
          Gets the unit.
 void setBioMaterial(AbstractBioMaterial abstractBioMaterial)
           
 void setCategory(Category category)
          Set the category.
 void setUnit(Term unitVal)
          Sets the unit.
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractUnitableValue
getDisplayValue
 
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
equals, getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, hashCode, setCaBigId, setId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nih.nci.caarray.domain.UnitableValue
getDisplayValueWithoutUnit
 

Constructor Detail

AbstractCharacteristic

public AbstractCharacteristic()
Hibernate-only constructor.


AbstractCharacteristic

public AbstractCharacteristic(Category category)
Creates a new AbstractCharacteristic with given category.

Parameters:
category - the category

AbstractCharacteristic

public AbstractCharacteristic(Category category,
                              Term unit)
Creates a new AbstractCharacteristic with given category and unit.

Parameters:
category - the category
unit - the unit
Method Detail

getBioMaterial

public AbstractBioMaterial getBioMaterial()
Returns:
the abstractBioMaterial

setBioMaterial

public void setBioMaterial(AbstractBioMaterial abstractBioMaterial)
Parameters:
abstractBioMaterial - the abstractBioMaterial to set

getCategory

@NotNull
public Category getCategory()
Returns:
the category for this characteristic

setCategory

public void setCategory(Category category)
Set the category.

Parameters:
category - The category to set

getUnit

public Term getUnit()
Gets the unit.

Returns:
the unit

setUnit

public void setUnit(Term unitVal)
Sets the unit.

Parameters:
unitVal - the unit