Class RuntimeElement
- java.lang.Object
- 
- org.pentaho.platform.engine.core.system.PentahoBase
- 
- org.pentaho.platform.repository.runtime.RuntimeElement
 
 
- 
- All Implemented Interfaces:
- Serializable,- org.pentaho.platform.api.engine.ILogger,- org.pentaho.platform.api.repository.IRuntimeElement
 
 public class RuntimeElement extends org.pentaho.platform.engine.core.system.PentahoBase implements org.pentaho.platform.api.repository.IRuntimeElement- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedRuntimeElement()Constructor for HibernateRuntimeElement(String instId)ConstructorRuntimeElement(String instId, String parId, String parType)ConstructorRuntimeElement(String instId, String parId, String parType, String solnId)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckType(String key, String type, boolean setIt)booleanequals(Object other)Uses the instanceId to distinguish equality.voidforceSave()BigDecimalgetBigDecimalProperty(String key)Gets a BigDecimal property from the paramMap.BigDecimalgetBigDecimalProperty(String key, BigDecimal defaultValue)Gets a property from the paramMap as a BigDecimal, using a default value if it doesn't exist in the map.DategetCreateDate()DategetDateProperty(String key)Gets a property from the paramMap as a Date, with no default value.DategetDateProperty(String key, Date defaultValue)Gets a property from the paramMap as a Date using a default value if it doesn't exist in the mapStringgetInstanceId()ListgetListProperty(String key)Gets a list property from the paramMap.booleangetLoaded()org.apache.commons.logging.LoggetLogger()longgetLongProperty(String key, long defaultValue)Gets a property from the paramMap as a long using a default value if it doesn't exist in the mapLonggetLongProperty(String key, Long defaultValue)Gets a property from the paramMap as a Long using a default value if it doesn't exist in the mapMapgetMapProperty(String key)Gets a map property from the paramMap.ListgetMessages()SetgetParameterNames()StringgetParameterType(String parameterName)protected MapgetParamMapBD()protected MapgetParamMapCPLX()protected MapgetParamMapDT()protected MapgetParamMapLong()protected MapgetParamMapLS()protected MapgetParamMapSS()StringgetParentId()StringgetParentType()booleangetReadOnly()intgetRevision()Auto-handled revision mechanism.StringgetSolutionId()StringgetStringProperty(String key)Gets a property from the paramMap as a string with no default value.StringgetStringProperty(String key, String defaultValue)Gets a property from the paramMap as a string, using a default value if it doesn't exist in the map.protected MapgetTypesMap()inthashCode()voidsetAllowableAttributeNames(Collection allowedReadNames)voidsetBigDecimalProperty(String key, BigDecimal value)Sets the BigDecimal property in the paramMap.voidsetCreateDate(Date value)voidsetDateProperty(String key, Date value)Sets a date property in the paramMap.voidsetInstanceId(String instId)voidsetListProperty(String key, List value)Sets a list property in the paramMap.voidsetLoaded(boolean value)voidsetLongProperty(String key, long value)Sets a long property in the paramMap.voidsetLongProperty(String key, Long value)Sets a long property in the paramMap.voidsetMapProperty(String key, Map value)Sets a map property in the paramMap.protected voidsetParamMapBD(Map bd)protected voidsetParamMapCPLX(Map cplx)protected voidsetParamMapDT(Map dt)protected voidsetParamMapLong(Map lng)protected voidsetParamMapLS(Map ls)protected voidsetParamMapSS(Map ss)voidsetParentId(String parentId)voidsetParentType(String parentType)protected voidsetPentahoSession(org.pentaho.platform.api.engine.IPentahoSession sess)voidsetReadOnly(boolean value)protected voidsetRevision(int rev)Sets the revision of the classvoidsetSolutionId(String solutionId)voidsetStringProperty(String key, String value)Sets a property into the paramMap.protected voidsetTypesMap(Map typesMap)StringtoXML()Returns an XML representation of the RuntimeElement.- 
Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBasedebug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn
 
- 
 
- 
- 
- 
Constructor Detail- 
RuntimeElementprotected RuntimeElement() Constructor for Hibernate
 - 
RuntimeElementpublic RuntimeElement(String instId) Constructor- Parameters:
- instId- The Instance Id
 
 - 
