|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.dataops.objectcol.resolution.AbsResolutionProcessor
wt.dataops.objectcol.resolution.BaseQueryProcessor
wt.dataops.objectcol.resolution.RelationshipQueryProcessor
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
protected static String |
DOT
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected boolean |
firstTime
|
protected LinkInfo |
linkInfo
|
protected static String |
O2O_ROLE_A_ATTR_NAME
|
protected static String |
O2O_ROLE_B_ATTR_NAME
|
private Persistable[] |
objectsToExclude
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private String |
otherRole
|
private Map |
recurseMap
|
private boolean |
recursive
|
private Class |
relClass
|
protected Persistable[] |
resolvedSeeds
|
private static String |
RESOURCE
|
private String |
roleName
|
private Persistable[] |
seedObjects
|
private Map |
seedTypes
|
(package private) static long |
serialVersionUID
|
protected boolean |
shouldRecurseNow
|
Fields inherited from class wt.dataops.objectcol.resolution.AbsResolutionProcessor |
|
Constructor Summary | |
RelationshipQueryProcessor()
|
Method Summary | |
protected void |
appendRelationshipSeedJoin(QuerySpec spec,
Persistable lseed,
int relIdx)
|
protected int |
appendRelationshipTargetJoin(QuerySpec spec)
|
protected void |
appendRelationshipTargetJoinCondition(QuerySpec spec,
Class relClass,
int relIdx,
Class tgtClass,
int tgtIdx)
|
protected boolean |
decideShouldRecurseNow(Class clazz)
|
protected boolean |
decideShouldRecurseNow(StatementSpecHolder[] ispecs)
|
protected int |
findRelationshipClassIndex(QuerySpec spec)
|
protected void |
findSeedsRecursively(Persistable seed,
Class seedType,
WTSet allseeds)
|
protected String |
getAttrNameForRole(String roleName)
|
protected ObjectIdentifier |
getObjectIdentifier(Persistable obj)
|
Persistable[] |
getObjectsToExclude()
Gets the value of the attribute: objectsToExclude. |
protected String |
getOtherRole()
|
protected String |
getOtherRole(String roleOne)
|
Map |
getRecurseMap()
Gets the value of the attribute: recurseMap. |
Class |
getRelClass()
Gets the value of the attribute: relClass. |
String |
getRoleName()
Gets the value of the attribute: roleName. |
Persistable[] |
getSeedObjects()
Gets the value of the attribute: seedObjects. |
Map |
getSeedTypes()
Gets the value of the attribute: seedTypes. |
void |
initialize(Class relClass,
String roleName,
Persistable[] seeds,
Map seedTypes,
boolean recursive)
Supported API: false |
boolean |
isRecursive()
Gets the value of the attribute: recursive. |
StatementSpecHolder[] |
process(StatementSpecHolder[] specs,
LogicalOperator operator)
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(RelationshipQueryProcessor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected Class |
resolveRelationshipClass(Class tgtClass)
|
protected Persistable[] |
resolveSeeds()
|
protected Persistable[] |
resolveSeedsToRecurse(Persistable[] inseeds,
boolean parentChoice)
|
private void |
roleNameValidate(String a_RoleName)
|
void |
setObjectsToExclude(Persistable[] a_ObjectsToExclude)
Sets the value of the attribute: objectsToExclude. |
void |
setRecurseMap(Map a_RecurseMap)
Sets the value of the attribute: recurseMap. |
void |
setRecursive(boolean a_Recursive)
Sets the value of the attribute: recursive. |
void |
setRelClass(Class a_RelClass)
Sets the value of the attribute: relClass. |
void |
setRoleName(String a_RoleName)
Sets the value of the attribute: roleName. |
void |
setSeedObjects(Persistable[] a_SeedObjects)
Sets the value of the attribute: seedObjects. |
void |
setSeeds(Persistable[] seeds)
Supported API: false |
void |
setSeedTypes(Map a_SeedTypes)
Sets the value of the attribute: seedTypes. |
protected StatementSpecHolder |
updateQuerySpecWithRel(StatementSpecHolder specHolder,
boolean recursive,
LogicalOperator operator,
List allspecs,
boolean firstTime)
|
protected StatementSpec |
updateQuerySpecWithRel(StatementSpecHolder specHolder,
QuerySpec spec,
boolean recursive,
LogicalOperator operator,
List allspecs,
boolean firstTime)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class wt.dataops.objectcol.resolution.BaseQueryProcessor |
initialize, readVersion |
Methods inherited from class wt.dataops.objectcol.resolution.AbsResolutionProcessor |
getInputMap, getInputs, readVersion, setInputMap, setInputs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface wt.dataops.objectcol.resolution.ResolutionProcessor |
getInputMap, setInputMap |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Class relClass
private String roleName
private Persistable[] seedObjects
private boolean recursive
private Map seedTypes
private Map recurseMap
private Persistable[] objectsToExclude
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected LinkInfo linkInfo
protected static final String DOT
protected static final String O2O_ROLE_A_ATTR_NAME
protected static final String O2O_ROLE_B_ATTR_NAME
private String otherRole
protected boolean firstTime
protected boolean shouldRecurseNow
protected Persistable[] resolvedSeeds
Constructor Detail |
public RelationshipQueryProcessor()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BaseQueryProcessor
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BaseQueryProcessor
input
-
IOException
ClassNotFoundException
protected boolean readVersion(RelationshipQueryProcessor thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public Class getRelClass()
public void setRelClass(Class a_RelClass) throws WTPropertyVetoException
a_RelClass
-
WTPropertyVetoException
public String getRoleName()
public void setRoleName(String a_RoleName) throws WTPropertyVetoException
a_RoleName
-
WTPropertyVetoException
private void roleNameValidate(String a_RoleName) throws WTPropertyVetoException
a_RoleName
-
WTPropertyVetoException
public Persistable[] getSeedObjects()
public void setSeedObjects(Persistable[] a_SeedObjects) throws WTPropertyVetoException
a_SeedObjects
-
WTPropertyVetoException
public boolean isRecursive()
public void setRecursive(boolean a_Recursive) throws WTPropertyVetoException
a_Recursive
-
WTPropertyVetoException
public Map getSeedTypes()
public void setSeedTypes(Map a_SeedTypes) throws WTPropertyVetoException
a_SeedTypes
-
WTPropertyVetoException
public Map getRecurseMap()
public void setRecurseMap(Map a_RecurseMap) throws WTPropertyVetoException
a_RecurseMap
-
WTPropertyVetoException
public Persistable[] getObjectsToExclude()
public void setObjectsToExclude(Persistable[] a_ObjectsToExclude) throws WTPropertyVetoException
a_ObjectsToExclude
-
WTPropertyVetoException
public void initialize(Class relClass, String roleName, Persistable[] seeds, Map seedTypes, boolean recursive) throws WTException
relClass
- roleName
- seeds
- seedTypes
- recursive
-
WTException
public void setSeeds(Persistable[] seeds) throws WTException
setSeeds
in interface RecursiveQueryProcessor
seeds
-
WTException
public StatementSpecHolder[] process(StatementSpecHolder[] specs, LogicalOperator operator) throws WTException, QueryException
CollectionQueryProcessor
process
in interface CollectionQueryProcessor
process
in class BaseQueryProcessor
specs
- operator
-
QueryException
WTException
protected StatementSpecHolder updateQuerySpecWithRel(StatementSpecHolder specHolder, boolean recursive, LogicalOperator operator, List allspecs, boolean firstTime) throws WTException, QueryException
WTException
QueryException
protected StatementSpec updateQuerySpecWithRel(StatementSpecHolder specHolder, QuerySpec spec, boolean recursive, LogicalOperator operator, List allspecs, boolean firstTime) throws QueryException, WTException
QueryException
WTException
protected int appendRelationshipTargetJoin(QuerySpec spec) throws WTException
WTException
protected void appendRelationshipSeedJoin(QuerySpec spec, Persistable lseed, int relIdx) throws WTException
WTException
protected Class resolveRelationshipClass(Class tgtClass) throws WTException
WTException
protected void appendRelationshipTargetJoinCondition(QuerySpec spec, Class relClass, int relIdx, Class tgtClass, int tgtIdx) throws WTException
WTException
protected String getOtherRole(String roleOne) throws WTException
WTException
protected String getOtherRole()
protected Persistable[] resolveSeeds() throws WTException
WTException
protected void findSeedsRecursively(Persistable seed, Class seedType, WTSet allseeds) throws QueryException, WTException
QueryException
WTException
protected int findRelationshipClassIndex(QuerySpec spec) throws WTException
WTException
protected boolean decideShouldRecurseNow(StatementSpecHolder[] ispecs)
protected boolean decideShouldRecurseNow(Class clazz)
protected String getAttrNameForRole(String roleName) throws WTException
WTException
protected ObjectIdentifier getObjectIdentifier(Persistable obj)
protected Persistable[] resolveSeedsToRecurse(Persistable[] inseeds, boolean parentChoice)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |