wt.iba.value
Class IBAValueViewTableExpression

java.lang.Object
  extended bywt.query.AbstractSubSelectTableExpression
      extended bywt.iba.value.IBAValueViewTableExpression
All Implemented Interfaces:
Cloneable, Externalizable, PageableTableExpression, Serializable, TableExpression

public class IBAValueViewTableExpression
extends AbstractSubSelectTableExpression
implements PageableTableExpression, Externalizable

This TableExpression consolidates all IBAValues as a single TableExpression view.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
static int BOOLEAN_VALUE
           
private static String CLASSNAME
           
static String CONTEXT_ID_NAME
           
static String DEFINITION_ID_ALIAS
           
private static String DEFINITION_ID_NAME
           
private static String DESCRIPTION_NAME
           
static long EXTERNALIZATION_VERSION_UID
           
static int FLOAT_VALUE
           
static String HIERARCHY_ID_ALIAS
           
private static String HIERARCHY_NAME
           
static String HOLDER_ID_NAME
           
private  boolean includeContextId
           
private  boolean includeDefinitionId
           
static int INTEGER_VALUE
           
static String NUMBER_ALIAS
           
private static HashMap NUMBER_MAP
           
static String NUMBER_PRECISION_ALIAS
           
private static HashMap NUMBER_PRECISION_MAP
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String PRECISION_NAME
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
static String STRING_ALIAS
           
private static HashMap STRING_MAP
           
static int STRING_VALUE
           
static String STRING2_ALIAS
           
private static HashMap STRING2_MAP
           
static String TIMESTAMP_ALIAS
           
private static HashMap TIMESTAMP_MAP
           
static int TIMESTAMP_VALUE
           
static int UNIT_VALUE
           
static int URL_VALUE
           
private static boolean USE_BIND
           
private static String VALUE_NAME
           
static String VALUE_TYPE_ALIAS
           
private static HashMap VALUE_TYPE_MAP
           
private static String VALUE2_NAME
           
private  HashMap valueDefinitionMap
           
 
Fields inherited from class wt.query.AbstractSubSelectTableExpression
DEBUG
 
Fields inherited from interface wt.query.TableExpression
ACCESS_CONTROL_REQUIRED, ADVANCED_QUERY, ADVANCED_QUERY_ENABLED, BIND_PARAMETER, DESCENDANTS_INCLUDED, TABLE_CLASS
 
Constructor Summary
IBAValueViewTableExpression()
          Default Constructor.
 
Method Summary
 IBAValueViewTableExpression _clone()
           
 void appendIBADefinition(String a_valueClassName, String a_definitionId)
          This method appends the necessary query constructs to support accessing the specified IBA definition as part of this view.
 void appendSnapshotSelectId(QuerySpec a_snapshotSpec, int a_fromIndex)
          This method appends an paging ID item to the specified snapshot query.
 void appendSnapshotSelectName(QuerySpec a_snapshotSpec, int a_fromIndex)
          This method appends an paging name item to the specified snapshot query.
private  void appendValueColumn(Class a_tableClass, QuerySpec a_query, Map a_valueTypeMap, String a_valueAlias, int[] a_index)
           
private  void buildSubSelect()
           
