Interface IRuntimeElement
public interface IRuntimeElement
-
Method Summary
Modifier and TypeMethodDescriptionvoidCauses an immediate call to the underlying persistence mechanism's write-now method.Gets a BigDecimal property from the Runtime Element.getBigDecimalProperty(String key, BigDecimal defaultValue) Gets a BigDecimal property from the Runtime Element.getDateProperty(String key) Gets a Date property from the Runtime Element.getDateProperty(String key, Date defaultValue) Gets a Date property from the Runtime Element.getListProperty(String key) Gets a List property from the Runtime ElementbooleanintlonggetLongProperty(String key, long defaultValue) Gets a property from the paramMap as a long using a default value if it doesn't exist in the mapgetLongProperty(String key, Long defaultValue) Gets a Long property from the Runtime Element.getMapProperty(String key) Gets a Map property from the Runtime Element Special implementation note - Null values aren't supported in the Map.getParameterType(String name) Gets the type of the parameterintgetStringProperty(String key) Gets a string property from the Runtime Element.getStringProperty(String key, String defaultValue) Gets a string property from the Runtime Element.voidsetAllowableAttributeNames(Collection allowableReadAttributeNames) voidsetBigDecimalProperty(String key, BigDecimal value) Sets a BigDecimal property in the Runtime Element.voidsetDateProperty(String key, Date value) Sets a Date property in the Runtime Element.voidsetInstanceId(String instanceId) voidsetListProperty(String key, List value) Sets a List Property in the Runtime ElementvoidsetLoaded(boolean value) voidsetLongProperty(String key, long value) Sets a Long property in the Runtime Element.voidsetLongProperty(String key, Long value) Sets a Long property in the Runtime Element.voidsetMapProperty(String key, Map value) Sets a Map Property in the Runtime Element Special implementation note - Null values aren't supported in the Map.voidsetParentId(String parentId) voidsetParentType(String parentType) voidsetSolutionId(String solutionId) voidsetStringProperty(String key, String value) Sets a string property in the Runtime Element.toXML()
-
Method Details
-
getParentId
String getParentId()- Returns:
- Returns the parent ID
-
setParentId
- Parameters:
parentId- The parentId to set.
-
getParentType
String getParentType()- Returns:
- Returns the parent Type
-
setParentType
- Parameters:
parentType- The parent type to set
-
getInstanceId
String getInstanceId()- Returns:
- Returns the instance Id
-
setInstanceId
- Parameters:
instanceId- The instance Id to set
-
getSolutionId
String getSolutionId()- Returns:
- Returns the solution Id.
-
setSolutionId
- Parameters:
solutionId- The solution Id to set
-
getRevision
int getRevision()- Returns:
- Returns the revision (updated by Hibernate)
-
getStringProperty
Gets a string property from the Runtime Element.- Parameters:
key- The key of the property- Returns:
- The value of the property, or NULL if the property doesn't exist.
-
getStringProperty
Gets a string property from the Runtime Element.- Parameters:
key- The key of the propertydefaultValue- The value to return if the property doesn't exist- Returns:
- The value of the property.
-
setStringProperty
Sets a string property in the Runtime Element. Special implementation note - Null values aren't supported in the Map. So, if a null value is passed in, this implementation will remove the entry from the Runtime Element.- Parameters:
key- The key of the property to setvalue- The value to associate with the key
-
getBigDecimalProperty
Gets a BigDecimal property from the Runtime Element.- Parameters:
key- The key of the property- Returns:
- The value of the property, or null if the property doesn't exist.
-
getBigDecimalProperty
Gets a BigDecimal property from the Runtime Element.- Parameters:
key- The key of the propertydefaultValue- The value to return if the property doesn't exist- Returns:
- The value of the property, or defaultValue if the property doesn't exist.
-
setBigDecimalProperty
Sets a BigDecimal property in the Runtime Element. Special implementation note - Null values aren't supported in the Map. So, if a null value is passed in, this implementation will remove the entry from the Runtime Element.- Parameters:
key- The key of the property to setvalue- The value to associate with the key.
-
getDateProperty
Gets a Date property from the Runtime Element.- Parameters:
key- The key of the property- Returns:
- The value of the property, or NULL if the property doesn't exist.
-
getDateProperty
Gets a Date property from the Runtime Element.- Parameters:
key- The key of the propertydefaultValue- The value to return if the property doesn't exist- Returns:
- The value of the property, or defaultValue if the property doesn't exist.
-
setDateProperty
Sets a Date property in the Runtime Element. Special implementation note - Null values aren't supported in the Map. So, if a null value is passed in, this implementation will remove the entry from the Runtime Element.- Parameters:
key- The key of the property to setvalue- The value to associate with the key.
-
getLongProperty
Gets a Long property from the Runtime Element.- Parameters:
key- The key of the propertydefaultValue- The value to return if the property doesn't exist- Returns:
- The value of the property, or defaultValue if the property doesn't exist.
-
getLongProperty
Gets a property from the paramMap as a long using a default value if it doesn't exist in the map- Parameters:
key- Key in the paramMapdefaultValue- The default value if the property doesn't exist in the paramMap.- Returns:
- The property in the map.
-
setLongProperty
Sets a Long property in the Runtime Element.- Parameters:
key- The key of the property to setvalue- The value to associate with the key.
-
setLongProperty
Sets a Long property in the Runtime Element. Special implementation note - Null values aren't supported in the Map. So, if a null value is passed in, this implementation will remove the entry from the Runtime Element.- Parameters:
key- The key of the property to setvalue- The value to associate with the key. Note - A new Long object is constructed and stored.
-
getListProperty
Gets a List property from the Runtime Element- Parameters:
key- The key of the property to get- Returns:
- The list associated with the key, or NULL if it doesn't exist.
-
getMapProperty
Gets a Map property from the Runtime Element Special implementation note - Null values aren't supported in the Map. So, if a null value is passed in, this implementation will remove the entry from the Runtime Element.- Parameters:
key- The key of the property to get- Returns:
- The Map associated with the key, or NULL if it doesn't exist.
-
setListProperty
Sets a List Property in the Runtime Element- Parameters:
key- The key of the property to setvalue- The List value to associate with the key.
-
setMapProperty
Sets a Map Property in the Runtime Element Special implementation note - Null values aren't supported in the Map. So, if a null value is passed in, this implementation will remove the entry from the Runtime Element.- Parameters:
key- The key of the property to setvalue- The Map value to associate with the key.
-
toXML
String toXML()- Returns:
- A string containing the XML representation of the Runtime Element
-
getLoggingLevel
int getLoggingLevel()- Returns:
- Returns the loggingLevel.
-
setAllowableAttributeNames
- Parameters:
allowableReadAttributeNames- The names of the attributes that this process is allowed to read.
-
getParameterNames
Set getParameterNames()- Returns:
- The set of currently defined parameter names
-
getParameterType
Gets the type of the parameter- Parameters:
name- Parameter name- Returns:
- String type of the parameter
-
setLoaded
void setLoaded(boolean value) -
getLoaded
boolean getLoaded() -
forceSave
void forceSave()Causes an immediate call to the underlying persistence mechanism's write-now method. For Hibernate, this results in a call to HibernateUtil.flush().
-