wt.pds
Class ObjectJoinDelegate

java.lang.Object
  extended bywt.pds.ObjectJoinDelegate
All Implemented Interfaces:
JoinDelegate

public class ObjectJoinDelegate
extends Object
implements JoinDelegate

This class implements a join delegate for ObjectReferences.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static String KEY_ID
           
private static String RESOURCE
           
 
Constructor Summary
ObjectJoinDelegate()
           
 
Method Summary
private  WhereExpression build(Class a_sourceClass, Object a_target, int a_sourceIndex, boolean a_sourceOuterJoin, String a_referenceName)
           
 WhereExpression buildArrayWhereExpression(Class a_sourceClass, Object a_targetArray, int a_sourceIndex, boolean a_sourceOuterJoin, String a_referenceName)
          Returns a WhereExpression for the specified source object array and target class.
 WhereExpression buildWhereExpression(Class a_sourceClass, Class a_targetClass, int a_sourceIndex, int a_targetIndex, String a_sourceFromAlias, String a_targetFromAlias, boolean a_sourceOuterJoin, boolean a_targetOuterJoin, String a_referenceName)
          Returns a WhereExpression for the specified source and target classes.
 WhereExpression buildWhereExpression(Class a_sourceClass, Persistable a_target, int a_sourceIndex, boolean a_sourceOuterJoin, String a_referenceName)
          Returns a WhereExpression for the specified source object and target class.
 
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
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

KEY_ID

private static final String KEY_ID
See Also:
Constant Field Values
Constructor Detail

ObjectJoinDelegate

public ObjectJoinDelegate()
Method Detail

buildWhereExpression

public WhereExpression buildWhereExpression(Class a_sourceClass,
                                            Class a_targetClass,
                                            int a_sourceIndex,
                                            int a_targetIndex,
                                            String a_sourceFromAlias,
                                            String a_targetFromAlias,
                                            boolean a_sourceOuterJoin,
                                            boolean a_targetOuterJoin,
                                            String a_referenceName)
                                     throws WTException
Returns a WhereExpression for the specified source and target classes.

Supported API: false

Specified by:
buildWhereExpression in interface JoinDelegate
Parameters:
a_sourceClass - Source class of the join (i.e. the class containing the referencing column(s)).
a_targetClass - Target class of the join (i.e. the class that is referenced).
a_sourceIndex - Index of the source class
a_targetIndex - Index of the target class
a_sourceFromAlias - From alias for the source class.
a_targetFromAlias - From alias for the target class.
a_sourceOuterJoin - Indicates if the source side of the join expression should be made an outer join
a_targetOuterJoin - Indicates if the target side of the join expression should be made an outer join
a_referenceName - Reference column name (i.e. query name) in the source class
Returns:
WhereExpression
Throws:
WTException

buildWhereExpression

public WhereExpression buildWhereExpression(Class a_sourceClass,
                                            Persistable a_target,
                                            int a_sourceIndex,
                                            boolean a_sourceOuterJoin,
                                            String a_referenceName)
                                     throws WTException
Returns a WhereExpression for the specified source object and target class.

Supported API: false

Specified by:
buildWhereExpression in interface JoinDelegate
Parameters:
a_sourceClass - Source class of the join (i.e. the class containing the referencing column(s)).
a_target - Target of the reference
a_sourceIndex - Index of the source class
a_sourceOuterJoin - Indicates if the source side of the join expression should be made an outer join
a_referenceName - Reference column name (i.e. query name) in the source class
Returns:
WhereExpression
Throws:
WTException

buildArrayWhereExpression

public WhereExpression buildArrayWhereExpression(Class a_sourceClass,
                                                 Object a_targetArray,
                                                 int a_sourceIndex,
                                                 boolean a_sourceOuterJoin,
                                                 String a_referenceName)
                                          throws WTException
Returns a WhereExpression for the specified source object array and target class.

Supported API: false

Specified by:
buildArrayWhereExpression in interface JoinDelegate
Parameters:
a_sourceClass - Source class of the join (i.e. the class containing the referencing column(s)).
a_targetArray - Target array of the reference
a_sourceIndex - Index of the source class
a_sourceOuterJoin - Indicates if the source side of the join expression should be made an outer join
a_referenceName - Reference column name (i.e. query name) in the source class
Returns:
WhereExpression
Throws:
WTException

build

private WhereExpression build(Class a_sourceClass,
                              Object a_target,
                              int a_sourceIndex,
                              boolean a_sourceOuterJoin,
                              String a_referenceName)
                       throws WTException
Throws:
WTException