3.1.2: 2012-07-31

net.sf.basedb.core.data
Class ReporterClonePropertyData

java.lang.Object
  extended by net.sf.basedb.core.data.ReporterClonePropertyData

public class ReporterClonePropertyData
extends Object

This class holds information about cloned reporter properties.

Since:
3.1
Author:
Nicklas
See Also:
ReporterCloneTemplate, Developer documentation: Reporters
Last modified
$Date $

Field Summary
private  int averageMethod
           
private  String column
           
private  String description
           
private  boolean extendedProperty
           
private  int length
           
private  boolean mandatory
           
static int MAX_COLUMN_LENGTH
          The maximum length of the column that can be stored in the database.
private  boolean nullable
           
private  String title
           
private  int valueType
           
 
Constructor Summary
ReporterClonePropertyData()
           
 
Method Summary
 int getAverageMethod()
          The code for the averate method to use when calculating averages.
 String getColumn()
          Get the name of database column.
 String getDescription()
          Get a description of the property.
 int getLength()
          The maximum length of string value types.
 String getTitle()
          Get the title of the property.
 int getValueType()
          The code for the value type.
 boolean isExtendedProperty()
          If the column is an extended or "static" property.
 boolean isMandatory()
          If the column is a mandatory that must be in all clone templates.
 boolean isNullable()
          If the column is nullable or not.
 void setAverageMethod(int averageMethod)
           
 void setColumn(String column)
           
 void setDescription(String description)
           
 void setExtendedProperty(boolean extendedProperty)
           
 void setLength(int length)
           
 void setMandatory(boolean mandatory)
           
 void setNullable(boolean nullable)
           
 void setTitle(String title)
           
 void setValueType(int valueType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

private String title

description

private String description

valueType

private int valueType

MAX_COLUMN_LENGTH

public static final int MAX_COLUMN_LENGTH
The maximum length of the column that can be stored in the database.

See Also:
setColumn(String), Constant Field Values

column

private String column

length

private int length

nullable

private boolean nullable

averageMethod

private int averageMethod

extendedProperty

private boolean extendedProperty

mandatory

private boolean mandatory
Constructor Detail

ReporterClonePropertyData

public ReporterClonePropertyData()
Method Detail

getTitle

public String getTitle()
Get the title of the property.

Hibernate: property
column="`title`" type="string" length="255" not-null="true" update="false"

setTitle

public void setTitle(String title)

getDescription

public String getDescription()
Get a description of the property.

Hibernate: property
column="`description`" type="text" not-null="false" update="false"

setDescription

public void setDescription(String description)

getValueType

public int getValueType()
The code for the value type.

Hibernate: property
column="`value_type`" type="int" not-null="true" update="false"

setValueType

public void setValueType(int valueType)

getColumn

public String getColumn()
Get the name of database column.

Hibernate: property
column="`column`" type="string" length="255" not-null="true" update="false"

setColumn

public void setColumn(String column)

getLength

public int getLength()
The maximum length of string value types.

Hibernate: property
column="`length`" type="int" not-null="true"

setLength

public void setLength(int length)

isNullable

public boolean isNullable()
If the column is nullable or not.

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

setNullable

public void setNullable(boolean nullable)

getAverageMethod

public int getAverageMethod()
The code for the averate method to use when calculating averages.

Hibernate: property
column="`average_method`" type="int" not-null="true" update="false"

setAverageMethod

public void setAverageMethod(int averageMethod)

isExtendedProperty

public boolean isExtendedProperty()
If the column is an extended or "static" property.

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

setExtendedProperty

public void setExtendedProperty(boolean extendedProperty)

isMandatory

public boolean isMandatory()
If the column is a mandatory that must be in all clone templates.

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

setMandatory

public void setMandatory(boolean mandatory)

3.1.2: 2012-07-31