|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.LinkJoinCondition
wt.pds.SourceIdJoinCondition
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
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 |
private static final String RESOURCE
private static final String CLASSNAME
private Object sourceId
private boolean outerJoin
private int chunkSize
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
private transient ArrayChunkProcessor arrayChunkProcessor
Constructor Detail |
public SourceIdJoinCondition()
public SourceIdJoinCondition(int a_linkFromIndex, String a_role, Object a_sourceId)
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 |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class LinkJoinCondition
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class LinkJoinCondition
input
-
IOException
ClassNotFoundException
protected boolean readVersion(SourceIdJoinCondition 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 Object getSourceId()
public void setSourceId(Object a_SourceId)
a_SourceId
- public boolean isOuterJoin()
public void setOuterJoin(boolean a_OuterJoin) throws WTPropertyVetoException
a_OuterJoin
-
WTPropertyVetoException
public int[] getOuterJoinFromIndicies()
getOuterJoinFromIndicies
in interface WhereCondition
getOuterJoinFromIndicies
in class LinkJoinCondition
public WhereExpression getExpression(Vector a_tables) throws WTException
getExpression
in interface WhereCondition
getExpression
in class LinkJoinCondition
a_tables
-
WTException
public JoinIndex getJoinIndex(int a_tableTotalSize)
getJoinIndex
in interface JoinCondition
getJoinIndex
in class LinkJoinCondition
a_tableTotalSize
-
public int getSize()
getSize
in interface ArrayChunkProcessor
public int getChunkCount()
getChunkCount
in interface ArrayChunkProcessor
public int getChunkSize()
getChunkSize
in interface ArrayChunkProcessor
public void setChunkSize(int a_ChunkSize) throws WTPropertyVetoException
setChunkSize
in interface ArrayChunkProcessor
a_ChunkSize
-
WTPropertyVetoException
public List getChunkBindParameters(int a_sqlIndex) throws WTException
getChunkBindParameters
in interface ArrayChunkProcessor
a_sqlIndex
- Index of the SQL statement for this chunk.
WTException
public String toString()
toString
in class LinkJoinCondition
static WhereExpression buildWhereExpression(LinkInfo a_linkInfo, int a_linkFromIndex, String a_role, WTCollection a_source) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |