net.sf.webmancer.db
Interface IBackEndAttributeInformation

All Known Subinterfaces:
IAttribute
All Known Implementing Classes:
AbstractAttribute, DecimalAttribute, RegexAttribute, StringAttribute

public interface IBackEndAttributeInformation

Author:
Michal Burda

Method Summary
 java.lang.Object convertDbToInternal(java.lang.Object dbValue)
           
 java.lang.String getId()
          Gets the identification string of the attribute (must be unique in DataSet).
 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 isPrimaryKey()
          Returns true if the attribute is a primary key of parent dataset.
 

Method Detail

isInDatabase

boolean isInDatabase()
Returns 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.

Returns:
true if the attribute is directly stored in the database, false otherwise.

isDerived

boolean isDerived()
Returns 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.

Returns:
true if the attribute's value is derived from values of other attributes, false otherwise.

convertDbToInternal

java.lang.Object convertDbToInternal(java.lang.Object dbValue)
Parameters:
dbValue -
Returns:

getId

java.lang.String getId()
Gets the identification string of the attribute (must be unique in DataSet).

Returns:
The identification string of the attribute

getParentDataSet

IDataSet getParentDataSet()
Gets IDataSet the attribute belongs to.

Returns:
The IDataSet the attribute belongs to.

isPrimaryKey

boolean isPrimaryKey()
Returns true if the attribute is a primary key of parent dataset.

Returns:
true if the attribute is a primary key of parent dataset.


Copyright © 2006-2007. All Rights Reserved.