wt.query
Class ObjectReferenceSpec

java.lang.Object
  extended bywt.query.PageableQuerySpec
      extended bywt.query.ObjectReferenceSpec
All Implemented Interfaces:
Externalizable, Serializable, StatementSpec

public class ObjectReferenceSpec
extends PageableQuerySpec
implements Externalizable

This class provides functionality for Object Reference queries.

The use of an ObjectReference query involves a primary statement. The primary statement is the query that returns an ObjectReference as one of its columns. The objectReferenceResultIndex refers to that column.

The primary class is the class type of the ObjectReference. The "inflated" objects can only be of that class or descendant classes. The associated whereClause can provide optional search condtions which are applied to the "inflate" statements.

Internally, two specialized statement implementations are used, ObjectReferenceCursor and ObjectReferenceStatementBuilder.

As of R6.0, this class is deprecated. The paging mechanism implemented by BasicPageableQuerySpec should be used.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
          Deprecated.  
static long EXTERNALIZATION_VERSION_UID
          Deprecated.  
private  ObjectReferenceStatementBuilder inflateStatementBuilder
          Deprecated.  
private  ObjectReferenceCursor objectReferenceResultCursor
          Deprecated.  
protected static long OLD_FORMAT_VERSION_UID
          Deprecated.  
private static String RESOURCE
          Deprecated.  
(package private) static long serialVersionUID
          Deprecated.  
 
Fields inherited from class wt.query.PageableQuerySpec
 
Fields inherited from interface wt.pds.StatementSpec
ADVANCED_QUERY, ADVANCED_QUERY_ENABLED, AGGREGATE_SELECT, CORRELATED_CLASS_ATTRIBUTES, FETCH_SIZE, PRIMARY_CLASS, QUERY_LIMIT, RESULT_BUILDER, RESULT_CURSOR, SINGLE_RESULT_COMPATIBLE, STATEMENT_BUILDER, USE_BIND
 
Constructor Summary
ObjectReferenceSpec()
          Deprecated.  
 
Method Summary
 void append(WhereExpression a_where)
          Deprecated.  
 ObjectReferenceStatementBuilder getInflateStatementBuilder()
          Deprecated.  
 int getObjectIdentifierResultIndex()
          Deprecated.  
 Class getPrimaryClass()
          Deprecated.  
 ResultBuilder getResultBuilder()
          Deprecated.  
 ResultCursor getResultCursor()
          Deprecated.  
 void readExternal(ObjectInput input)
          Deprecated.  
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Deprecated. Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(ObjectReferenceSpec thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Deprecated.  
 void setObjectIdentifierResultIndex(int a_ObjectIdentifierResultIndex)
          Deprecated.  
 void setPrimaryClass(Class a_PrimaryClass)
          Deprecated.  
 void setPrimaryStatement(StatementSpec a_PrimaryStatement)
          Deprecated. Sets the object for the association that plays role: primaryStatement.
 void writeExternal(ObjectOutput output)
          Deprecated.  
 
Methods inherited from class wt.query.PageableQuerySpec
getBindParameterCount, getCorrelatedClassAttributes, getFetchSize, getOffset, getPrimaryStatement, getQueryLimit, getRange, getStatementBuilder, isAdvancedQuery, isAdvancedQueryEnabled, isAggregateSelect, isSingleResultCompatible, isUseBind, readVersion, setAdvancedQueryEnabled, setBindParameterAt, setFetchSize, setLocale, setOffset, setRange, setUseBind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Deprecated. 

inflateStatementBuilder

private ObjectReferenceStatementBuilder inflateStatementBuilder
Deprecated. 

objectReferenceResultCursor

private ObjectReferenceCursor objectReferenceResultCursor
Deprecated. 

serialVersionUID

static final long serialVersionUID
Deprecated. 
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
Deprecated. 
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

ObjectReferenceSpec

public ObjectReferenceSpec()
                    throws QueryException
Deprecated.  



Supported API: false

Throws:
QueryException
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Deprecated.  

Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class PageableQuerySpec
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Deprecated.  

Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class PageableQuerySpec
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(ObjectReferenceSpec thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Deprecated.  

Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Deprecated. 
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getPrimaryClass

public Class getPrimaryClass()
Deprecated.  

Gets the value of the attribute: primaryClass; Primary class for the query.

Supported API: false

Specified by:
getPrimaryClass in interface StatementSpec
Overrides:
getPrimaryClass in class PageableQuerySpec
Returns:
Class

setPrimaryClass

public void setPrimaryClass(Class a_PrimaryClass)
                     throws WTPropertyVetoException
Deprecated.  

Sets the value of the attribute: primaryClass; Primary class for the query.

Supported API: false

Parameters:
a_PrimaryClass -
Throws:
WTPropertyVetoException

getObjectIdentifierResultIndex

public int getObjectIdentifierResultIndex()
Deprecated.  

Gets the value of the attribute: objectIdentifierResultIndex; The result index in the primary statement that specifies the Object Identifier column.

Supported API: false

Returns:
int

setObjectIdentifierResultIndex

public void setObjectIdentifierResultIndex(int a_ObjectIdentifierResultIndex)
                                    throws WTPropertyVetoException
Deprecated.  

Sets the value of the attribute: objectIdentifierResultIndex; The result index in the primary statement that specifies the Object Identifier column.

Supported API: false

Parameters:
a_ObjectIdentifierResultIndex -
Throws:
WTPropertyVetoException

getInflateStatementBuilder

public ObjectReferenceStatementBuilder getInflateStatementBuilder()
Deprecated.  

Gets the object for the association that plays role: inflateStatementBuilder.

Supported API: false

Returns:
ObjectReferenceStatementBuilder

getResultBuilder

public ResultBuilder getResultBuilder()
Deprecated.  

Gets the object for the association that plays role: resultBuilder.

Supported API: false

Specified by:
getResultBuilder in interface StatementSpec
Overrides:
getResultBuilder in class PageableQuerySpec
Returns:
ResultBuilder

getResultCursor

public ResultCursor getResultCursor()
Deprecated.  

Gets the object for the association that plays role: resultCursor.

Supported API: false

Specified by:
getResultCursor in interface StatementSpec
Overrides:
getResultCursor in class PageableQuerySpec
Returns:
ResultCursor

append

public void append(WhereExpression a_where)
            throws QueryException
Deprecated.  

Appends a WHERE expression for the "inflate" phase.

Supported API: false

Parameters:
a_where - object to append
Throws:
QueryException

setPrimaryStatement

public void setPrimaryStatement(StatementSpec a_PrimaryStatement)
                         throws WTPropertyVetoException
Deprecated. 
Sets the object for the association that plays role: primaryStatement.

Supported API: false

Overrides:
setPrimaryStatement in class PageableQuerySpec
Parameters:
a_PrimaryStatement -
Throws:
WTPropertyVetoException