biz.hammurapi.web.interaction
Class InteractionFactory.InteractionDefinition

java.lang.Object
  extended bybiz.hammurapi.sql.DatabaseObject
      extended bybiz.hammurapi.web.interaction.sql.InteractionImpl
          extended bybiz.hammurapi.web.interaction.InteractionFactory.InteractionDefinition
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.sql.DataAccessObject, biz.hammurapi.config.DomConfigurable, biz.hammurapi.xml.dom.DomSerializable, biz.hammurapi.sql.IDatabaseObject, biz.hammurapi.web.interaction.sql.Interaction, biz.hammurapi.util.Observable, java.io.Serializable, biz.hammurapi.util.Versioned
Enclosing class:
InteractionFactory

public static class InteractionFactory.InteractionDefinition
extends biz.hammurapi.web.interaction.sql.InteractionImpl
implements biz.hammurapi.sql.DataAccessObject

Interaction definition

Author:
Pavel Vlasov
See Also:
Serialized Form

Nested Class Summary
 class InteractionFactory.InteractionDefinition.StepDefinition
          Interaction step definition
 class InteractionFactory.InteractionDefinition.TransitionDefinition
          Transition definition
 
Field Summary
 
Fields inherited from class biz.hammurapi.web.interaction.sql.InteractionImpl
AfterCode, BeforeCode, Description, Guid, Id, ImageType, InteractionImage, IsVertical, LastModified, Name, OwnerMenu, Scope, Status, Version
 
Fields inherited from class biz.hammurapi.sql.DatabaseObject
columns, objectVersion, originalVersion
 
Constructor Summary
InteractionFactory.InteractionDefinition(java.sql.ResultSet rs)
           
 
Method Summary
 boolean before(java.util.Map context)
          Executes before code.
 java.util.Collection getRootSteps()
           
 void setSQLProcessor(biz.hammurapi.sql.SQLProcessor processor)
           
 
Methods inherited from class biz.hammurapi.web.interaction.sql.InteractionImpl
clone, getAfterCode, getBeforeCode, getDescription, getGuid, getId, getImageType, getInteractionImage, getIsVertical, getLastModified, getName, getOwnerMenu, getScope, getStatus, getVersion, project, project, setAfterCode, setBeforeCode, setDescription, setGuid, setId, setImageType, setInteractionImage, setIsVertical, setLastModified, setName, setOwnerMenu, setScope, setStatus, setVersion
 
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, toDom, toString, update
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface biz.hammurapi.xml.dom.DomSerializable
toDom
 

Constructor Detail

InteractionFactory.InteractionDefinition

public InteractionFactory.InteractionDefinition(java.sql.ResultSet rs)
                                         throws java.sql.SQLException
Method Detail

setSQLProcessor

public void setSQLProcessor(biz.hammurapi.sql.SQLProcessor processor)
                     throws java.sql.SQLException
Specified by:
setSQLProcessor in interface biz.hammurapi.sql.DataAccessObject
Throws:
java.sql.SQLException

before

public boolean before(java.util.Map context)
               throws HammurapiWebException
Executes before code.

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

getRootSteps

public java.util.Collection getRootSteps()
Returns:
Steps which don't have incoming transitions.


Copyright © 2006 Hammurapi Group. All Rights Reserved.