wt.pds
Class PersistentJoinDelegate

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

public class PersistentJoinDelegate
extends Object
implements JoinDelegate

This class implements a join delegate for PersistentReferences.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static ReferenceFactory FACTORY
           
private static ConstantExpression INDEX_OFFSET_EXPRESSION
           
private static ConstantExpression INDEX_START_FROM_END_EXPRESSION
           
private static ConstantExpression LATEST_IS_TRUE_EXPRESSION
           
private static String PERSISTENT_KEY
           
private static ConstantExpression PERSISTENT_REFERENCE_DELIMITER_EXPRESSION
           
private static String RESOURCE
           
 
Constructor Summary
PersistentJoinDelegate()
           
 
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

PERSISTENT_KEY

private static final String PERSISTENT_KEY
See Also:
Constant Field Values

PERSISTENT_REFERENCE_DELIMITER_EXPRESSION

private static final ConstantExpression PERSISTENT_REFERENCE_DELIMITER_EXPRESSION

INDEX_START_FROM_END_EXPRESSION

private static final ConstantExpression INDEX_START_FROM_END_EXPRESSION

INDEX_OFFSET_EXPRESSION

private static final ConstantExpression INDEX_OFFSET_EXPRESSION

LATEST_IS_TRUE_EXPRESSION

private static final ConstantExpression LATEST_IS_TRUE_EXPRESSION

FACTORY

private static final ReferenceFactory FACTORY
Constructor Detail

PersistentJoinDelegate

public PersistentJoinDelegate()
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