@Deprecated public abstract class GraphStep extends Object
GraphState
.Modifier and Type | Class and Description |
---|---|
static interface |
GraphStep.Callback
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
EventContext |
ec
Deprecated.
An event context which has been initialized for a particular group, i.e.
|
protected ExtendedMetadata |
em
Deprecated.
|
GraphEntry |
entry
Deprecated.
GraphEntry instance which is active for this step. |
long |
id
Deprecated.
The actual id to be processed as opposed to
GraphEntry.getId()
which is the id of the root object. |
int |
idx
Deprecated.
Location of this step in
GraphState.steps . |
Class<ome.model.IObject> |
iObjectType
Deprecated.
Type of object which is being processed, using during
GraphState#release(String) to send an EventLogMessage . |
GraphStep |
parent
Deprecated.
Final member of
stack which is the direct ancestor of this
step. |
String |
pathMsg
Deprecated.
String representation of the path to this
GraphEntry used for
logging. |
GraphSpec |
spec
Deprecated.
GraphSpec instance which is active for this step. |
LinkedList<GraphStep> |
stack
Deprecated.
Stack of other
GraphStep instances which show where this step is
in the entire graph. |
String |
table
Deprecated.
Parsed table name used for the SQL/HQL statements.
|
Constructor and Description |
---|
GraphStep(ExtendedMetadata em,
int idx,
List<GraphStep> stack,
GraphSpec spec,
GraphEntry entry,
long[] ids)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
action(GraphStep.Callback cb,
org.hibernate.Session session,
ome.util.SqlAction sql,
GraphOpts opts)
Deprecated.
Primary action which should perform the main modifications required by
the step.
|
protected void |
deleteAnnotationLinks(AnnotationGraphSpec aspec,
org.hibernate.Session session,
List<Long> ids)
Deprecated.
|
protected List<Long> |
findImproperIncomingLinks(org.hibernate.Session session,
String[] lock)
Deprecated.
|
long[] |
getIds()
Deprecated.
Currently returns the ID array without copying
therefore values should not be leaked to code outside
of the ome.services.graphs hierarchy.
|
protected void |
graphValidation(org.hibernate.Session session)
Deprecated.
Immediately we check that an object moved from GroupA to GroupB
is no longer pointed at by any objects in GroupA via foreign key
constraints.
|
boolean |
hasSavepoint()
Deprecated.
|
protected void |
logPhase(String phase)
Deprecated.
|
protected void |
logResults(int count)
Deprecated.
|
abstract void |
onRelease(Class<ome.model.IObject> k,
Set<Long> ids)
Deprecated.
|
protected void |
optionallyNullField(org.hibernate.Session session,
Long id)
Deprecated.
|
protected QueryBuilder |
optionalNullBuilder()
Deprecated.
|
void |
pop(GraphOpts opts)
Deprecated.
|
void |
push(GraphOpts opts)
Deprecated.
|
void |
release(GraphStep.Callback cb)
Deprecated.
|
void |
rollback(GraphStep.Callback cb)
Deprecated.
|
void |
rollbackOnly()
Deprecated.
|
String |
savepoint(GraphStep.Callback cb)
Deprecated.
|
void |
setEventContext(EventContext ec)
Deprecated.
|
String |
start(GraphStep.Callback cb)
Deprecated.
|
void |
validate(GraphState graphState,
org.hibernate.Session session,
ome.util.SqlAction sql,
GraphOpts opts)
Deprecated.
Action performed at the end of the transaction to give all rows the
chance to invalidate other actions.
|
void |
validation()
Deprecated.
|
protected final ExtendedMetadata em
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(ExtendedMetadata em, 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
public void validate(GraphState graphState, org.hibernate.Session session, ome.util.SqlAction sql, GraphOpts opts) throws GraphException
graphState
- session
- sql
- opts
- 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 void validation()
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 graphValidation(org.hibernate.Session session) throws GraphConstraintException
session
- GraphConstraintException
ticket:6442
protected List<Long> findImproperIncomingLinks(org.hibernate.Session session, String[] lock)
protected void deleteAnnotationLinks(AnnotationGraphSpec aspec, org.hibernate.Session session, List<Long> ids)
protected QueryBuilder optionalNullBuilder()
protected void optionallyNullField(org.hibernate.Session session, Long id)
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.