Package net.sf.basedb.core.data
Class ProtocolData
- All Implemented Interfaces:
AnnotatableData
,FileAttachableData
,IdentifiableData
,LoggableData
,NameableData
,OwnableData
,RegisteredData
,RemovableData
,ShareableData
,SubtypableData
public class ProtocolData
extends AnnotatedData
implements FileAttachableData, RegisteredData, SubtypableData
- Version:
- 2.0
- Author:
- enell
- See Also:
- Hibernate: class
- table="`Protocols`" lazy="true"
-
Field Summary
Modifier and TypeFieldDescriptionprivate Date
private String
private FileData
static final int
The maximum length of the external id that can be stored in the database.private Set<AnnotationTypeData>
private ItemSubtypeData
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the date this item was added to the database.Get the external id for the protocol.getFile()
Get the file that is attached to the item.Get the subtype of the item.This set manages the parameters for this protcol.void
setEntryDate
(Date entryDate) void
setExternalId
(String externalId) void
Attach a file to the item.void
setItemSubtype
(ItemSubtypeData subtype) Set the subtype of the item.(package private) void
setParameters
(Set<AnnotationTypeData> parameters) Methods inherited from class net.sf.basedb.core.data.AnnotatedData
getAnnotations, getAnnotationSet, setAnnotations, setAnnotationSet
Methods inherited from class net.sf.basedb.core.data.CommonData
getDescription, getName, getRemovedBy, setDescription, setName, setRemovedBy
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
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 Details
-
file
-
entryDate
-
subtype
-
MAX_EXTERNAL_ID_LENGTH
public static final int MAX_EXTERNAL_ID_LENGTHThe maximum length of the external id that can be stored in the database.- Since:
- 2.15
- See Also:
-
externalId
-
parameters
-
-
Constructor Details
-
ProtocolData
public ProtocolData()
-
-
Method Details
-
getFile
Description copied from interface:FileAttachableData
Get the file that is attached to the item.- Specified by:
getFile
in interfaceFileAttachableData
- Returns:
- A
FileData
object or null if no file is attached
-
setFile
Description copied from interface:FileAttachableData
Attach a file to the item. Null is allowed.- Specified by:
setFile
in interfaceFileAttachableData
-
getEntryDate
Description copied from interface:RegisteredData
Get the date this item was added to the database. The value is generated at creation time and can't be modified later.- Specified by:
getEntryDate
in interfaceRegisteredData
-
setEntryDate
-
getItemSubtype
Description copied from interface:SubtypableData
Get the subtype of the item.- Specified by:
getItemSubtype
in interfaceSubtypableData
-
setItemSubtype
Description copied from interface:SubtypableData
Set the subtype of the item.- Specified by:
setItemSubtype
in interfaceSubtypableData
-
getExternalId
Get the external id for the protocol.- Since:
- 2.15
- Hibernate: property
- column="`external_id`" type="string" length="255" not-null="false"
-
setExternalId
-
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
-