| java.lang.Object org.openharmonise.rm.metadata.AbstractPropertyInstance org.openharmonise.rm.metadata.GeneralPropertyInstance
GeneralPropertyInstance | public class GeneralPropertyInstance extends AbstractPropertyInstance implements Publishable(Code) | | PropertyInstance class for profile data held in string format in the
database.
author: Michael Bell version: $Revision: 1.5 $ |
Method Summary | |
public void | addValue(java.util.Date date) Adds a Date value to this instance. | public void | addValue(String sValue) Adds a String value to this instance. | protected void | addValue(String sValue, int nId) Adds a value to this instance. | protected void | changeDate(Calendar calendar, int nField, String sOperator, int nDelta) Changes date in the given calendar by the delta value given. | public boolean | getBooleanValue() Returns a boolean value for an instance of a property with a
boolean range. | public List | getCalculatedValues() Returns a list of processed values for this property instance. | protected ColumnRef | getColumnForData() | protected static String | getDBTableName(Profile prof) Returns the name of database table for a property instance associated to
the given Profile . | public static String | getDBTableName(String sClassname) Returns the name of the database table for a property instance associated
to the given AbstractProfileObject . | public static String | getDBTableName(AbstractProfiledObject profObj) Returns the name of the database table for a property instance associated
to the given AbstractProfileObject . | public Date | getDateValue(String sVal) Returns a Date object representation of the given String . | public ColumnRef | getInstanceColumnRef(String sColumn, boolean bIsHist) | public JoinConditions | getInstanceJoinConditions(String sObjectTag, boolean bIsOuter) | protected Object | getValueToStoreForValue(Object val) | public boolean | match(AbstractPropertyInstance propInst) | protected String | parseDate(String sDateFormula) Parses a date formula, creating a string representation of the absolute date. | public void | populate(Element xmlElement, State state) | public List | processResultSet(CachedResultSet resultSet, SelectStatement select) | public List | processResultSet(CachedResultSet resultSet, SelectStatement select, int limit) | public Element | publish(Element formEl, HarmoniseOutput xmlDoc, State state) | public void | removeValue(String sValue) | protected void | setDBTable(Profile profile) |
ATTRIB_DATEFORMAT | final public static String ATTRIB_DATEFORMAT(Code) | | Date format attribute used to specify the date format to be used
when publishing dates
|
CLMN_VALUE | final protected static String CLMN_VALUE(Code) | | The name of the database column containing the property instance values
|
TAG_DATA | final public static String TAG_DATA(Code) | | Data XML element name
|
GeneralPropertyInstance | public GeneralPropertyInstance()(Code) | | Constructs a property instance
|
GeneralPropertyInstance | public GeneralPropertyInstance(AbstractDataStoreInterface dbint)(Code) | | Constructs a property instance with an interface to the data store.
Parameters: dbint - the data store interface |
GeneralPropertyInstance | public GeneralPropertyInstance(AbstractDataStoreInterface dbintrf, Profile profile)(Code) | | Constructs a property instance with an interface to
the data store and a reference to the Profile which
will contain this property instance.
Parameters: dbintrf - the data store interface Parameters: profile - the owner Profile |
GeneralPropertyInstance | public GeneralPropertyInstance(AbstractDataStoreInterface dbintrf, int nPropertyId, Profile profile)(Code) | | Constructs an GeneralPropertyInstance which has an interface to
the database, has a reference to it's owner Profile and the
Property associated to this instance.
Parameters: dbintrf - the data store inteface Parameters: nPropertyId - the id of the Property that this object is an instance of Parameters: profile - the owner Profile |
GeneralPropertyInstance | public GeneralPropertyInstance(AbstractDataStoreInterface dbintrf, Property prop)(Code) | | Constructs a property instance of the specified Property
with an interface to the data store.
Parameters: dbintrf - the data store interface Parameters: prop - the Property that this object is an instance of |
GeneralPropertyInstance | public GeneralPropertyInstance(AbstractDataStoreInterface dbintrf, Property property, Profile profile)(Code) | | Constructs an GeneralPropertyInstance which has an interface to
the data store, has a reference to its owner Profile and the
Property associated to this instance.
Parameters: dbintrf - the data store interface Parameters: property - the Property Parameters: profile - the owner Profile |
changeDate | protected void changeDate(Calendar calendar, int nField, String sOperator, int nDelta)(Code) | | Changes date in the given calendar by the delta value given.
Parameters: calendar - calander representing date Parameters: nField - the time field Parameters: sOperator - '+' or '-' Parameters: nDelta - the amount of date or time to be added to the field |
getBooleanValue | public boolean getBooleanValue() throws DataAccessException(Code) | | Returns a boolean value for an instance of a property with a
boolean range.
a boolean value for this property instance throws: DataAccessException - if an error occurs accessing the property associated to this instance |
getCalculatedValues | public List getCalculatedValues() throws DataAccessException(Code) | | Returns a list of processed values for this property instance. This method
is applicable for those values which are formulas which can be calculated
at runtime.
the list of values which have been processed throws: DataAccessException - if an error occurs accessing the propertyassociated to this instance |
getDBTableName | protected static String getDBTableName(Profile prof)(Code) | | Returns the name of database table for a property instance associated to
the given Profile .
Parameters: prof - the Profile which will be the associated to the property #instance the database table name for the property instance |
getDBTableName | public static String getDBTableName(String sClassname) throws DataStoreException(Code) | | Returns the name of the database table for a property instance associated
to the given AbstractProfileObject .
Parameters: profObj - the profiled object the database table name for the property instance |
getDBTableName | public static String getDBTableName(AbstractProfiledObject profObj)(Code) | | Returns the name of the database table for a property instance associated
to the given AbstractProfileObject .
Parameters: profObj - the profiled object the database table name for the property instance |
getDateValue | public Date getDateValue(String sVal) throws DataAccessException(Code) | | Returns a Date object representation of the given String .
Parameters: sVal - the String value the Date obtained by parsing the String throws: DataAccessException - if an error occurs parsing the String or accessing the associated Property |
parseDate | protected String parseDate(String sDateFormula) throws ParseException(Code) | | Parses a date formula, creating a string representation of the absolute date.
Parameters: sDateFormula - the date formula to be parsed the resultant date throws: ParseException - if an error occurs parsing the date formula |
removeValue | public void removeValue(String sValue)(Code) | | Removes the specified value from this instance
Parameters: sValue - the value to remove |
|
|