Package net.sf.basedb.core.data
Class HardwareData
- All Implemented Interfaces:
AnnotatableData
,IdentifiableData
,LoggableData
,NameableData
,OwnableData
,RegisteredData
,RemovableData
,ShareableData
,SubtypableData
public class HardwareData extends AnnotatedData implements RegisteredData, SubtypableData
This class holds information about a Hardware.
- Version:
- 2.0
- Author:
- enell
- See Also:
Hardware
, Developer documentation: Protocols, hardware and software- Last modified
- $Date: 2013-10-15 14:11:28 +0200 (ti, 15 okt 2013) $
- Hibernate: class
- table="`Hardware`" lazy="true"
-
Field Summary
Fields Modifier and Type Field Description private Date
entryDate
static int
MAX_VERSIONSTRING_LENGTH
private ItemSubtypeData
subtype
private String
versionString
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
-
Constructor Summary
Constructors Constructor Description HardwareData()
-
Method Summary
Modifier and Type Method Description Date
getEntryDate()
Get the date this item was added to the database.ItemSubtypeData
getItemSubtype()
Get the subtype of the item.String
getVersionString()
void
setEntryDate(Date entryDate)
void
setItemSubtype(ItemSubtypeData subtype)
Set the subtype of the item.void
setVersionString(String versionString)
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
-
MAX_VERSIONSTRING_LENGTH
public static final int MAX_VERSIONSTRING_LENGTH- See Also:
- Constant Field Values
-
versionString
-
-
Constructor Details
-
HardwareData
public HardwareData()
-
-
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
-
getVersionString
- Hibernate: property
- column="`version_string`" type="string" length="255" not-null="false"
-
setVersionString
-