2.8.1: 2008-09-10

net.sf.basedb.core.data
Class ProtocolData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by net.sf.basedb.core.data.OwnedData
          extended by net.sf.basedb.core.data.SharedData
              extended by net.sf.basedb.core.data.CommonData
                  extended by net.sf.basedb.core.data.ProtocolData
All Implemented Interfaces:
FileAttachableData, IdentifiableData, NameableData, OwnableData, RemovableData, ShareableData

public class ProtocolData
extends CommonData
implements FileAttachableData

Version:
2.0
Author:
enell
See Also:
Protocol, Protocol overview
Hibernate: class
table="`Protocols`" lazy="true"

Field Summary
private  FileData file
           
private  Set<AnnotationTypeData> parameters
           
private  ProtocolTypeData protocolType
           
 
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
 
Constructor Summary
ProtocolData()
           
 
Method Summary
 FileData getFile()
          Get the file that is attached to the item.
 Set<AnnotationTypeData> getParameters()
          This set manages the parameters for this protcol.
 ProtocolTypeData getProtocolType()
          Get the associated ProtocolTypeData item.
 void setFile(FileData file)
          Attach a file to the item.
(package private)  void setParameters(Set<AnnotationTypeData> parameters)
           
 void setProtocolType(ProtocolTypeData protocolType)
           
 
Methods inherited from class net.sf.basedb.core.data.CommonData
getDescription, getName, isRemoved, setDescription, setName, setRemoved
 
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
 
Methods inherited from class net.sf.basedb.core.data.OwnedData
getOwner, setOwner
 
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
 
Methods inherited from interface net.sf.basedb.core.data.OwnableData
getOwner, setOwner
 

Field Detail

file

private FileData file

protocolType

private ProtocolTypeData protocolType

parameters

private Set<AnnotationTypeData> parameters
Constructor Detail

ProtocolData

public ProtocolData()
Method Detail

getFile

public FileData getFile()
Description copied from interface: FileAttachableData
Get the file that is attached to the item.

Specified by:
getFile in interface FileAttachableData
Returns:
A FileData object or null if no file is attached

setFile

public void setFile(FileData file)
Description copied from interface: FileAttachableData
Attach a file to the item. Null is allowed.

Specified by:
setFile in interface FileAttachableData

getProtocolType

public ProtocolTypeData getProtocolType()
Get the associated ProtocolTypeData item.

Hibernate: many-to-one
column="`protocoltype_id`" not-null="true" outer-join="false"

setProtocolType

public void setProtocolType(ProtocolTypeData protocolType)

getParameters

public Set<AnnotationTypeData> getParameters()
This set manages the parameters for this protcol.

Since:
2.2
Hibernate: set
table="`ProtocolParameters`" lazy="true"
Hibernate: collection-key
column="`protocol_id`"
Hibernate: collection-many-to-many
column="`annotationtype_id`" class="net.sf.basedb.core.data.AnnotationTypeData"

setParameters

void setParameters(Set<AnnotationTypeData> parameters)

2.8.1: 2008-09-10