Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.sbugs.dao.state
Class StateMachineDAO  view StateMachineDAO download StateMachineDAO.java

java.lang.Object
  extended byorg.sbugs.dao.DAO
      extended byorg.sbugs.dao.state.StateMachineDAO

public class StateMachineDAO
extends org.sbugs.dao.DAO


Field Summary
protected static StateMachineDAO instance
           
 
Constructor Summary
protected StateMachineDAO()
           
 
Method Summary
static StateMachineDAO getInstance()
           
protected  int getMaxId(java.util.Collection attributeList)
          Assumes all ids are > 0 and attributeList != null
protected  org.sbugs.logic.state.TransitionHandler initializeHandler(java.lang.String className)
           
protected  void loadHandlers(org.sbugs.logic.state.Transition transition, java.sql.Connection connection)
           
 void loadStateMachine(org.sbugs.logic.state.DefectStateMachine stateMachine, java.util.Collection stateList, java.sql.Connection connection)
           
protected  void loadTransitions(org.sbugs.logic.state.DefectStateMachine stateMachine, java.sql.Connection connection)
          Loads all transitions and transition handlers in the system.
 
Methods inherited from class org.sbugs.dao.DAO
closeConnection, closeStatement, getOptionalInteger, setOptionalInteger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static StateMachineDAO instance
Constructor Detail

StateMachineDAO

protected StateMachineDAO()
Method Detail

getInstance

public static StateMachineDAO getInstance()

loadStateMachine

public void loadStateMachine(org.sbugs.logic.state.DefectStateMachine stateMachine,
                             java.util.Collection stateList,
                             java.sql.Connection connection)
                      throws java.sql.SQLException

getMaxId

protected int getMaxId(java.util.Collection attributeList)
Assumes all ids are > 0 and attributeList != null


loadTransitions

protected void loadTransitions(org.sbugs.logic.state.DefectStateMachine stateMachine,
                               java.sql.Connection connection)
                        throws java.sql.SQLException
Loads all transitions and transition handlers in the system.


loadHandlers

protected void loadHandlers(org.sbugs.logic.state.Transition transition,
                            java.sql.Connection connection)
                     throws java.sql.SQLException

initializeHandler

protected org.sbugs.logic.state.TransitionHandler initializeHandler(java.lang.String className)