|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.BasicStatementBuilder
wt.pds.SelectStatementBuilder
wt.pds.QuerySpecStatementBuilder
wt.pds.NavigateStatementBuilder
This class implements statement building for navigate operations.
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) class |
NavigateStatementBuilder.ForeignKeyLinkTableExpression
|
Field Summary | |
private static String |
CLASSNAME
|
static boolean |
DEBUG
|
static long |
EXTERNALIZATION_VERSION_UID
|
static int |
LINK_INDEX
|
private static DebugWriter |
LOG
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
private String |
role
|
(package private) static long |
serialVersionUID
|
private Object |
source
|
static int |
TARGET_INDEX
|
Fields inherited from class wt.pds.QuerySpecStatementBuilder |
OLD_SERIAL_VERSION_UID |
Fields inherited from class wt.pds.SelectStatementBuilder |
chunkCount, LARGE_IN_LIST_WARNING |
Fields inherited from class wt.pds.BasicStatementBuilder |
DMLGENERATOR |
Fields inherited from interface wt.pds.StatementBuilder |
CHUNKING_ENABLED, FETCH_SIZE, SQL_STATEMENTS, STATEMENT_COUNT |
Constructor Summary | |
NavigateStatementBuilder()
Supported API: false |
|
NavigateStatementBuilder(QuerySpec a_querySpec,
String a_role,
Object a_source,
Vector a_bindParameters)
Supported API: false |
Method Summary | |
private ClassInfo[] |
getForeignKeyClassInfos(ClassInfo alinkInfo)
Return the RoleDescriptor for the specified link, role, and object. |
(package private) ClassAttribute |
getLinkClassNameClassAttribute(LinkInfo a_linkInfo,
String a_alias)
|
(package private) WhereExpression |
getLinkWhereExpression(LinkInfo a_linkInfo,
int a_linkFromIndex,
Vector a_aliases)
|
private RoleDescriptor |
getOtherRole(ClassInfo classInfo)
Return the RoleDescriptor for the specified link, role, and object. |
private String |
getOtherRole(Class a_linkClass,
String a_role)
Return the other side role for the specified link and role. |
private String |
getOtherRole(LinkInfo a_linkInfo,
String a_role)
|
protected String |
getRole()
Gets the value of the attribute: role; Role to navigate Supported API: false |
Object |
getSource()
Gets the value of the attribute: source; Object source to navigate from. |
StatementFilter |
getStatementFilter(Vector[] a_fromArray)
StatementBuilder used to generate SQL for the depth threshold query. |
Vector[] |
getTables()
This method returns an array of Vectors. |
private void |
processLinkInfo(ClassInfo topTargetInfo,
ClassInfo targetInfo,
ClassInfo linkInfo,
ClassInfo linkClassInfo,
Vector[] otherTables,
Vector tableVector)
Process a linkInfo to determine all possible class combinations. |
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(NavigateStatementBuilder thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class wt.pds.SelectStatementBuilder |
buildSQL, clone, getChunkProcessorCount, getChunkProcessorCount, getDepthThreshold, getTotalCount, isQueryChunkingRequired, isQueryChunkingRequired, isQueryChunkingSupported, isUnionStatement, readVersion, setDepthThreshold |
Methods inherited from class wt.pds.BasicStatementBuilder |
appendBindParameter, buildSQL, clone, getFetchSize, getSqlStatements, getStatement, getStatementCount, insertBindParameterAt, isChunkingEnabled, readVersion, setChunkingEnabled, setFetchSize, setSqlStatements |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String role
private Object source
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final boolean DEBUG
private static final DebugWriter LOG
public static final int TARGET_INDEX
public static final int LINK_INDEX
Constructor Detail |
public NavigateStatementBuilder()
public NavigateStatementBuilder(QuerySpec a_querySpec, String a_role, Object a_source, Vector a_bindParameters) throws PersistenceException
a_querySpec
- a_role
- The role to navigate.a_source
- The source to navigate from.a_bindParameters
-
PersistenceException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class QuerySpecStatementBuilder
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class QuerySpecStatementBuilder
input
-
IOException
ClassNotFoundException
protected boolean readVersion(NavigateStatementBuilder 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
protected String getRole()
public Object getSource()
public Vector[] getTables() throws PersistenceException
getTables
in class QuerySpecStatementBuilder
PersistenceException
public StatementFilter getStatementFilter(Vector[] a_fromArray) throws PersistenceException
getStatementFilter
in class QuerySpecStatementBuilder
a_fromArray
- Array of Vectors containing FromExpression instances
PersistenceException
private void processLinkInfo(ClassInfo topTargetInfo, ClassInfo targetInfo, ClassInfo linkInfo, ClassInfo linkClassInfo, Vector[] otherTables, Vector tableVector) throws WTIntrospectionException, PersistenceException
WTIntrospectionException
PersistenceException
private RoleDescriptor getOtherRole(ClassInfo classInfo) throws WTIntrospectionException
WTIntrospectionException
private String getOtherRole(Class a_linkClass, String a_role) throws WTIntrospectionException
WTIntrospectionException
private String getOtherRole(LinkInfo a_linkInfo, String a_role)
private ClassInfo[] getForeignKeyClassInfos(ClassInfo alinkInfo) throws WTIntrospectionException
WTIntrospectionException
ClassAttribute getLinkClassNameClassAttribute(LinkInfo a_linkInfo, String a_alias) throws WTException
WTException
WhereExpression getLinkWhereExpression(LinkInfo a_linkInfo, int a_linkFromIndex, Vector a_aliases) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |