@Deprecated public interface GraphSpec
GraphSpecFactory
one of each GraphSpec
is
initialized and gathered into the factory. A single thread, then, can
repeatedly call #initialize(long, Map)
on the GraphSpec
instances.IGraph
Modifier and Type | Method and Description |
---|---|
QueryBuilder |
chgrpQuery(EventContext ec,
String table,
GraphOpts opts)
Deprecated.
Return a
QueryBuilder which has been properly initialized to take the parameters "id"
and "grp" and then have QueryBuilder.query(Session) called. |
QueryBuilder |
chmodQuery(EventContext ec,
String table,
GraphOpts opts)
Deprecated.
|
QueryBuilder |
deleteQuery(EventContext ec,
String table,
GraphOpts opts)
Deprecated.
|
List<GraphEntry> |
entries()
Deprecated.
Returns a copy of the list of
GraphEntry instances contained in
this GraphSpec |
Class<ome.model.IObject> |
getHibernateClass(String table)
Deprecated.
Return the Hibernate type (ome.model.*) for the given table.
|
String |
getName()
Deprecated.
The name of this specification.
|
String |
getSuperSpec()
Deprecated.
Specification of where this
GraphSpec is attached under another
. |
ome.model.meta.ExperimenterGroup |
groupInfo(ome.util.SqlAction sql)
Deprecated.
Like
load(Session) uses the current table and id information
to look up information on the given target. |
int |
initialize(long id,
String supersec,
Map<String,String> options)
Deprecated.
Called as each action is started.
|
ome.model.IObject |
load(org.hibernate.Session session)
Deprecated.
Loads the object that this spec points to.
|
boolean |
overrideKeep()
Deprecated.
For some
GraphSpec type/option combinations, a "KEEP" setting
may need to be overridden. |
void |
postProcess(org.springframework.beans.factory.ListableBeanFactory factory)
Deprecated.
Gives all specs a chance to reference subspecs.
|
long[][] |
queryBackupIds(org.hibernate.Session session,
int step,
GraphEntry subpath,
QueryBuilder and)
Deprecated.
If a given path is processed before its sub-path, this points to a
one-to-one relationship.
|
Iterator<GraphSpec> |
walk()
Deprecated.
Returns an iterator over all subspecs and their subspecs, depth-first.
|
String getName()
String getSuperSpec()
GraphSpec
is attached under another
. The reverse of
GraphEntry.getSubSpec()
.void postProcess(org.springframework.beans.factory.ListableBeanFactory factory)
int initialize(long id, String supersec, Map<String,String> options) throws GraphException
GraphState.execute(int)
can take clean up actions.id
- identifier of the root object which defines the graph to be
processed.supersec
- points to the relationship between the root object and the
current graph. In many cases, this value will be null so that
the current object is taken to be the root, but if this is a
subspec, or a non-standard naming is being used, then the
superspec will be used.options
- possibly null or empty map of options which can override the
operations provided in the definition of the specification.
For example, if the spec "/Image" defines "/Image/Annotation"
as "HARD" (the default), then the options map could contain
{"/Image/Annotation":"ORPHAN"}to modify that setting.
GraphException
long[][] queryBackupIds(org.hibernate.Session session, int step, GraphEntry subpath, QueryBuilder and) throws GraphException
#initialize(long, Map)
so that foreign key
constraints which require a higher level object to be processed first, can
be processed.
For example,
/Channel /Channel/StatsInforequires the Channel to be processed first, but without the Channel, there's no way to detect which StatsInfo should be removed. Therefore,
#backupIds
in this case would contain:
[ null, # Nothing for Channel. [1,2,3], # The ids of all StatsInfo object which should be removed. ]
paths
- Non-null, non-modifiable list of all paths for the current
action graph. This is used to detect if a path in some subspec
is going to detach a later graph which needs then to have its
ids loaded.GraphException
QueryBuilder chgrpQuery(EventContext ec, String table, GraphOpts opts)
QueryBuilder
which has been properly initialized to take the parameters "id"
and "grp" and then have QueryBuilder.query(Session)
called.QueryBuilder chmodQuery(EventContext ec, String table, GraphOpts opts)
QueryBuilder deleteQuery(EventContext ec, String table, GraphOpts opts)
Iterator<GraphSpec> walk()
boolean overrideKeep()
GraphSpec
type/option combinations, a "KEEP" setting
may need to be overridden. This method allows implementors to say that
KEEPing must be performed on a per GraphEntry
basis as opposed
to for the whole subspec
.List<GraphEntry> entries()
GraphEntry
instances contained in
this GraphSpec
Class<ome.model.IObject> getHibernateClass(String table)
ome.model.IObject load(org.hibernate.Session session) throws GraphException
queryBackupIds(Session, int, GraphEntry, QueryBuilder)
but only returns the last element.GraphException
ome.model.meta.ExperimenterGroup groupInfo(ome.util.SqlAction sql)
load(Session)
uses the current table and id information
to look up information on the given target.
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.