Package net.sf.basedb.core.data
Class KitData
- All Implemented Interfaces:
AnnotatableData
,IdentifiableData
,LoggableData
,NameableData
,OwnableData
,RegisteredData
,RemovableData
,ShareableData
,SubtypableData
This class holds information about a kit.
- Since:
- 3.7
- Author:
- Nicklas
- See Also:
- Hibernate: class
- table="`Kits`" lazy="true"
-
Field Summary
Modifier and TypeFieldDescriptionprivate Date
private Date
private boolean
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 expiration date for the kit.Get the subtype of the item.boolean
A flag indicating if this kit is no longer active.void
setEntryDate
(Date entryDate) void
setExpirationDate
(Date expirationDate) void
setInactive
(boolean inactive) void
setItemSubtype
(ItemSubtypeData subtype) Set the subtype of the item.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
-
entryDate
-
subtype
-
inactive
private boolean inactive -
expirationDate
-
-
Constructor Details
-
KitData
public KitData()
-
-
Method Details
-
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
-
isInactive
public boolean isInactive()A flag indicating if this kit is no longer active.- Hibernate: property
- column="`inactive`" type="boolean" not-null="true"
-
setInactive
public void setInactive(boolean inactive) -
getExpirationDate
Get expiration date for the kit.- Hibernate: property
- column="`expiration_date`" type="date" not-null="false"
-
setExpirationDate
-