biz.hammurapi.web.interaction
Class InteractionInstance.TransitionInstance

java.lang.Object
  extended bybiz.hammurapi.sql.DatabaseObject
      extended bybiz.hammurapi.web.interaction.sql.InteractionTransitionInstanceImpl
          extended bybiz.hammurapi.web.interaction.InteractionInstance.TransitionInstance
All Implemented Interfaces:
biz.hammurapi.util.Attributable, java.lang.Cloneable, biz.hammurapi.sql.columns.ColumnChangeListener, biz.hammurapi.config.Context, biz.hammurapi.config.ContextConfigurable, biz.hammurapi.config.DomConfigurable, biz.hammurapi.xml.dom.DomSerializable, biz.hammurapi.sql.IDatabaseObject, biz.hammurapi.web.interaction.sql.InteractionTransitionInstance, biz.hammurapi.util.Observable, java.io.Serializable, biz.hammurapi.util.Versioned
Enclosing class:
InteractionInstance

public class InteractionInstance.TransitionInstance
extends biz.hammurapi.web.interaction.sql.InteractionTransitionInstanceImpl

See Also:
Serialized Form

Field Summary
 
Fields inherited from class biz.hammurapi.web.interaction.sql.InteractionTransitionInstanceImpl
Id, PropertySet, SourceId, TransitionId
 
Fields inherited from class biz.hammurapi.sql.DatabaseObject
columns, objectVersion, originalVersion
 
Constructor Summary
InteractionInstance.TransitionInstance(boolean force)
           
InteractionInstance.TransitionInstance(java.sql.ResultSet rs)
           
 
Method Summary
 void action(java.util.Map context)
          Executes action code.
 InteractionFactory.InteractionDefinition.TransitionDefinition getDefinition()
           
 InteractionInstance getOwner()
           
 PropertySet getProperties()
          Creates property set or retrieves it from the database.
 java.lang.Object getProperty(java.lang.String name)
          Convenience method to retrieve interaction instance properties.
 java.lang.Object getProperty(java.lang.String name, boolean cascade)
          Convenience method to retrieve interaction instance properties.
 InteractionInstance.StepInstance getSource()
           
 void toDom(org.w3c.dom.Element holder)
           
 void update()
          Updates step information in the database
 
Methods inherited from class biz.hammurapi.web.interaction.sql.InteractionTransitionInstanceImpl
clone, getId, getPropertySet, getSourceId, getTransitionId, project, project, setId, setPropertySet, setSourceId, setTransitionId
 
Methods inherited from class biz.hammurapi.sql.DatabaseObject
addColumn, addObserver, addRelationship, clear, configure, configure, copy, delete, equals, fromDom, fromDom, get, getAttribute, getColumn, getColumnAttribute, getObjectVersion, getRelationship, getSqlType, hashCode, insert, isDeleted, isModified, loadRelationships, onChange, removeAttribute, removeColumnAttribute, removeObserver, setAttribute, setColumnAttribute, setOriginal, toDom, toString, update
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InteractionInstance.TransitionInstance

public InteractionInstance.TransitionInstance(boolean force)

InteractionInstance.TransitionInstance

public InteractionInstance.TransitionInstance(java.sql.ResultSet rs)
                                       throws java.sql.SQLException
Method Detail

getDefinition

public InteractionFactory.InteractionDefinition.TransitionDefinition getDefinition()
                                                                            throws java.sql.SQLException
Throws:
java.sql.SQLException

getSource

public InteractionInstance.StepInstance getSource()

action

public void action(java.util.Map context)
            throws HammurapiWebException
Executes action code.

Parameters:
context - evaluation context.
Returns:
If 'false' then interaction instance does not get created.
Throws:
HammurapiWebException

getProperties

public PropertySet getProperties()
                          throws java.sql.SQLException
Creates property set or retrieves it from the database.

Throws:
java.sql.SQLException

getProperty

public java.lang.Object getProperty(java.lang.String name)
Convenience method to retrieve interaction instance properties.

Parameters:
name -
Returns:
Throws:
java.sql.SQLException

getProperty

public java.lang.Object getProperty(java.lang.String name,
                                    boolean cascade)
Convenience method to retrieve interaction instance properties.

Parameters:
name -
cascade - - If true then this method cascades to
Returns:
Throws:
java.sql.SQLException

toDom

public void toDom(org.w3c.dom.Element holder)

update

public void update()
            throws java.sql.SQLException
Updates step information in the database

Throws:
java.sql.SQLException

getOwner

public InteractionInstance getOwner()
Returns:
Owner interaction instance


Copyright © 2006 Hammurapi Group. All Rights Reserved.