|
3.1.2: 2012-07-31 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.core.ExtendedProperty
net.sf.basedb.core.ClonableProperty
public class ClonableProperty
Represents a reporter property that can be cloned to a per-experiment
table in the dynamic database. A cloned property is more or less the same
as an ExtendedProperty
but with added support for regular
(static) properties.
Field Summary | |
---|---|
static String |
DESCRIPTION
The property name of the "static" property ReporterData.getDescription() |
static String |
ENTRY_DATE
The property name of the "static" property ReporterData.getEntryDate() |
static String |
EXTERNAL_ID
The property name of the "static" property ReporterData.getExternalId() . |
static String |
ID
The property name of the "static" property BasicData.getId() . |
private boolean |
isExtendedProperty
|
private boolean |
isMandatory
|
static String |
LAST_SOURCE
The property name of the "static" property ReporterData.getLastSource() |
static String |
LAST_UPDATE
The property name of the "static" property ReporterData.getLastUpdate() |
private static boolean |
MANDATORY
|
static String |
NAME
The property name of the "static" property ReporterData.getName() |
private static boolean |
NULLABLE
|
static String |
SYMBOL
The property name of the "static" property ReporterData.getSymbol() |
static String |
VERSION
The property name of the "static" property BasicData.getVersion() . |
Constructor Summary | |
---|---|
private |
ClonableProperty(ExtendedProperty p)
Create a cloned property representation of an extended property |
(package private) |
ClonableProperty(String propertyName,
ReporterClonePropertyData d)
Create a cloned property representation of a data-layer object. |
private |
ClonableProperty(String propertyName,
String title,
String description,
String column,
Type valueType,
int length,
boolean nullable,
Formula.AverageMethod averageMethod,
boolean isMandatory)
Create a cloned property representation of a static property. |
Method Summary | |
---|---|
int |
compareTo(ClonableProperty o)
Sort by title, but mandatory properties before non-madatory. |
static ClonableProperty |
create(String name)
Create a cloned property from either an extended or static property. |
static ClonableProperty |
createFromExtended(String name)
Create a cloned property representation of an extended property. |
static ClonableProperty |
createFromRegular(String name)
Create a cloned property that represents the "static" property with the given name. |
boolean |
equals(Object o)
|
boolean |
exists()
Check if this cloned property still exists. |
static List<ClonableProperty> |
getAll()
Get a list containing cloned property representation for all static and extended properties. |
static List<ClonableProperty> |
getAllMandatory()
Get a list with all mandatory properties that must be cloned. |
int |
hashCode()
|
boolean |
isExtendedProperty()
Is this cloned property an extended property or a "static" property? |
boolean |
isMandatory()
Check if this property is mandatory in all clone templates. |
(package private) ReporterClonePropertyData |
toData()
Create a data-layer reprsentation of the cloned property. |
String |
toString()
|
Methods inherited from class net.sf.basedb.core.ExtendedProperty |
---|
getAverageMethod, getColumn, getDescription, getLength, getName, getTitle, getType, getUrl, isAveragable, isInsertable, isNullable, isUpdateable, isValidName, parseString, parseString, toTransferable, validateValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final boolean MANDATORY
private static final boolean NULLABLE
public static String ID
BasicData.getId()
.
This property is mandatory in clone templates.
public static String VERSION
BasicData.getVersion()
.
This property is mandatory in clone templates.
public static String EXTERNAL_ID
ReporterData.getExternalId()
.
This property is mandatory in clone templates.
public static String NAME
ReporterData.getName()
public static String SYMBOL
ReporterData.getSymbol()
public static String ENTRY_DATE
ReporterData.getEntryDate()
public static String LAST_SOURCE
ReporterData.getLastSource()
public static String LAST_UPDATE
ReporterData.getLastUpdate()
public static String DESCRIPTION
ReporterData.getDescription()
private final boolean isMandatory
private final boolean isExtendedProperty
Constructor Detail |
---|
private ClonableProperty(String propertyName, String title, String description, String column, Type valueType, int length, boolean nullable, Formula.AverageMethod averageMethod, boolean isMandatory)
private ClonableProperty(ExtendedProperty p)
p
- The extended property to cloneClonableProperty(String propertyName, ReporterClonePropertyData d)
propertyName
- The name of the propertyd
- Other metadata for the propertyMethod Detail |
---|
public static ClonableProperty createFromRegular(String name)
name
- The name of the static property
ItemNotFoundException
- If a property with the given name
doesn't existpublic static ClonableProperty createFromExtended(String name)
name
- The name of the extended property
ItemNotFoundException
- If a property with the given name
doesn't existpublic static ClonableProperty create(String name)
name
- The name of the property
ItemNotFoundException
- If a property with the given name
doesn't existpublic static List<ClonableProperty> getAll()
public static List<ClonableProperty> getAllMandatory()
ReporterClonePropertyData toData()
public boolean isExtendedProperty()
public boolean isMandatory()
public boolean exists()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(ClonableProperty o)
compareTo
in interface Comparable<ClonableProperty>
|
3.1.2: 2012-07-31 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |