wt.pds
Class LinkJoinCondition

java.lang.Object
  extended bywt.pds.LinkJoinCondition
All Implemented Interfaces:
Externalizable, JoinCondition, Serializable, WhereCondition
Direct Known Subclasses:
ClassJoinCondition, SourceIdJoinCondition, SourceJoinCondition

public abstract class LinkJoinCondition
extends Object
implements JoinCondition, Externalizable

This class specifies a join in terms of a navigable link class and role.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
private  Class fixedLinkClass
           
protected  Class linkClass
           
private  int linkFromIndex
           
protected  LinkInfo linkInfo
           
protected static long OLD_FORMAT_VERSION_UID
           
protected static String REF_OBJECT_ID
           
protected static String REF_VERSION_ID
           
protected  String referenceName
           
protected  Class referenceType
           
private static String RESOURCE
           
private  String role
           
(package private) static long serialVersionUID
           
 
Fields inherited from interface wt.pds.WhereCondition
OUTER_JOIN_FROM_INDICIES
 
Constructor Summary
LinkJoinCondition()
          

Supported API: false
LinkJoinCondition(int a_linkFromIndex, String a_role)
          

Supported API: false
 
Method Summary
protected  void buildReference(Vector a_tables)
           
abstract  WhereExpression getExpression(Vector a_tables)
          Returns the condition expression for this join.
abstract  JoinIndex getJoinIndex(int a_tableTotalSize)
          

Supported API: false
 int getLinkFromIndex()
          Gets the value of the attribute: linkFromIndex; From index of the navigable link class

Supported API: false
abstract  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.
(package private) static String getReferenceName(LinkInfo a_linkInfo, String a_role)
           
 String getRole()
          Gets the value of the attribute: role; Navigable role that indicates the direction of the join

Supported API: false
protected  Class getValidClass()
           
 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(LinkJoinCondition thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
(package private)  void setFixedLinkClass(Class a_fixedLinkClass)
           
 void setLinkFromIndex(int a_LinkFromIndex)
          Sets the value of the attribute: linkFromIndex; From index of the navigable link class

Supported API: false
 void setRole(String a_Role)
          Sets the value of the attribute: role; Navigable role that indicates the direction of the join

Supported API: false
 String toString()
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
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

linkFromIndex

private int linkFromIndex

role

private String role

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

referenceName

protected transient String referenceName

referenceType

protected transient Class referenceType

linkClass

protected transient Class linkClass

linkInfo

protected transient LinkInfo linkInfo

fixedLinkClass

private transient Class fixedLinkClass

REF_OBJECT_ID

protected static final String REF_OBJECT_ID
See Also:
Constant Field Values

REF_VERSION_ID

protected static final String REF_VERSION_ID
See Also:
Constant Field Values
Constructor Detail

LinkJoinCondition

public LinkJoinCondition()


Supported API: false


LinkJoinCondition

public LinkJoinCondition(int a_linkFromIndex,
                         String a_role)


Supported API: false

Parameters:
a_linkFromIndex -
a_role -
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
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
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(LinkJoinCondition 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

getLinkFromIndex

public int getLinkFromIndex()
Gets the value of the attribute: linkFromIndex; From index of the navigable link class

Supported API: false

Returns:
int

setLinkFromIndex

public void setLinkFromIndex(int a_LinkFromIndex)
Sets the value of the attribute: linkFromIndex; From index of the navigable link class

Supported API: false

Parameters:
a_LinkFromIndex -

getRole

public String getRole()
Gets the value of the attribute: role; Navigable role that indicates the direction of the join

Supported API: false

Returns:
String

setRole

public void setRole(String a_Role)
Sets the value of the attribute: role; Navigable role that indicates the direction of the join

Supported API: false

Parameters:
a_Role -

getOuterJoinFromIndicies

public abstract 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
Returns:
int[]

getExpression

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

Supported API: false

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

getJoinIndex

public abstract JoinIndex getJoinIndex(int a_tableTotalSize)


Supported API: false

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

getReferenceName

static String getReferenceName(LinkInfo a_linkInfo,
                               String a_role)
                        throws WTException
Throws:
WTException

setFixedLinkClass

void setFixedLinkClass(Class a_fixedLinkClass)

buildReference

protected void buildReference(Vector a_tables)
                       throws WTException
Throws:
WTException

getValidClass

protected Class getValidClass()
                       throws WTException
Throws:
WTException

toString

public String toString()