wt.pds
Class SourceIdJoinCondition

java.lang.Object
  extended bywt.pds.LinkJoinCondition
      extended bywt.pds.SourceIdJoinCondition
All Implemented Interfaces:
ArrayChunkProcessor, Externalizable, JoinCondition, Serializable, WhereCondition

public class SourceIdJoinCondition
extends LinkJoinCondition
implements ArrayChunkProcessor, Externalizable

This class represents a JoinCondition from a source of raw IDs. The ID values are specific to the join type.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  ArrayChunkProcessor arrayChunkProcessor
           
private  int chunkSize
           
private static String CLASSNAME
           
static boolean DEBUG
           
static long EXTERNALIZATION_VERSION_UID
           
private static DebugWriter LOG
           
protected static long OLD_FORMAT_VERSION_UID
           
private  boolean outerJoin
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  Object sourceId
           
 
Fields inherited from class wt.pds.LinkJoinCondition
linkClass, linkInfo, REF_OBJECT_ID, REF_VERSION_ID, referenceName, referenceType
 
Fields inherited from interface wt.pds.ArrayChunkProcessor
CHUNK_COUNT, CHUNK_SIZE, SIZE
 
Fields inherited from interface wt.pds.WhereCondition
OUTER_JOIN_FROM_INDICIES
 
Constructor Summary
SourceIdJoinCondition()
          

Supported API: false
SourceIdJoinCondition(int a_linkFromIndex, String a_role, Object a_sourceId)
          

Supported API: false
 
Method Summary
(package private) static WhereExpression buildWhereExpression(LinkInfo a_linkInfo, int a_linkFromIndex, String a_role, WTCollection a_source)
           
 List getChunkBindParameters(int a_sqlIndex)
          This method returns a list of values to be used as bind parameters for an individual chunk.
 int getChunkCount()
          Gets the value of the attribute: chunkCount; Number of chunks for this array.
 int getChunkSize()
          Gets the value of the attribute: chunkSize; Size of each individual chunk for this array.
 WhereExpression getExpression(Vector a_tables)
          Returns the condition expression for this join.
 JoinIndex getJoinIndex(int a_tableTotalSize)
          

Supported API: false
 int[] getOuterJoinFromIndicies()
          Gets the value of the attribute: outerJoinFromIndicies; The index values in the From clause for any classes that use an outer join in this condition.
 int getSize()
          Gets the value of the attribute: size; Size of the array to be chunked.
 Object getSourceId()
          Gets the value of the attribute: sourceId; Source IDs of the join.
 boolean isOuterJoin()
          Gets the value of the attribute: outerJoin; Indicates if an outer join should be used.
 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(SourceIdJoinCondition thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setChunkSize(int a_ChunkSize)
          Sets the value of the attribute: chunkSize; Size of each individual chunk for this array.
 void setOuterJoin(boolean a_OuterJoin)
          Sets the value of the attribute: outerJoin; Indicates if an outer join should be used.
 void setSourceId(Object a_SourceId)
          Sets the value of the attribute: sourceId; Source IDs of the join.
 String toString()
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.pds.LinkJoinCondition
buildReference, getLinkFromIndex, getReferenceName, getRole, getValidClass, readVersion, setFixedLinkClass, setLinkFromIndex, setRole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

sourceId

private Object sourceId

outerJoin

private boolean outerJoin

chunkSize

private int chunkSize

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

DEBUG

public static final boolean DEBUG

LOG

private static final DebugWriter LOG

arrayChunkProcessor

private transient ArrayChunkProcessor arrayChunkProcessor
Constructor Detail

SourceIdJoinCondition

public SourceIdJoinCondition()


Supported API: false


SourceIdJoinCondition

public SourceIdJoinCondition(int a_linkFromIndex,
                             String a_role,
                             Object a_sourceId)


Supported API: false

Parameters:
a_linkFromIndex -
a_role -
a_sourceId - Source IDs of the join. The object can be a wrapper or an array. The values are keys (e.g. long or String) specific to the join type.
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
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 LinkJoinCondition
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
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 LinkJoinCondition
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(SourceIdJoinCondition thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
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
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

getSourceId

public Object getSourceId()
Gets the value of the attribute: sourceId; Source IDs of the join. The object can be a wrapper or an array. The values are keys (e.g. long or String) specific to the join type.

Supported API: false

Returns:
Object

setSourceId

public void setSourceId(Object a_SourceId)
Sets the value of the attribute: sourceId; Source IDs of the join. The object can be a wrapper or an array. The values are keys (e.g. long or String) specific to the join type.

Supported API: false

Parameters:
a_SourceId -

isOuterJoin

public boolean isOuterJoin()
Gets the value of the attribute: outerJoin; Indicates if an outer join should be used.

Supported API: false

Returns:
boolean

setOuterJoin

public void setOuterJoin(boolean a_OuterJoin)
                  throws WTPropertyVetoException
Sets the value of the attribute: outerJoin; Indicates if an outer join should be used.

Supported API: false

Parameters:
a_OuterJoin -
Throws:
WTPropertyVetoException

getOuterJoinFromIndicies

public int[] getOuterJoinFromIndicies()
Gets the value of the attribute: outerJoinFromIndicies; The index values in the From clause for any classes that use an outer join in this condition.

Supported API: false

Specified by:
getOuterJoinFromIndicies in interface WhereCondition
Specified by:
getOuterJoinFromIndicies in class LinkJoinCondition
Returns:
int[]

getExpression

public WhereExpression getExpression(Vector a_tables)
                              throws WTException
Returns the condition expression for this join.

Supported API: false

Specified by:
getExpression in interface WhereCondition
Specified by:
getExpression in class LinkJoinCondition
Parameters:
a_tables -
Returns:
WhereExpression
Throws:
WTException

getJoinIndex

public JoinIndex getJoinIndex(int a_tableTotalSize)


Supported API: false

Specified by:
getJoinIndex in interface JoinCondition
Specified by:
getJoinIndex in class LinkJoinCondition
Parameters:
a_tableTotalSize -
Returns:
JoinIndex

getSize

public int getSize()
Gets the value of the attribute: size; Size of the array to be chunked.

Supported API: false

Specified by:
getSize in interface ArrayChunkProcessor
Returns:
int

getChunkCount

public int getChunkCount()
Gets the value of the attribute: chunkCount; Number of chunks for this array.

Supported API: false

Specified by:
getChunkCount in interface ArrayChunkProcessor
Returns:
int

getChunkSize

public int getChunkSize()
Gets the value of the attribute: chunkSize; Size of each individual chunk for this array.

Supported API: false

Specified by:
getChunkSize in interface ArrayChunkProcessor
Returns:
int

setChunkSize

public void setChunkSize(int a_ChunkSize)
                  throws WTPropertyVetoException
Sets the value of the attribute: chunkSize; Size of each individual chunk for this array.

Supported API: false

Specified by:
setChunkSize in interface ArrayChunkProcessor
Parameters:
a_ChunkSize -
Throws:
WTPropertyVetoException

getChunkBindParameters

public List getChunkBindParameters(int a_sqlIndex)
                            throws WTException
This method returns a list of values to be used as bind parameters for an individual chunk.

Supported API: false

Specified by:
getChunkBindParameters in interface ArrayChunkProcessor
Parameters:
a_sqlIndex - Index of the SQL statement for this chunk.
Returns:
List
Throws:
WTException

toString

public String toString()
Overrides:
toString in class LinkJoinCondition

buildWhereExpression

static WhereExpression buildWhereExpression(LinkInfo a_linkInfo,
                                            int a_linkFromIndex,
                                            String a_role,
                                            WTCollection a_source)
                                     throws WTException
Throws:
WTException