gov.nih.nci.caarray.domain.protocol
Class Protocol

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.protocol.Protocol
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, java.io.Serializable

public class Protocol
extends AbstractCaArrayEntity

Class representing a protocol.

Author:
Scott Miller
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
Protocol()
          Deprecated. 
Protocol(java.lang.String name, Term type, TermSource source)
          Constructor taking all required fields.
 
Method Summary
 boolean equals(java.lang.Object o)
          The default comparison uses the id.
 java.lang.String getContact()
          Gets the contact.
 java.lang.String getDescription()
          Gets the description.
 java.lang.String getHardware()
          Gets the hardware.
 java.lang.String getName()
          Gets the name.
 java.util.Set<Parameter> getParameters()
          Gets the parameters.
 java.lang.String getSoftware()
          Gets the software.
 TermSource getSource()
           
 Term getType()
          Gets the type.
 java.lang.String getUrl()
          Gets the url.
 int hashCode()
          Default hashCode goes off of id.
 void setContact(java.lang.String contactVal)
          Sets the contact.
 void setDescription(java.lang.String descriptionVal)
          Sets the description.
 void setHardware(java.lang.String hardwareVal)
          Sets the hardware.
 void setName(java.lang.String nameVal)
          Sets the name.
 void setSoftware(java.lang.String softwareVal)
          Sets the software.
 void setSource(TermSource source)
           
 void setType(Term typeVal)
          Sets the type.
 void setUrl(java.lang.String urlVal)
          Sets the url.
 
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, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Protocol

@Deprecated
public Protocol()
Deprecated. 

Constructor for use by hibernate and struts only.


Protocol

public Protocol(java.lang.String name,
                Term type,
                TermSource source)
Constructor taking all required fields.

Parameters:
name - the name.
type - the type.
source - the source.
Method Detail

getContact

@Length(max=254)
public java.lang.String getContact()
Gets the contact.

Returns:
the contact

setContact

public void setContact(java.lang.String contactVal)
Sets the contact.

Parameters:
contactVal - the contact

getDescription

@Length(max=2000)
public java.lang.String getDescription()
Gets the description.

Returns:
the description

setDescription

public void setDescription(java.lang.String descriptionVal)
Sets the description.

Parameters:
descriptionVal - the description

getHardware

@Length(max=254)
public java.lang.String getHardware()
Gets the hardware.

Returns:
the hardware

setHardware

public void setHardware(java.lang.String hardwareVal)
Sets the hardware.

Parameters:
hardwareVal - the hardware

getName

@Length(min=1,
        max=254)
@NotNull
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

getSoftware

@Length(max=254)
public java.lang.String getSoftware()
Gets the software.

Returns:
the software

setSoftware

public void setSoftware(java.lang.String softwareVal)
Sets the software.

Parameters:
softwareVal - the software

getType

@NotNull
public Term getType()
Gets the type.

Returns:
the type

setType

public void setType(Term typeVal)
Sets the type.

Parameters:
typeVal - the type

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

getParameters

public java.util.Set<Parameter> getParameters()
Gets the parameters.

Returns:
the parameters

getSource

@NotNull
public TermSource getSource()
Returns:
the source

setSource

public void setSource(TermSource source)
Parameters:
source - the source to set

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