ome.services.graphs
Class GraphStep

java.lang.Object
  extended by ome.services.graphs.GraphStep
Direct Known Subclasses:
DeleteStep, ExporterStep

public abstract class GraphStep
extends Object

Single action performed by GraphState.

Since:
Beta4.2.3
Author:
Josh Moore, josh at glencoesoftware.com

Nested Class Summary
static interface GraphStep.Callback
           
 
Field Summary
 EventContext ec
          Information as to the current login.
 GraphEntry entry
          GraphEntry instance which is active for this step.
 long id
          The actual id to be deleted as opposed to GraphEntry.getId() which is the id of the root object.
 int idx
          Location of this step in GraphState.steps.
 Class<ome.model.IObject> iObjectType
          Type of object which is being deleted, using during GraphState#release(String) to send an EventLogMessage.
 GraphStep parent
          Final member of stack which is the direct ancestor of this step.
 String pathMsg
          String representation of the path to this GraphEntry used for logging.
 GraphSpec spec
          GraphSpec instance which is active for this step.
 LinkedList<GraphStep> stack
          Stack of other GraphStep instances which show where this step is in the entire graph.
 String table
          Parsed table name used for the SQL/HQL statements.
 
Constructor Summary
GraphStep(int idx, List<GraphStep> stack, GraphSpec spec, GraphEntry entry, long[] ids)
           
 
Method Summary
 boolean hasSavepoint()
           
abstract  void onRelease(Class<ome.model.IObject> k, Set<Long> ids)
           
 void pop(GraphOpts opts)
           
 void push(GraphOpts opts)
           
 void release(GraphStep.Callback cb)
           
 void rollback(GraphStep.Callback cb)
           
 void rollbackOnly()
           
 String savepoint(GraphStep.Callback cb)
           
 String start(GraphStep.Callback cb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idx

public final int idx
Location of this step in GraphState.steps.


stack

public final LinkedList<GraphStep> stack
Stack of other GraphStep instances which show where this step is in the entire graph.


parent

public final GraphStep parent
Final member of stack which is the direct ancestor of this step.


spec

public final GraphSpec spec
GraphSpec instance which is active for this step.


entry

public final GraphEntry entry
GraphEntry instance which is active for this step.


id

public final long id
The actual id to be deleted as opposed to GraphEntry.getId() which is the id of the root object.

See Also:
ids

table

public final String table
Parsed table name used for the SQL/HQL statements.


iObjectType

public final Class<ome.model.IObject> iObjectType
Type of object which is being deleted, using during GraphState#release(String) to send an EventLogMessage.


pathMsg

public final String pathMsg
String representation of the path to this GraphEntry used for logging.


ec

public final EventContext ec
Information as to the current login.

Constructor Detail

GraphStep

public GraphStep(int idx,
                 List<GraphStep> stack,
                 GraphSpec spec,
                 GraphEntry entry,
                 long[] ids)
Method Detail

push

public void push(GraphOpts opts)
          throws GraphException
Throws:
GraphException

pop

public void pop(GraphOpts opts)

rollbackOnly

public void rollbackOnly()

hasSavepoint

public boolean hasSavepoint()

start

public String start(GraphStep.Callback cb)
             throws GraphException
Throws:
GraphException

savepoint

public String savepoint(GraphStep.Callback cb)

release

public void release(GraphStep.Callback cb)
             throws GraphException
Throws:
GraphException

onRelease

public abstract void onRelease(Class<ome.model.IObject> k,
                               Set<Long> ids)
                        throws GraphException
Throws:
GraphException

rollback

public void rollback(GraphStep.Callback cb)
              throws GraphException
Throws:
GraphException


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.