3.2.4: 2013-12-06

net.sf.basedb.core.data
Class ReporterCloneTemplateData

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.ReporterCloneTemplateData
All Implemented Interfaces:
IdentifiableData, LoggableData, NameableData, OwnableData, RegisteredData, RemovableData, ShareableData

public class ReporterCloneTemplateData
extends CommonData
implements RegisteredData, LoggableData

A template for holding information about reporter properties that are/should be cloned in the dynamic database. Unlocked templates are created by a admin/power user and can be used in a cloning operation. The cloning operation creates a locked copy of the template that is attached to the VirtualDbData item.

Since:
3.1
Author:
Nicklas
See Also:
ReporterCloneTemplate, Developer documentation: Reporters
Last modified
$Date $
Hibernate: class
table="`ReporterCloneTemplates`" lazy="true"

Field Summary
private  long bytes
           
private  Date entryDate
           
private  boolean locked
           
private  Map<String,ReporterClonePropertyData> properties
           
 
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
 
Constructor Summary
ReporterCloneTemplateData()
           
 
Method Summary
 long getBytes()
          The number of bytes the cloned reporter information uses in the dynamic database.
 Date getEntryDate()
          Get the date this item was added to the database.
 Map<String,ReporterClonePropertyData> getProperties()
          Get the map that manages cloned properties.
 boolean isLocked()
          The template is locked when it is used by a VirtualDbData.
 void setBytes(long bytes)
           
 void setEntryDate(Date entryDate)
           
 void setLocked(boolean locked)
           
(package private)  void setProperties(Map<String,ReporterClonePropertyData> properties)
           
 
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

entryDate

private Date entryDate

locked

private boolean locked

bytes

private long bytes

properties

private Map<String,ReporterClonePropertyData> properties
Constructor Detail

ReporterCloneTemplateData

public ReporterCloneTemplateData()
Method Detail

getEntryDate

public Date 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 interface RegisteredData

setEntryDate

public void setEntryDate(Date entryDate)

isLocked

public boolean isLocked()
The template is locked when it is used by a VirtualDbData. The locked status can never be changed.

Hibernate: property
column="`locked`" type="boolean" not-null="true" update="false"

setLocked

public void setLocked(boolean locked)

getBytes

public long getBytes()
The number of bytes the cloned reporter information uses in the dynamic database.

Hibernate: property
column="`bytes`" type="long" not-null="true"

setBytes

public void setBytes(long bytes)

getProperties

public Map<String,ReporterClonePropertyData> getProperties()
Get the map that manages cloned properties.

Hibernate: map
table="`ReporterCloneProperties`" lazy="true"
Hibernate: collection-key
column="`template_id`"
Hibernate: collection-index
column="`property_name`" type="string" length="255"
Hibernate: collection-composite-element
class="net.sf.basedb.core.data.ReporterClonePropertyData" not-null="true"

setProperties

void setProperties(Map<String,ReporterClonePropertyData> properties)

3.2.4: 2013-12-06