RuntimeElementpublic RuntimeElement(String instId, String parId, String parType) Constructor- Parameters:
- instId- The Instance Id
- parId- The Parent Id
- parType- The Parent Type
 
 
- 
 - 
Method Detail- 
getMessagespublic List getMessages() 
 - 
setPentahoSessionprotected void setPentahoSession(org.pentaho.platform.api.engine.IPentahoSession sess) 
 - 
getParentIdpublic String getParentId() - Specified by:
- getParentIdin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Returns:
- Returns the parentId.
 
 - 
setParentIdpublic void setParentId(String parentId) - Specified by:
- setParentIdin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- parentId- The parentId to set.
 
 - 
getParentTypepublic String getParentType() - Specified by:
- getParentTypein interface- org.pentaho.platform.api.repository.IRuntimeElement
- Returns:
- Returns the parentType.
 
 - 
setParentTypepublic void setParentType(String parentType) - Specified by:
- setParentTypein interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- parentType- The parentType to set.
 
 - 
getInstanceIdpublic String getInstanceId() - Specified by:
- getInstanceIdin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Returns:
- Returns the instanceId.
 
 - 
setInstanceIdpublic void setInstanceId(String instId) - Specified by:
- setInstanceIdin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- instId- The instanceId to set.
 
 - 
getSolutionIdpublic String getSolutionId() - Specified by:
- getSolutionIdin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Returns:
- Returns the solutionId.
 
 - 
setSolutionIdpublic void setSolutionId(String solutionId) - Specified by:
- setSolutionIdin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- solutionId- The solutionId to set.
 
 - 
getRevisionpublic int getRevision() Auto-handled revision mechanism.- Specified by:
- getRevisionin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Returns:
- The current revision
 
 - 
setRevisionprotected void setRevision(int rev) Sets the revision of the class- Parameters:
- rev- New revision to set.
 
 - 
equalspublic boolean equals(Object other) Uses the instanceId to distinguish equality. The instanceId will never be null, won't change, and is the primary key. Therefore, it's the perfect candidate for equals() and hashcode.
 - 
getParamMapSSprotected Map getParamMapSS() 
 - 
getParamMapLSprotected Map getParamMapLS() 
 - 
getParamMapDTprotected Map getParamMapDT() 
 - 
getParamMapBDprotected Map getParamMapBD() 
 - 
getParamMapLongprotected Map getParamMapLong() 
 - 
getParamMapCPLXprotected Map getParamMapCPLX() 
 - 
setParamMapSSprotected void setParamMapSS(Map ss) 
 - 
setParamMapLSprotected void setParamMapLS(Map ls) 
 - 
setParamMapDTprotected void setParamMapDT(Map dt) 
 - 
setParamMapBDprotected void setParamMapBD(Map bd) 
 - 
setParamMapLongprotected void setParamMapLong(Map lng) 
 - 
setParamMapCPLXprotected void setParamMapCPLX(Map cplx) 
 - 
getCreateDatepublic Date getCreateDate() 
 - 
setCreateDatepublic void setCreateDate(Date value) 
 - 
getStringPropertypublic String getStringProperty(String key) Gets a property from the paramMap as a string with no default value.- Specified by:
- getStringPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- The key into the map.
- Returns:
- The property.
 
 - 
getStringPropertypublic String getStringProperty(String key, String defaultValue) Gets a property from the paramMap as a string, using a default value if it doesn't exist in the map.- Specified by:
- getStringPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- The key into the map.
- defaultValue- Default value returned if the key isn't already in the map.
- Returns:
- The property.
 
 - 
setStringPropertypublic void setStringProperty(String key, String value) Sets a property into the paramMap. 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 map.- Specified by:
- setStringPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- The key into the map.
- value- The value to set.
 
 - 
getBigDecimalPropertypublic BigDecimal getBigDecimalProperty(String key) Gets a BigDecimal property from the paramMap.- Specified by:
- getBigDecimalPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- Key in the paramMap.
- Returns:
- BigDecimal property
 
 - 
getBigDecimalPropertypublic BigDecimal getBigDecimalProperty(String key, BigDecimal defaultValue) Gets a property from the paramMap as a BigDecimal, using a default value if it doesn't exist in the map.- Specified by:
- getBigDecimalPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- Key in the paramMap.
- defaultValue- Detault value if the property doesn't exist in the paramMap.
- Returns:
- Returns the property from the paramMap.
 
 - 
setBigDecimalPropertypublic void setBigDecimalProperty(String key, BigDecimal value) Sets the BigDecimal property in the paramMap. 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 map.- Specified by:
- setBigDecimalPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- Key in the paramMap.
- value- The property value to set.
 
 - 
getDatePropertypublic Date getDateProperty(String key) Gets a property from the paramMap as a Date, with no default value.- Specified by:
- getDatePropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- Key in the paramMap
- Returns:
- The property in the map.
 
 - 
getDatePropertypublic Date getDateProperty(String key, Date defaultValue) Gets a property from the paramMap as a Date using a default value if it doesn't exist in the map- Specified by:
- getDatePropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- 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.
 
 - 
setDatePropertypublic void setDateProperty(String key, Date value) Sets a date property in the paramMap. If null comes in, it removes the value from the map. 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 map.- Specified by:
- setDatePropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- Key in the paramMap
- value- The property value to set.
 
 - 
getLongPropertypublic 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- Specified by:
- getLongPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- 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.
 
 - 
getLongPropertypublic 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- Specified by:
- getLongPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- 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.
 
 - 
setLongPropertypublic void setLongProperty(String key, Long value) Sets a long property in the paramMap. If null comes in, it removes the value from the map. 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 map.- Specified by:
- setLongPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- Key in the paramMap
- value- The property value to set.
 
 - 
setLongPropertypublic void setLongProperty(String key, long value) Sets a long property in the paramMap.- Specified by:
- setLongPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- Key in the paramMap
- value- The property value to set.
 
 - 
getListPropertypublic List getListProperty(String key) Gets a list property from the paramMap.- Specified by:
- getListPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- Key in the map
- Returns:
- The list property in the paramMap.
 
 - 
getMapPropertypublic Map getMapProperty(String key) Gets a map property from the paramMap.- Specified by:
- getMapPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- The key in the map
- Returns:
- The map value in the paramMap.
 
 - 
setListPropertypublic void setListProperty(String key, List value) Sets a list property in the paramMap. 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 map.- Specified by:
- setListPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- The key in the map.
- value- The list property to set.
 
 - 
setMapPropertypublic void setMapProperty(String key, Map value) Sets a map property in the paramMap. 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 map.- Specified by:
- setMapPropertyin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Parameters:
- key- The key in the map.
- value- The map property to set.
 
 - 
toXMLpublic String toXML() Returns an XML representation of the RuntimeElement. Mainly for Debug/Test Cases to make sure that what goes in is what comes out during tests.- Specified by:
- toXMLin interface- org.pentaho.platform.api.repository.IRuntimeElement
- Returns:
- Returns an XML representation of the RuntimeElement
 
 - 
getLoggerpublic org.apache.commons.logging.Log getLogger() - Specified by:
- getLoggerin class- org.pentaho.platform.engine.core.system.PentahoBase
 
 - 
setAllowableAttributeNamespublic void setAllowableAttributeNames(Collection allowedReadNames) - Specified by:
- setAllowableAttributeNamesin interface- org.pentaho.platform.api.repository.IRuntimeElement
 
 - 
getTypesMapprotected Map getTypesMap() - Returns:
- Returns the typesMap.
 
 - 
setTypesMapprotected void setTypesMap(Map typesMap) - Parameters:
- typesMap- The typesMap to set.
 
 - 
getParameterNamespublic Set getParameterNames() - Specified by:
- getParameterNamesin interface- org.pentaho.platform.api.repository.IRuntimeElement
 
 - 
getParameterTypepublic String getParameterType(String parameterName) - Specified by:
- getParameterTypein interface- org.pentaho.platform.api.repository.IRuntimeElement
 
 - 
setLoadedpublic void setLoaded(boolean value) - Specified by:
- setLoadedin interface- org.pentaho.platform.api.repository.IRuntimeElement
 
 - 
getLoadedpublic boolean getLoaded() - Specified by:
- getLoadedin interface- org.pentaho.platform.api.repository.IRuntimeElement
 
 - 
getReadOnlypublic boolean getReadOnly() 
 - 
setReadOnlypublic void setReadOnly(boolean value) 
 - 
forceSavepublic void forceSave() - Specified by:
- forceSavein interface- org.pentaho.platform.api.repository.IRuntimeElement
 
 
- 
 
-