| java.lang.Object org.openharmonise.rm.metadata.AbstractPropertyInstance org.openharmonise.rm.metadata.ProfilePropertyInstance
ProfilePropertyInstance | public class ProfilePropertyInstance extends AbstractPropertyInstance implements Publishable(Code) | | The ProfilePropertyInstance class represents an instance of a
Property which can have other property instances as values.
author: Michael Bell version: $Revision: 1.4.2.1 $ |
Method Summary | |
public void | addValue(Profile prof) Adds the given Profile as a value of this instance. | public void | addValue(Profile prof, int nId) Adds the given Profile as a value of this instance. | protected void | delete() Deletes this instance, which in turn will delete all the
Profile values and their property instances. | protected ColumnRef | getColumnForData() | public static ColumnRef | getColumnRef(AbstractProfiledObject profObj, String sColumn, boolean bIsHist) Returns the column reference for the column in the profile database table
belonging to the specified AbstractProfiledObject . | public static String | getDBTableName(Profile profile) Returns the database table which holds the data for this
property instance type for the specified Profile . | public ColumnRef | getInstanceColumnRef(String sColumn, boolean bIsHist) | public JoinConditions | getInstanceJoinConditions(String sObjectTag, boolean bIsOuter) | protected Object | getValueToStoreForValue(Object val) | protected boolean | isChanged() | public void | markValuesAsNew() Mark all values as new, i.e. | public boolean | match(AbstractPropertyInstance propInst) | 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(Profile prof) Removes the given Profile as a value of this instance. | protected void | save(Profile prof) | protected void | setDBTable(Profile profile) | protected void | setHistorical(boolean bIsHist) | protected void | update(Profile prof) |
CLMN_PROFILE_PARENT | final protected static String CLMN_PROFILE_PARENT(Code) | | Parent profile id database column name
|
TAG_PROPERTYINSTANCE_GROUP | final public static String TAG_PROPERTYINSTANCE_GROUP(Code) | | Property instance group XML element name
|
m_logger | final public static Logger m_logger(Code) | | Logger for this class
|
ProfilePropertyInstance | public ProfilePropertyInstance()(Code) | | Constructs a property instance
|
ProfilePropertyInstance | public ProfilePropertyInstance(AbstractDataStoreInterface dbint)(Code) | | Constructs a property instance with an interface to the data store
Parameters: dbint - the data store interface |
ProfilePropertyInstance | public ProfilePropertyInstance(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 'owning' Profile |
ProfilePropertyInstance | public ProfilePropertyInstance(AbstractDataStoreInterface dbintrf, int nPropertyId, Profile profile)(Code) | | Constructs a property instance with an interface to the data store,
a reference to the Profile which will contain this
property instance and a reference to the Property
identified by the specified id.
Parameters: dbintrf - the data store interface Parameters: nPropertyId - the id of the Property that this object is an instance of Parameters: profile - the 'owning' Profile |
ProfilePropertyInstance | public ProfilePropertyInstance(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 |
ProfilePropertyInstance | public ProfilePropertyInstance(AbstractDataStoreInterface dbintrf, Property property, Profile profile)(Code) | | Constructs a property instance with an interface to the data store,
a reference to the Profile which will contain this
property instance and a reference to the Property
which this object is an instance of.
Parameters: dbintrf - the data store interface Parameters: property - the Property Parameters: profile - the 'owner' Profile |
addValue | public void addValue(Profile prof, int nId) throws PopulateException(Code) | | Adds the given Profile as a value of this instance.
Parameters: prof - the Profile to add Parameters: nId - the id of the Profile throws: InvalidPropertyValueException - if the value is invalid forthis property instance |
delete | protected void delete() throws ProfileException(Code) | | Deletes this instance, which in turn will delete all the
Profile values and their property instances.
throws: ProfileException - if there is an error deleting anyof the Profile values |
getColumnRef | public static ColumnRef getColumnRef(AbstractProfiledObject profObj, String sColumn, boolean bIsHist) throws DataStoreException(Code) | | Returns the column reference for the column in the profile database table
belonging to the specified AbstractProfiledObject .
Parameters: profObj - the AbstractProfiledObject associated to the required column reference Parameters: sColumn - the database column name Parameters: bIsHist - true if the column reference returned should reference the historical table the column reference for the column in the profile database tablebelonging to the specified AbstractProfiledObject throws: DataStoreException - if the specified column is invalid |
getDBTableName | public static String getDBTableName(Profile profile)(Code) | | Returns the database table which holds the data for this
property instance type for the specified Profile .
Parameters: profile - the Profile for which the requestedproperty instance table will be linked to the database table which holds the data for this property instance type for the specified Profile |
isChanged | protected boolean isChanged()(Code) | | |
setHistorical | protected void setHistorical(boolean bIsHist)(Code) | | |
|
|