org.pentaho.platform.api.repository
Interface IRuntimeElement

All Known Implementing Classes:
RuntimeElement, SimpleRuntimeElement

public interface IRuntimeElement


Method Summary
 void forceSave()
          Causes an immediate call to the underlying persistence mechanism's write-now method.
 BigDecimal getBigDecimalProperty(String key)
          Gets a BigDecimal property from the Runtime Element.
 BigDecimal getBigDecimalProperty(String key, BigDecimal defaultValue)
          Gets a BigDecimal property from the Runtime Element.
 Date getDateProperty(String key)
          Gets a Date property from the Runtime Element.
 Date getDateProperty(String key, Date defaultValue)
          Gets a Date property from the Runtime Element.
 String getInstanceId()
           
 List getListProperty(String key)
          Gets a List property from the Runtime Element
 boolean getLoaded()
           
 int getLoggingLevel()
           
 long getLongProperty(String key, long defaultValue)
          Gets a property from the paramMap as a long using a default value if it doesn't exist in the map
 Long getLongProperty(String key, Long defaultValue)
          Gets a Long property from the Runtime Element.
 Map getMapProperty(String key)
          Gets a Map property from the Runtime Element Special implementation note - Null values aren't supported in the Map.
 Set getParameterNames()
           
 String getParameterType(String name)
          Gets the type of the parameter
 String getParentId()
           
 String getParentType()
           
 int getRevision()
           
 String getSolutionId()
           
 String getStringProperty(String key)
          Gets a string property from the Runtime Element.
 String getStringProperty(String key, String defaultValue)
          Gets a string property from the Runtime Element.
 void setAllowableAttributeNames(Collection allowableReadAttributeNames)
           
 void setBigDecimalProperty(String key, BigDecimal value)
          Sets a BigDecimal property in the Runtime Element.
 void setDateProperty(String key, Date value)
          Sets a Date property in the Runtime Element.
 void setInstanceId(String instanceId)
           
 void setListProperty(String key, List value)
          Sets a List Property in the Runtime Element
 void setLoaded(boolean value)
           
 void setLongProperty(String key, long value)
          Sets a Long property in the Runtime Element.
 void setLongProperty(String key, Long value)
          Sets a Long property in the Runtime Element.
 void setMapProperty(String key, Map value)
          Sets a Map Property in the Runtime Element Special implementation note - Null values aren't supported in the Map.
 void setParentId(String parentId)
           
 void setParentType(String parentType)
           
 void setSolutionId(String solutionId)
           
 void setStringProperty(String key, String value)
          Sets a string property in the Runtime Element.
 String toXML()
           
 

Method Detail

getParentId

String getParentId()
Returns:
Returns the parent ID

setParentId

void setParentId(String parentId)
Parameters:
parentId - The parentId to set.

getParentType

String getParentType()
Returns:
Returns the parent Type

setParentType

void setParentType(String parentType)
Parameters:
parentType - The parent type to set

getInstanceId

String getInstanceId()
Returns:
Returns the instance Id

setInstanceId

void setInstanceId(String instanceId)
Parameters:
instanceId - The instance Id to set

getSolutionId

String getSolutionId()
Returns:
Returns the solution Id.

setSolutionId

void setSolutionId(String solutionId)
Parameters:
solutionId - The solution Id to set

getRevision

int getRevision()
Returns:
Returns the revision (updated by Hibernate)

getStringProperty

String getStringProperty(String key)
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

String getStringProperty(String key,
                         String defaultValue)
Gets a string property from the Runtime Element.

Parameters:
key - The key of the property
defaultValue - The value to return if the property doesn't exist
Returns:
The value of the property.

setStringProperty

void setStringProperty(String key,
                       String value)
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 set
value - The value to associate with the key

getBigDecimalProperty

BigDecimal getBigDecimalProperty(String key)
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

BigDecimal getBigDecimalProperty(String key,
                                 BigDecimal defaultValue)
Gets a BigDecimal property from the Runtime Element.

Parameters:
key - The key of the property
defaultValue - 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

void setBigDecimalProperty(String key,
                           BigDecimal value)
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 set
value - The value to associate with the key.

getDateProperty

Date getDateProperty(String key)
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

Date getDateProperty(String key,
                     Date defaultValue)
Gets a Date property from the Runtime Element.

Parameters:
key - The key of the property
defaultValue - 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

void setDateProperty(String key,
                     Date value)
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 set
value - The value to associate with the key.

getLongProperty

Long getLongProperty(String key,
                     Long defaultValue)
Gets a Long property from the Runtime Element.

Parameters:
key - The key of the property
defaultValue - 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

long getLongProperty(String key,
                     long defaultValue)
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 paramMap
defaultValue - The default value if the property doesn't exist in the paramMap.
Returns:
The property in the map.

setLongProperty

void setLongProperty(String key,
                     Long value)
Sets a Long property in the Runtime Element.

Parameters:
key - The key of the property to set
value - The value to associate with the key.

setLongProperty

void setLongProperty(String key,
                     long value)
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 set
value - The value to associate with the key. Note - A new Long object is constructed and stored.

getListProperty

List getListProperty(String key)
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

Map getMapProperty(String key)
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

void setListProperty(String key,
                     List value)
Sets a List Property in the Runtime Element

Parameters:
key - The key of the property to set
value - The List value to associate with the key.

setMapProperty

void setMapProperty(String key,
                    Map value)
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 set
value - 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

void setAllowableAttributeNames(Collection allowableReadAttributeNames)
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

String getParameterType(String name)
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().