org.kuali.rice.kew.engine.node
Class State

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kew.engine.node.State
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, ModelObjectBasic, KeyValue, BusinessObject, PersistableBusinessObject
Direct Known Subclasses:
BranchState, NodeState

@MappedSuperclass
public abstract class State
extends PersistableBusinessObjectBase
implements KeyValue

A KeyValuePair that adds an id fields that makes it sufficient for storing in a database.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
protected  Long stateId
           
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
State()
           
State(String key, String value)
           
 
Method Summary
 void customPrePersist()
           
 String getKey()
           
 Long getStateId()
           
 String getValue()
           
 void setKey(String key)
           
 void setStateId(Long stateId)
           
 void setValue(String value)
           
protected  LinkedHashMap<String,Object> toStringMapperFields()
           
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder, toStringMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Field Detail

stateId

protected Long stateId
Constructor Detail

State

public State()

State

public State(String key,
             String value)
Method Detail

customPrePersist

public void customPrePersist()

getStateId

public Long getStateId()

setStateId

public void setStateId(Long stateId)

getKey

public String getKey()
Specified by:
getKey in interface KeyValue

getValue

public String getValue()
Specified by:
getValue in interface KeyValue

setKey

public void setKey(String key)

setValue

public void setValue(String value)

toStringMapperFields

protected LinkedHashMap<String,Object> toStringMapperFields()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.