private  QuerySpec buildValueSpec(String a_className, Object a_ids)
           
 Object getBindParameter()
          Gets the value of the attribute: bindParameter; Returns a bind parameter for this expression (if supported).
 String getExpression(AttributeMapInfo a_attributeMapInfo, AccessControllerProcessor a_accessControllerProcessor, String a_alias, int a_outerJoinType, boolean a_fullPersistableTable, boolean a_useBind)
          Return string representation of this expression.
 Class getTableClass()
          Gets the value of the attribute: tableClass; The associated class for the table expression (if supported).
 boolean isIncludeContextId()
          Gets the value of the attribute: includeContextId; Indicates if the context foriegn key ID shoulld be included in this TableExpression.
 boolean isIncludeDefinitionId()
          Gets the value of the attribute: includeDefinitionId; Indicates if the definition foriegn key ID shoulld be included in this TableExpression.
 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(IBAValueViewTableExpression thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setIncludeContextId(boolean a_IncludeContextId)
          Sets the value of the attribute: includeContextId; Indicates if the context foriegn key ID shoulld be included in this TableExpression.
 void setIncludeDefinitionId(boolean a_IncludeDefinitionId)
          Sets the value of the attribute: includeDefinitionId; Indicates if the definition foriegn key ID shoulld be included in this TableExpression.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.query.AbstractSubSelectTableExpression
appendClassAttribute, clone, columnsReset, getColumnAccessItemBuilder, getDMLGenerator, getJoinCondition, getJoinCondition, getSubSelect, getTables, getValidClasses, isAccessControlled, isAccessControlRequired, isAdvancedQuery, isAdvancedQueryEnabled, isAutoNavigate, isDescendantsIncluded, isUseViewTableAlias, readVersion, setAccessControlRequired, setAdvancedQueryEnabled, setDescendantsIncluded, setSubSelect, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wt.query.TableExpression
appendClassAttribute, clone, columnsReset, getColumnAccessItemBuilder, getJoinCondition, getJoinCondition, getTables, getValidClasses, isAccessControlled, isAccessControlRequired, isAdvancedQuery, isAdvancedQueryEnabled, isAutoNavigate, isDescendantsIncluded, isUseViewTableAlias, setAccessControlRequired, setAdvancedQueryEnabled, setDescendantsIncluded
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

includeContextId

private boolean includeContextId

includeDefinitionId

private boolean includeDefinitionId

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

BOOLEAN_VALUE

public static final int BOOLEAN_VALUE
See Also:
Constant Field Values

FLOAT_VALUE

public static final int FLOAT_VALUE
See Also:
Constant Field Values

INTEGER_VALUE

public static final int INTEGER_VALUE
See Also:
Constant Field Values

STRING_VALUE

public static final int STRING_VALUE
See Also:
Constant Field Values

TIMESTAMP_VALUE

public static final int TIMESTAMP_VALUE
See Also:
Constant Field Values

UNIT_VALUE

public static final int UNIT_VALUE
See Also:
Constant Field Values

URL_VALUE

public static final int URL_VALUE
See Also:
Constant Field Values

HIERARCHY_ID_ALIAS

public static final String HIERARCHY_ID_ALIAS
See Also:
Constant Field Values

DEFINITION_ID_ALIAS

public static final String DEFINITION_ID_ALIAS
See Also:
Constant Field Values

VALUE_TYPE_ALIAS

public static final String VALUE_TYPE_ALIAS
See Also:
Constant Field Values

NUMBER_ALIAS

public static final String NUMBER_ALIAS
See Also:
Constant Field Values

NUMBER_PRECISION_ALIAS

public static final String NUMBER_PRECISION_ALIAS
See Also:
Constant Field Values

STRING_ALIAS

public static final String STRING_ALIAS
See Also:
Constant Field Values

STRING2_ALIAS

public static final String STRING2_ALIAS
See Also:
Constant Field Values

TIMESTAMP_ALIAS

public static final String TIMESTAMP_ALIAS
See Also:
Constant Field Values

HOLDER_ID_NAME

public static final String HOLDER_ID_NAME
See Also:
Constant Field Values

CONTEXT_ID_NAME

public static final String CONTEXT_ID_NAME
See Also:
Constant Field Values

HIERARCHY_NAME

private static final String HIERARCHY_NAME
See Also:
Constant Field Values

DEFINITION_ID_NAME

private static final String DEFINITION_ID_NAME
See Also:
Constant Field Values

VALUE_NAME

private static final String VALUE_NAME
See Also:
Constant Field Values

VALUE2_NAME

private static final String VALUE2_NAME
See Also:
Constant Field Values

DESCRIPTION_NAME

private static final String DESCRIPTION_NAME
See Also:
Constant Field Values

PRECISION_NAME

private static final String PRECISION_NAME
See Also:
Constant Field Values

NUMBER_MAP

private static final HashMap NUMBER_MAP

NUMBER_PRECISION_MAP

private static final HashMap NUMBER_PRECISION_MAP

STRING_MAP

private static final HashMap STRING_MAP

STRING2_MAP

private static final HashMap STRING2_MAP

TIMESTAMP_MAP

private static final HashMap TIMESTAMP_MAP

VALUE_TYPE_MAP

private static final HashMap VALUE_TYPE_MAP

USE_BIND

private static final boolean USE_BIND
See Also:
Constant Field Values

valueDefinitionMap

private transient HashMap valueDefinitionMap
Constructor Detail

IBAValueViewTableExpression

public IBAValueViewTableExpression()
Default Constructor.

Supported API: false

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

readVersion

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

getTableClass

public Class getTableClass()
Gets the value of the attribute: tableClass; The associated class for the table expression (if supported).

Supported API: false

Specified by:
getTableClass in interface TableExpression
Overrides:
getTableClass in class AbstractSubSelectTableExpression
Returns:
Class

getBindParameter

public Object getBindParameter()
                        throws WTException
Gets the value of the attribute: bindParameter; Returns a bind parameter for this expression (if supported).

Supported API: false

Specified by:
getBindParameter in interface TableExpression
Overrides:
getBindParameter in class AbstractSubSelectTableExpression
Returns:
Object
Throws:
WTException

isIncludeContextId

public boolean isIncludeContextId()
Gets the value of the attribute: includeContextId; Indicates if the context foriegn key ID shoulld be included in this TableExpression.

Supported API: false

Returns:
boolean

setIncludeContextId

public void setIncludeContextId(boolean a_IncludeContextId)
                         throws WTPropertyVetoException
Sets the value of the attribute: includeContextId; Indicates if the context foriegn key ID shoulld be included in this TableExpression.

Supported API: false

Parameters:
a_IncludeContextId -
Throws:
WTPropertyVetoException

isIncludeDefinitionId

public boolean isIncludeDefinitionId()
Gets the value of the attribute: includeDefinitionId; Indicates if the definition foriegn key ID shoulld be included in this TableExpression.

Supported API: false

Returns:
boolean

setIncludeDefinitionId

public void setIncludeDefinitionId(boolean a_IncludeDefinitionId)
                            throws WTPropertyVetoException
Sets the value of the attribute: includeDefinitionId; Indicates if the definition foriegn key ID shoulld be included in this TableExpression.

Supported API: false

Parameters:
a_IncludeDefinitionId -
Throws:
WTPropertyVetoException

appendIBADefinition

public void appendIBADefinition(String a_valueClassName,
                                String a_definitionId)
This method appends the necessary query constructs to support accessing the specified IBA definition as part of this view.

Supported API: false

Parameters:
a_valueClassName - Specifies the IBA value type.
a_definitionId - Specifies the internal IBA definition ID.

getExpression

public String getExpression(AttributeMapInfo a_attributeMapInfo,
                            AccessControllerProcessor a_accessControllerProcessor,
                            String a_alias,
                            int a_outerJoinType,
                            boolean a_fullPersistableTable,
                            boolean a_useBind)
                     throws WTException
Return string representation of this expression.

Supported API: false

Specified by:
getExpression in interface TableExpression
Overrides:
getExpression in class AbstractSubSelectTableExpression
Parameters:
a_attributeMapInfo - Attribute information to use for building the expression
a_accessControllerProcessor - AccessContoller to use for building the expression
a_alias -
a_outerJoinType -
a_fullPersistableTable -
a_useBind -
Returns:
String
Throws:
WTException

appendSnapshotSelectId

public void appendSnapshotSelectId(QuerySpec a_snapshotSpec,
                                   int a_fromIndex)
                            throws WTException
This method appends an paging ID item to the specified snapshot query.

Supported API: false

Specified by:
appendSnapshotSelectId in interface PageableTableExpression
Parameters:
a_snapshotSpec - The snapshot QuerySpec to append to.
a_fromIndex - The fromIndex of this TableExpression in the snapshot QuerySpec.
Throws:
WTException

appendSnapshotSelectName

public void appendSnapshotSelectName(QuerySpec a_snapshotSpec,
                                     int a_fromIndex)
                              throws WTException
This method appends an paging name item to the specified snapshot query.

Supported API: false

Specified by:
appendSnapshotSelectName in interface PageableTableExpression
Parameters:
a_snapshotSpec - The snapshot QuerySpec to append to.
a_fromIndex - The fromIndex of this TableExpression in the snapshot QuerySpec.
Throws:
WTException

_clone

public IBAValueViewTableExpression _clone()
                                   throws WTException
Throws:
WTException

buildSubSelect

private void buildSubSelect()
                     throws WTException
Throws:
WTException

buildValueSpec

private QuerySpec buildValueSpec(String a_className,
                                 Object a_ids)
                          throws WTException,
                                 WTPropertyVetoException,
                                 ClassNotFoundException
Throws:
WTException
WTPropertyVetoException
ClassNotFoundException

appendValueColumn

private void appendValueColumn(Class a_tableClass,
                               QuerySpec a_query,
                               Map a_valueTypeMap,
                               String a_valueAlias,
                               int[] a_index)
                        throws WTException,
                               WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException