|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.webmancer.db.AbstractAttribute
public abstract class AbstractAttribute
Constructor Summary | |
---|---|
AbstractAttribute()
|
Method Summary | |
---|---|
abstract java.lang.Object |
convertDbToInternal(java.lang.Object dbValue)
|
abstract java.lang.String |
convertInternalToInput(java.lang.Object internal)
|
abstract java.lang.String |
convertInternalToOutput(java.lang.Object internal)
|
java.lang.String |
getDescription()
Gets the description of the attribute. |
java.lang.String |
getId()
Gets the identification string of the attribute (must be unique in DataSet). |
java.lang.String |
getInitialValue()
Gets the value that is used as initial if a new record is edited by a user. |
int |
getMaximumInputLength()
Returns -1, which means unlimited length of user input. |
java.lang.String |
getName()
Gets the human readable name of the attribute. |
IDataSet |
getParentDataSet()
Gets IDataSet the attribute belongs to. |
boolean |
isDerived()
Returns true if the attribute's value is derived (computed) from some others' attributes' values. |
boolean |
isInDatabase()
Returns true if the attribute is directly stored in the persistent storage. |
boolean |
isMandatory()
Determines whether the attribute is mandatory, i.e. it must always have a value assigned to it. |
boolean |
isPrimaryKey()
Returns true if the attribute is a primary key of parent dataset. |
java.lang.String |
preProcessConditionInput(java.lang.String input)
|
java.lang.String |
preProcessInput(java.lang.String input)
|
void |
setDerived(boolean derived)
Sets the derived. |
void |
setDescription(java.lang.String description)
Sets the description. |
void |
setId(java.lang.String id)
Sets the id. |
void |
setInDatabase(boolean inDatabase)
Sets the inDatabase. |
void |
setInitialValue(java.lang.String initialValue)
Sets the initialValue. |
void |
setMandatory(boolean mandatory)
Sets the mandatory. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setParentDataSet(IDataSet parent)
Sets the parent. |
void |
setPrimary(boolean primary)
Sets the primary. |
java.util.Collection<java.lang.String> |
validateInput(java.lang.String input)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAttribute()
Method Detail |
---|
public java.lang.String getDescription()
IFrontEndAttributeInformation
getDescription
in interface IFrontEndAttributeInformation
IFrontEndAttributeInformation.getDescription()
public java.lang.String getInitialValue()
IFrontEndAttributeInformation
getInitialValue
in interface IFrontEndAttributeInformation
IFrontEndAttributeInformation.getInitialValue()
public java.lang.String getName()
IFrontEndAttributeInformation
getName
in interface IFrontEndAttributeInformation
IFrontEndAttributeInformation.getName()
public boolean isMandatory()
IFrontEndAttributeInformation
isMandatory
in interface IFrontEndAttributeInformation
true
if the attribute is mandatory.IFrontEndAttributeInformation.isMandatory()
public java.lang.String getId()
ICommonAttributeInformation.getId()
public IDataSet getParentDataSet()
IDataSet
the attribute belongs to.
IDataSet
the attribute belongs to.ICommonAttributeInformation.getParentDataSet()
public boolean isPrimaryKey()
true
if the attribute is a primary key of parent dataset.
true
if the attribute is a primary key of parent dataset.ICommonAttributeInformation.isPrimaryKey()
public boolean isDerived()
IBackEndAttributeInformation
true
if the attribute's value is derived (computed) from some others' attributes' values.
If false
, the attribute's value is not computed, i.e. it is always specified by the user.
isDerived
in interface IBackEndAttributeInformation
true
if the attribute's value is derived from values of other attributes,
false
otherwise.IBackEndAttributeInformation.isDerived()
public boolean isInDatabase()
IBackEndAttributeInformation
true
if the attribute is directly stored in the persistent storage. If false
,
the attribute represents information that has not to be directly stored in the database, e.g. if this attribute's
value is used in computation of some other's attribute value.
isInDatabase
in interface IBackEndAttributeInformation
true
if the attribute is directly stored in the database, false
otherwise.IBackEndAttributeInformation.isInDatabase()
public void setDerived(boolean derived)
derived
- the derived to setpublic void setDescription(java.lang.String description)
description
- the description to setpublic void setId(java.lang.String id)
id
- the id to setpublic void setInDatabase(boolean inDatabase)
inDatabase
- the inDatabase to setpublic void setInitialValue(java.lang.String initialValue)
initialValue
- the initialValue to setpublic void setMandatory(boolean mandatory)
mandatory
- the mandatory to setpublic void setName(java.lang.String name)
name
- the name to setpublic void setParentDataSet(IDataSet parent)
parent
- the parent to setpublic void setPrimary(boolean primary)
primary
- the primary to setpublic java.lang.String preProcessConditionInput(java.lang.String input)
preProcessConditionInput
in interface IFrontEndAttributeInformation
IFrontEndAttributeInformation.preProcessConditionInput(java.lang.String)
public java.lang.String preProcessInput(java.lang.String input)
preProcessInput
in interface IFrontEndAttributeInformation
IFrontEndAttributeInformation.preProcessInput(java.lang.String)
public java.util.Collection<java.lang.String> validateInput(java.lang.String input)
validateInput
in interface IFrontEndAttributeInformation
IFrontEndAttributeInformation.validateInput(java.lang.String)
public int getMaximumInputLength()
getMaximumInputLength
in interface IFrontEndAttributeInformation
IFrontEndAttributeInformation.getMaximumInputLength()
public abstract java.lang.String convertInternalToInput(java.lang.Object internal)
convertInternalToInput
in interface IFrontEndAttributeInformation
IFrontEndAttributeInformation.convertInternalToInput(java.lang.Object)
public abstract java.lang.String convertInternalToOutput(java.lang.Object internal)
convertInternalToOutput
in interface IFrontEndAttributeInformation
IFrontEndAttributeInformation.convertInternalToOutput(java.lang.Object)
public abstract java.lang.Object convertDbToInternal(java.lang.Object dbValue)
convertDbToInternal
in interface IBackEndAttributeInformation
IBackEndAttributeInformation.convertDbToInternal(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |