|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.engine.core.system.PentahoBase
org.pentaho.platform.engine.services.runtime.SimpleRuntimeElement
public class SimpleRuntimeElement
| Field Summary |
|---|
| Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase |
|---|
EMPTYLOGID, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR |
| Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
|---|
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
| Constructor Summary | |
|---|---|
SimpleRuntimeElement(java.lang.String instId)
Constructor |
|
SimpleRuntimeElement(java.lang.String instId,
java.lang.String parId,
java.lang.String parType)
Constructor |
|
SimpleRuntimeElement(java.lang.String instId,
java.lang.String parId,
java.lang.String parType,
java.lang.String solnId)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
Uses the instanceId to distinguish equality. |
void |
forceSave()
Causes an immediate call to the underlying persistence mechanism's write-now method. |
java.math.BigDecimal |
getBigDecimalProperty(java.lang.String key)
Gets a BigDecimal property from the paramMap. |
java.math.BigDecimal |
getBigDecimalProperty(java.lang.String key,
java.math.BigDecimal defaultValue)
Gets a property from the paramMap as a BigDecimal, using a default value if it doesn't exist in the map. |
java.util.Date |
getDateProperty(java.lang.String key)
Gets a property from the paramMap as a Date, with no default value. |
java.util.Date |
getDateProperty(java.lang.String key,
java.util.Date defaultValue)
Gets a property from the paramMap as a Date using a default value if it doesn't exist in the map |
java.lang.String |
getInstanceId()
|
java.util.List |
getListProperty(java.lang.String key)
Gets a list property from the paramMap. |
boolean |
getLoaded()
|
org.apache.commons.logging.Log |
getLogger()
|
long |
getLongProperty(java.lang.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 |
java.lang.Long |
getLongProperty(java.lang.String key,
java.lang.Long defaultValue)
Gets a property from the paramMap as a Long using a default value if it doesn't exist in the map |
java.util.Map |
getMapProperty(java.lang.String key)
Gets a map property from the paramMap. |
java.util.List |
getMessages()
|
java.util.Set |
getParameterNames()
|
java.lang.String |
getParameterType(java.lang.String parameterName)
Gets the type of the parameter |
java.lang.String |
getParentId()
|
java.lang.String |
getParentType()
|
boolean |
getReadOnly()
|
int |
getRevision()
Auto-handled revision mechanism. |
java.lang.String |
getSolutionId()
|
java.lang.String |
getStringProperty(java.lang.String key)
Gets a property from the paramMap as a string with no default value. |
java.lang.String |
getStringProperty(java.lang.String key,
java.lang.String defaultValue)
Gets a property from the paramMap as a string, using a default value if it doesn't exist in the map. |
int |
hashCode()
|
void |
setAllowableAttributeNames(java.util.Collection allowedReadNames)
|
void |
setBigDecimalProperty(java.lang.String key,
java.math.BigDecimal value)
Sets the BigDecimal property in the paramMap. |
void |
setDateProperty(java.lang.String key,
java.util.Date value)
Sets a date property in the paramMap. |
void |
setInstanceId(java.lang.String instId)
|
void |
setListProperty(java.lang.String key,
java.util.List value)
Sets a list property in the paramMap. |
void |
setLoaded(boolean value)
|
void |
setLongProperty(java.lang.String key,
long value)
Sets a long property in the paramMap. |
void |
setLongProperty(java.lang.String key,
java.lang.Long value)
Sets a long property in the paramMap. |
void |
setMapProperty(java.lang.String key,
java.util.Map value)
Sets a map property in the paramMap. |
void |
setParentId(java.lang.String parentId)
|
void |
setParentType(java.lang.String parentType)
|
void |
setReadOnly(boolean value)
|
void |
setSolutionId(java.lang.String solutionId)
|
void |
setStringProperty(java.lang.String key,
java.lang.String value)
Sets a property into the paramMap. |
java.lang.String |
toXML()
Returns an XML representation of the RuntimeElement. |
| Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase |
|---|
debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.pentaho.platform.api.repository.IRuntimeElement |
|---|
getLoggingLevel |
| Constructor Detail |
|---|
public SimpleRuntimeElement(java.lang.String instId)
instId - The Instance Id
public SimpleRuntimeElement(java.lang.String instId,
java.lang.String parId,
java.lang.String parType)
instId - The Instance IdparId - The Parent IdparType - The Parent Type
public SimpleRuntimeElement(java.lang.String instId,
java.lang.String parId,
java.lang.String parType,
java.lang.String solnId)
instId - The Instance IdparId - The Parent IdparType - The Parent TypesolnId - The Solution Id| Method Detail |
|---|
public java.util.List getMessages()
public java.lang.String getParentId()
getParentId in interface IRuntimeElementpublic void setParentId(java.lang.String parentId)
setParentId in interface IRuntimeElementparentId - The parentId to set.public java.lang.String getParentType()
getParentType in interface IRuntimeElementpublic void setParentType(java.lang.String parentType)
setParentType in interface IRuntimeElementparentType - The parentType to set.public java.lang.String getInstanceId()
getInstanceId in interface IRuntimeElementpublic void setInstanceId(java.lang.String instId)
setInstanceId in interface IRuntimeElementinstId - The instanceId to set.public java.lang.String getSolutionId()
getSolutionId in interface IRuntimeElementpublic void setSolutionId(java.lang.String solutionId)
setSolutionId in interface IRuntimeElementsolutionId - The solutionId to set.public int getRevision()
getRevision in interface IRuntimeElementpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getStringProperty(java.lang.String key)
getStringProperty in interface IRuntimeElementkey - The key into the map.
public java.lang.String getStringProperty(java.lang.String key,
java.lang.String defaultValue)
getStringProperty in interface IRuntimeElementkey - The key into the map.defaultValue - Default value returned if the key isn't already in the map.
public void setStringProperty(java.lang.String key,
java.lang.String value)
setStringProperty in interface IRuntimeElementkey - The key into the map.value - The value to set.public java.math.BigDecimal getBigDecimalProperty(java.lang.String key)
getBigDecimalProperty in interface IRuntimeElementkey - Key in the paramMap.
public java.math.BigDecimal getBigDecimalProperty(java.lang.String key,
java.math.BigDecimal defaultValue)
getBigDecimalProperty in interface IRuntimeElementkey - Key in the paramMap.defaultValue - Detault value if the property doesn't exist in the paramMap.
public void setBigDecimalProperty(java.lang.String key,
java.math.BigDecimal value)
setBigDecimalProperty in interface IRuntimeElementkey - Key in the paramMap.value - The property value to set.public java.util.Date getDateProperty(java.lang.String key)
getDateProperty in interface IRuntimeElementkey - Key in the paramMap
public java.util.Date getDateProperty(java.lang.String key,
java.util.Date defaultValue)
getDateProperty in interface IRuntimeElementkey - Key in the paramMapdefaultValue - The default value if the property doesn't exist in the
paramMap.
public void setDateProperty(java.lang.String key,
java.util.Date value)
setDateProperty in interface IRuntimeElementkey - Key in the paramMapvalue - The property value to set.
public java.lang.Long getLongProperty(java.lang.String key,
java.lang.Long defaultValue)
getLongProperty in interface IRuntimeElementkey - Key in the paramMapdefaultValue - The default value if the property doesn't exist in the
paramMap.
public long getLongProperty(java.lang.String key,
long defaultValue)
getLongProperty in interface IRuntimeElementkey - Key in the paramMapdefaultValue - The default value if the property doesn't exist in the
paramMap.
public void setLongProperty(java.lang.String key,
java.lang.Long value)
setLongProperty in interface IRuntimeElementkey - Key in the paramMapvalue - The property value to set.
public void setLongProperty(java.lang.String key,
long value)
setLongProperty in interface IRuntimeElementkey - Key in the paramMapvalue - The property value to set.public java.util.List getListProperty(java.lang.String key)
getListProperty in interface IRuntimeElementkey - Key in the map
public java.util.Map getMapProperty(java.lang.String key)
getMapProperty in interface IRuntimeElementkey - The key in the map
public void setListProperty(java.lang.String key,
java.util.List value)
setListProperty in interface IRuntimeElementkey - The key in the map.value - The list property to set.
public void setMapProperty(java.lang.String key,
java.util.Map value)
setMapProperty in interface IRuntimeElementkey - The key in the map.value - The map property to set.public java.lang.String toXML()
toXML in interface IRuntimeElementpublic org.apache.commons.logging.Log getLogger()
getLogger in class PentahoBasepublic void setAllowableAttributeNames(java.util.Collection allowedReadNames)
setAllowableAttributeNames in interface IRuntimeElementallowedReadNames - The names of the attributes that this process is allowed to
read.public java.util.Set getParameterNames()
getParameterNames in interface IRuntimeElementpublic java.lang.String getParameterType(java.lang.String parameterName)
IRuntimeElement
getParameterType in interface IRuntimeElementparameterName - Parameter name
public void setLoaded(boolean value)
setLoaded in interface IRuntimeElementpublic boolean getLoaded()
getLoaded in interface IRuntimeElementpublic boolean getReadOnly()
public void setReadOnly(boolean value)
public void forceSave()
IRuntimeElement
forceSave in interface IRuntimeElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||