public class RuntimeElement extends PentahoBase implements IRuntimeElement
EMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
Modifier | Constructor and Description |
---|---|
protected |
RuntimeElement()
Constructor for Hibernate
|
|
RuntimeElement(String instId)
Constructor
|
|
RuntimeElement(String instId,
String parId,
String parType)
Constructor
|
|
RuntimeElement(String instId,
String parId,
String parType,
String solnId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkType(String key,
String type,
boolean setIt) |
boolean |
equals(Object other)
Uses the instanceId to distinguish equality.
|
void |
forceSave() |
BigDecimal |
getBigDecimalProperty(String key)
Gets a BigDecimal property from the paramMap.
|
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.
|
Date |
getCreateDate() |
Date |
getDateProperty(String key)
Gets a property from the paramMap as a Date, with no default value.
|
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
|
String |
getInstanceId() |
List |
getListProperty(String key)
Gets a list property from the paramMap.
|
boolean |
getLoaded() |
org.apache.commons.logging.Log |
getLogger() |
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 property from the paramMap as a Long using a default value if it doesn't exist in the map
|
Map |
getMapProperty(String key)
Gets a map property from the paramMap.
|
List |
getMessages() |
Set |
getParameterNames() |
String |
getParameterType(String parameterName) |
protected Map |
getParamMapBD() |
protected Map |
getParamMapCPLX() |
protected Map |
getParamMapDT() |
protected Map |
getParamMapLong() |
protected Map |
getParamMapLS() |
protected Map |
getParamMapSS() |
String |
getParentId() |
String |
getParentType() |
boolean |
getReadOnly() |
int |
getRevision()
Auto-handled revision mechanism.
|
String |
getSolutionId() |
String |
getStringProperty(String key)
Gets a property from the paramMap as a string with no default value.
|
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.
|
protected Map |
getTypesMap() |
int |
hashCode() |
void |
setAllowableAttributeNames(Collection allowedReadNames) |
void |
setBigDecimalProperty(String key,
BigDecimal value)
Sets the BigDecimal property in the paramMap.
|
void |
setCreateDate(Date value) |
void |
setDateProperty(String key,
Date value)
Sets a date property in the paramMap.
|
void |
setInstanceId(String instId) |
void |
setListProperty(String key,
List value)
Sets a list property in the paramMap.
|
void |
setLoaded(boolean value) |
void |
setLongProperty(String key,
long value)
Sets a long property in the paramMap.
|
void |
setLongProperty(String key,
Long value)
Sets a long property in the paramMap.
|
void |
setMapProperty(String key,
Map value)
Sets a map property in the paramMap.
|
protected void |
setParamMapBD(Map bd) |
protected void |
setParamMapCPLX(Map cplx) |
protected void |
setParamMapDT(Map dt) |
protected void |
setParamMapLong(Map lng) |
protected void |
setParamMapLS(Map ls) |
protected void |
setParamMapSS(Map ss) |
void |
setParentId(String parentId) |
void |
setParentType(String parentType) |
protected void |
setPentahoSession(IPentahoSession sess) |
void |
setReadOnly(boolean value) |
protected void |
setRevision(int rev)
Sets the revision of the class
|
void |
setSolutionId(String solutionId) |
void |
setStringProperty(String key,
String value)
Sets a property into the paramMap.
|
protected void |
setTypesMap(Map typesMap) |
String |
toXML()
Returns an XML representation of the RuntimeElement.
|
debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getLoggingLevel
protected RuntimeElement()
public RuntimeElement(String instId)
instId
- The Instance Idpublic RuntimeElement(String instId, String parId, String parType)
instId
- The Instance IdparId
- The Parent IdparType
- The Parent Typepublic List getMessages()
protected void setPentahoSession(IPentahoSession sess)
public String getParentId()
getParentId
in interface IRuntimeElement
public void setParentId(String parentId)
setParentId
in interface IRuntimeElement
parentId
- The parentId to set.public String getParentType()
getParentType
in interface IRuntimeElement
public void setParentType(String parentType)
setParentType
in interface IRuntimeElement
parentType
- The parentType to set.public String getInstanceId()
getInstanceId
in interface IRuntimeElement
public void setInstanceId(String instId)
setInstanceId
in interface IRuntimeElement
instId
- The instanceId to set.public String getSolutionId()
getSolutionId
in interface IRuntimeElement
public void setSolutionId(String solutionId)
setSolutionId
in interface IRuntimeElement
solutionId
- The solutionId to set.public int getRevision()
getRevision
in interface IRuntimeElement
protected void setRevision(int rev)
rev
- New revision to set.public boolean equals(Object other)
protected Map getParamMapSS()
protected Map getParamMapLS()
protected Map getParamMapDT()
protected Map getParamMapBD()
protected Map getParamMapLong()
protected Map getParamMapCPLX()
protected void setParamMapSS(Map ss)
protected void setParamMapLS(Map ls)
protected void setParamMapDT(Map dt)
protected void setParamMapBD(Map bd)
protected void setParamMapLong(Map lng)
protected void setParamMapCPLX(Map cplx)
public Date getCreateDate()
public void setCreateDate(Date value)
public String getStringProperty(String key)
getStringProperty
in interface IRuntimeElement
key
- The key into the map.public String getStringProperty(String key, String defaultValue)
getStringProperty
in interface IRuntimeElement
key
- The key into the map.defaultValue
- Default value returned if the key isn't already in the map.public void setStringProperty(String key, String value)
setStringProperty
in interface IRuntimeElement
key
- The key into the map.value
- The value to set.public BigDecimal getBigDecimalProperty(String key)
getBigDecimalProperty
in interface IRuntimeElement
key
- Key in the paramMap.public BigDecimal getBigDecimalProperty(String key, BigDecimal defaultValue)
getBigDecimalProperty
in interface IRuntimeElement
key
- Key in the paramMap.defaultValue
- Detault value if the property doesn't exist in the paramMap.public void setBigDecimalProperty(String key, BigDecimal value)
setBigDecimalProperty
in interface IRuntimeElement
key
- Key in the paramMap.value
- The property value to set.public Date getDateProperty(String key)
getDateProperty
in interface IRuntimeElement
key
- Key in the paramMappublic Date getDateProperty(String key, Date defaultValue)
getDateProperty
in interface IRuntimeElement
key
- Key in the paramMapdefaultValue
- The default value if the property doesn't exist in the paramMap.public void setDateProperty(String key, Date value)
setDateProperty
in interface IRuntimeElement
key
- Key in the paramMapvalue
- The property value to set.public Long getLongProperty(String key, Long defaultValue)
getLongProperty
in interface IRuntimeElement
key
- Key in the paramMapdefaultValue
- The default value if the property doesn't exist in the paramMap.public long getLongProperty(String key, long defaultValue)
getLongProperty
in interface IRuntimeElement
key
- Key in the paramMapdefaultValue
- The default value if the property doesn't exist in the paramMap.public void setLongProperty(String key, Long value)
setLongProperty
in interface IRuntimeElement
key
- Key in the paramMapvalue
- The property value to set.public void setLongProperty(String key, long value)
setLongProperty
in interface IRuntimeElement
key
- Key in the paramMapvalue
- The property value to set.public List getListProperty(String key)
getListProperty
in interface IRuntimeElement
key
- Key in the mappublic Map getMapProperty(String key)
getMapProperty
in interface IRuntimeElement
key
- The key in the mappublic void setListProperty(String key, List value)
setListProperty
in interface IRuntimeElement
key
- The key in the map.value
- The list property to set.public void setMapProperty(String key, Map value)
setMapProperty
in interface IRuntimeElement
key
- The key in the map.value
- The map property to set.public String toXML()
toXML
in interface IRuntimeElement
public org.apache.commons.logging.Log getLogger()
getLogger
in class PentahoBase
public void setAllowableAttributeNames(Collection allowedReadNames)
setAllowableAttributeNames
in interface IRuntimeElement
protected Map getTypesMap()
protected void setTypesMap(Map typesMap)
typesMap
- The typesMap to set.public Set getParameterNames()
getParameterNames
in interface IRuntimeElement
public String getParameterType(String parameterName)
getParameterType
in interface IRuntimeElement
public void setLoaded(boolean value)
setLoaded
in interface IRuntimeElement
public boolean getLoaded()
getLoaded
in interface IRuntimeElement
public boolean getReadOnly()
public void setReadOnly(boolean value)
public void forceSave()
forceSave
in interface IRuntimeElement
Copyright © 2017 Hitachi Vantara. All rights reserved.