public abstract class GraphStep extends Object
GraphState
.Modifier and Type | Class and Description |
---|---|
static interface |
GraphStep.Callback |
Modifier and Type | Field and Description |
---|---|
EventContext |
ec
An event context which has been initialized for a particular group, i.e.
|
GraphEntry |
entry
GraphEntry instance which is active for this step. |
long |
id
The actual id to be processed 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 processed, 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 and Description |
---|
GraphStep(int idx,
List<GraphStep> stack,
GraphSpec spec,
GraphEntry entry,
long[] ids) |
Modifier and Type | Method and Description |
---|---|
abstract void |
action(GraphStep.Callback cb,
org.hibernate.Session session,
ome.util.SqlAction sql,
GraphOpts opts)
Primary action which should perform the main modifications required by
the step.
|
protected void |
deleteAnnotationLinks(AnnotationGraphSpec aspec,
org.hibernate.Session session,
List<Long> ids) |
long[] |
getIds()
Currently returns the ID array without copying
therefore values should not be leaked to code outside
of the ome.services.graphs hierarchy.
|
boolean |
hasSavepoint() |
protected void |
logPhase(String phase) |
protected void |
logResults(int count) |
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) |
void |
setEventContext(EventContext ec) |
String |
start(GraphStep.Callback cb) |
public final int idx
GraphState.steps
.public final LinkedList<GraphStep> stack
GraphStep
instances which show where this step is
in the entire graph.public final GraphStep parent
stack
which is the direct ancestor of this
step.public final GraphEntry entry
GraphEntry
instance which is active for this step.public final long id
GraphEntry.getId()
which is the id of the root object.ids
public final String table
public final Class<ome.model.IObject> iObjectType
GraphState#release(String)
to send an EventLogMessage
.public final String pathMsg
GraphEntry
used for
logging.public EventContext ec
EventContext.getCurrentGroupId()
.
See 8723public GraphStep(int idx, List<GraphStep> stack, GraphSpec spec, GraphEntry entry, long[] ids)
public void setEventContext(EventContext ec)
public long[] getIds()
public abstract void action(GraphStep.Callback cb, org.hibernate.Session session, ome.util.SqlAction sql, GraphOpts opts) throws GraphException
GraphException
protected void logPhase(String phase)
protected void logResults(int count)
public void push(GraphOpts opts) throws GraphException
GraphException
public void pop(GraphOpts opts)
public void rollbackOnly()
public boolean hasSavepoint()
public String start(GraphStep.Callback cb) throws GraphException
GraphException
public String savepoint(GraphStep.Callback cb)
public void release(GraphStep.Callback cb) throws GraphException
GraphException
public abstract void onRelease(Class<ome.model.IObject> k, Set<Long> ids) throws GraphException
GraphException
public void rollback(GraphStep.Callback cb) throws GraphException
GraphException
protected void deleteAnnotationLinks(AnnotationGraphSpec aspec, org.hibernate.Session session, List<Long> ids)
Version: 4.4.12-ice34-b116
Copyright © 2014 The University of Dundee & Open Microscopy Environment. All Rights Reserved.