|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.AbstractClassTableExpression
This class represents the table associated with a target class.
Supported API: true
Extendable: false
Field Summary | |
private boolean |
accessControlRequired
|
private boolean |
advancedQueryEnabled
|
private static String |
CLASSNAME
|
private Vector |
columns
|
static boolean |
DEBUG
|
private boolean |
descendantsIncluded
|
private boolean |
emptyTableOptimzationEnabled
|
private List |
excludedDescendants
|
static long |
EXTERNALIZATION_VERSION_UID
|
private List |
includedInterfaces
|
private static DebugWriter |
LOG
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private List |
orderAttributeList
|
private boolean |
outerJoin
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private Class |
tableClass
|
private static boolean |
VERBOSE
|
Fields inherited from interface wt.query.TableExpression |
ACCESS_CONTROL_REQUIRED, ADVANCED_QUERY, ADVANCED_QUERY_ENABLED, BIND_PARAMETER, DESCENDANTS_INCLUDED, TABLE_CLASS |
Constructor Summary | |
AbstractClassTableExpression()
Supported API: false |
|
AbstractClassTableExpression(Class a_class)
Supported API: false |
Method Summary | |
abstract void |
appendClassAttribute(ClassAttribute a_classAttribute)
Supported API: false |
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. |
protected JoinClause |
buildJoinCondition(Class a_tableClass,
String a_alias,
HashMap a_map,
boolean a_fullPersistable)
|
protected String |
buildJoinCondition(String a_alias,
Class a_tableClass,
HashMap a_map,
boolean a_fullPersistable)
|
Object |
clone()
Returns a deep copy of this object. |
void |
columnsReset()
Supported API: false |
static Vector |
filterEmptyTables(Vector a_classInfos)
|
protected boolean |
getAccessControlRequired(Vector a_classInfos)
|
abstract Object |
getAppendedJoinConditionsBindParamter(String a_alias,
Vector a_singleBindParameter,
int a_outerNonJoinFromIndex,
boolean a_fullPersistable)
Supported API: false |
private Vector |
getAutoNavigateClasses(Class a_class)
|
private Vector |
getAutoNavigateMap(Vector a_vector)
|
int[] |
getAutoNaviTableOrder(Class a_tableClass)
Supported API: false |
Object |
getBindParameter()
Gets the value of the attribute: bindParameter; Returns a bind parameter for this expression (if supported). |
static boolean |
getClassAccessControlRequired(Vector a_classInfos)
|
protected Vector |
getClassInfos(boolean a_descendant)
|
abstract ItemBuilder |
getColumnAccessItemBuilder(Class a_class,
int a_fromIndex)
Supported API: false |
Vector |
getColumns()
Gets the value of the attribute: columns. |
List |
getExcludedDescendants()
Gets the value of the attribute: excludedDescendants; List of classes that are excluded when processing that target class's descendants. |
abstract 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. |
abstract JoinClause |
getJoinCondition(String a_alias,
boolean a_fullPersistable,
Class a_tableClass)
Supported API: false |
abstract String |
getJoinCondition(String a_alias,
Class a_tableClass,
boolean a_fullPersistable)
Supported API: false |
List |
getOrderAttributeList()
Gets the value of the attribute: orderAttributeList; List of class attributes which are used to determine the order of class tables for the auto-navigate class. |
abstract int |
getReferencedViewClassCount()
Supported API: false |
Class |
getTableClass()
Gets the value of the attribute: tableClass; The associated class for the table expression. |
protected HashMap |
getTableReferenceMap(Class tableClass,
String a_alias,
ClassInfo[] a_classes,
String[] a_tableAliases,
Vector a_columns,
boolean a_fullPersistableTable)
|
abstract Vector |
getTables()
Returns a Vector of TableExpressions corresponding to this TableExpression. |
Class[] |
getValidClasses()
Returns Class[] for tableClass and included Interfaces. |
boolean |
isAccessControlled()
Indicates if the TableExpression involves AccessControlled classes. |
boolean |
isAccessControlRequired()
Gets the value of the attribute: accessControlRequired; Indicates if Access Control is required for SELECT columns that reference this TableExpression in the FROM clause. |
boolean |
isAdvancedQuery()
Gets the value of the attribute: advancedQuery; Indicates if the expression uses advanced query capabilities. |
boolean |
isAdvancedQueryEnabled()
Gets the value of the attribute: advancedQueryEnabled; Indicates if advanced query capabilities are enabled. |
abstract boolean |
isAutoNavigate()
Supported API: false |
boolean |
isDescendantsIncluded()
Gets the value of the attribute: descendantsIncluded; Indicates if descendant need to be included this TableExpression in the FROM clause. |
boolean |
isEmptyTableOptimzationEnabled()
Gets the value of the attribute: emptyTableOptimzationEnabled. |
boolean |
isOuterJoin()
Gets the value of the attribute: outerJoin. |
abstract boolean |
isUseViewTableAlias()
Supported API: false |
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(AbstractClassTableExpression thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setAccessControlRequired(boolean a_AccessControlRequired)
Sets the value of the attribute: accessControlRequired; Indicates if Access Control is required for SELECT columns that reference this TableExpression in the FROM clause. |
void |
setAdvancedQueryEnabled(boolean a_AdvancedQueryEnabled)
Sets the value of the attribute: advancedQueryEnabled; Indicates if advanced query capabilities are enabled. |
abstract void |
setAppendedJoinConditions(WhereClause a_whereClause,
WhereExpression a_whereExpression)
Supported API: false |
abstract Object |
setAppendedJoinConditions(WhereClause a_whereClause,
WhereExpression a_whereExpression,
String a_alias,
Vector a_singleBindParameter,
int a_outerNonJoinFromIndex,
boolean a_fullPersistable,
boolean a_useBind)
Supported API: false |
void |
setColumns(Vector a_Columns)
Sets the value of the attribute: columns. |
void |
setDescendantsIncluded(boolean a_DescendantsIncluded)
Sets the value of the attribute: descendantsIncluded; Indicates if descendant need to be included this TableExpression in the FROM clause. |
void |
setEmptyTableOptimzationEnabled(boolean a_EmptyTableOptimzationEnabled)
Sets the value of the attribute: emptyTableOptimzationEnabled. |
void |
setExcludedDescendants(List a_ExcludedDescendants)
Sets the value of the attribute: excludedDescendants; List of classes that are excluded when processing that target class's descendants. |
void |
setIncludedInterfaces(List a_includedInterfaces)
Supported API: true |
void |
setOrderAttributeList(List a_OrderAttributeList)
Sets the value of the attribute: orderAttributeList; List of class attributes which are used to determine the order of class tables for the auto-navigate class. |
void |
setOuterJoin(boolean a_OuterJoin)
Sets the value of the attribute: outerJoin. |
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 |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Class tableClass
private transient boolean accessControlRequired
private boolean outerJoin
private boolean descendantsIncluded
private List excludedDescendants
private List includedInterfaces
private boolean emptyTableOptimzationEnabled
private Vector columns
private List orderAttributeList
private transient boolean advancedQueryEnabled
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 static boolean VERBOSE
Constructor Detail |
public AbstractClassTableExpression()
public AbstractClassTableExpression(Class a_class)
a_class
- Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(AbstractClassTableExpression 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 Class getTableClass()
getTableClass
in interface TableExpression
public boolean isAccessControlRequired()
isAccessControlRequired
in interface TableExpression
public void setAccessControlRequired(boolean a_AccessControlRequired)
setAccessControlRequired
in interface TableExpression
a_AccessControlRequired
- public boolean isOuterJoin()
public void setOuterJoin(boolean a_OuterJoin) throws WTPropertyVetoException
a_OuterJoin
-
WTPropertyVetoException
public boolean isDescendantsIncluded()
isDescendantsIncluded
in interface TableExpression
public void setDescendantsIncluded(boolean a_DescendantsIncluded)
setDescendantsIncluded
in interface TableExpression
a_DescendantsIncluded
- public List getExcludedDescendants()
public void setExcludedDescendants(List a_ExcludedDescendants) throws WTPropertyVetoException
a_ExcludedDescendants
-
WTPropertyVetoException
public boolean isEmptyTableOptimzationEnabled()
public void setEmptyTableOptimzationEnabled(boolean a_EmptyTableOptimzationEnabled) throws WTPropertyVetoException
a_EmptyTableOptimzationEnabled
-
WTPropertyVetoException
public Vector getColumns()
public void setColumns(Vector a_Columns) throws WTPropertyVetoException
a_Columns
-
WTPropertyVetoException
public List getOrderAttributeList()
public void setOrderAttributeList(List a_OrderAttributeList) throws WTPropertyVetoException
a_OrderAttributeList
-
WTPropertyVetoException
public abstract Vector getTables() throws QueryException
getTables
in interface TableExpression
QueryException
public abstract String getExpression(AttributeMapInfo a_attributeMapInfo, AccessControllerProcessor a_accessControllerProcessor, String a_alias, int a_outerJoinType, boolean a_fullPersistableTable, boolean a_useBind) throws WTException
getExpression
in interface TableExpression
a_attributeMapInfo
- Attribute information to use for building the expressiona_accessControllerProcessor
- AccessContoller to use for building the expressiona_alias
- a_outerJoinType
- a_fullPersistableTable
- a_useBind
-
WTException
public boolean isAccessControlled() throws WTException
isAccessControlled
in interface TableExpression
WTException
public abstract boolean isAutoNavigate() throws WTException
isAutoNavigate
in interface TableExpression
WTException
public abstract ItemBuilder getColumnAccessItemBuilder(Class a_class, int a_fromIndex) throws PersistenceException
getColumnAccessItemBuilder
in interface TableExpression
a_class
- a_fromIndex
-
PersistenceException
public abstract void appendClassAttribute(ClassAttribute a_classAttribute)
appendClassAttribute
in interface TableExpression
a_classAttribute
- public void setIncludedInterfaces(List a_includedInterfaces)
a_includedInterfaces
- A list containing element of Class which is used to specify the query only against their descendant concrete classes.public Class[] getValidClasses() throws WTException
getValidClasses
in interface TableExpression
WTException
public int[] getAutoNaviTableOrder(Class a_tableClass) throws WTException, PersistenceException, WTIntrospectionException
a_tableClass
-
WTException
PersistenceException
WTIntrospectionException
public abstract JoinClause getJoinCondition(String a_alias, boolean a_fullPersistable, Class a_tableClass) throws WTException
getJoinCondition
in interface TableExpression
a_alias
- a_fullPersistable
- a_tableClass
-
WTException
public abstract String getJoinCondition(String a_alias, Class a_tableClass, boolean a_fullPersistable) throws WTException
getJoinCondition
in interface TableExpression
a_alias
- a_tableClass
- a_fullPersistable
-
WTException
public abstract void setAppendedJoinConditions(WhereClause a_whereClause, WhereExpression a_whereExpression)
a_whereClause
- a_whereExpression
- public abstract Object getAppendedJoinConditionsBindParamter(String a_alias, Vector a_singleBindParameter, int a_outerNonJoinFromIndex, boolean a_fullPersistable) throws QueryException
a_alias
- a_singleBindParameter
- a_outerNonJoinFromIndex
- a_fullPersistable
-
QueryException
public void columnsReset()
columnsReset
in interface TableExpression
public abstract int getReferencedViewClassCount()
public abstract Object setAppendedJoinConditions(WhereClause a_whereClause, WhereExpression a_whereExpression, String a_alias, Vector a_singleBindParameter, int a_outerNonJoinFromIndex, boolean a_fullPersistable, boolean a_useBind) throws QueryException
a_whereClause
- a_whereExpression
- a_alias
- a_singleBindParameter
- a_outerNonJoinFromIndex
- a_fullPersistable
- a_useBind
-
QueryException
public abstract boolean isUseViewTableAlias()
isUseViewTableAlias
in interface TableExpression
public void appendSnapshotSelectId(QuerySpec a_snapshotSpec, int a_fromIndex) throws WTException
appendSnapshotSelectId
in interface PageableTableExpression
a_snapshotSpec
- The snapshot QuerySpec to append to.a_fromIndex
- The fromIndex of this TableExpression in the snapshot QuerySpec.
WTException
public void appendSnapshotSelectName(QuerySpec a_snapshotSpec, int a_fromIndex) throws WTException
appendSnapshotSelectName
in interface PageableTableExpression
a_snapshotSpec
- The snapshot QuerySpec to append to.a_fromIndex
- The fromIndex of this TableExpression in the snapshot QuerySpec.
WTException
public Object getBindParameter() throws WTException
getBindParameter
in interface TableExpression
WTException
public boolean isAdvancedQuery() throws WTException
isAdvancedQuery
in interface TableExpression
WTException
public boolean isAdvancedQueryEnabled()
isAdvancedQueryEnabled
in interface TableExpression
public void setAdvancedQueryEnabled(boolean a_AdvancedQueryEnabled)
setAdvancedQueryEnabled
in interface TableExpression
a_AdvancedQueryEnabled
- public static Vector filterEmptyTables(Vector a_classInfos) throws WTException
WTException
public static boolean getClassAccessControlRequired(Vector a_classInfos)
public String toString()
protected Vector getClassInfos(boolean a_descendant) throws QueryException
QueryException
protected boolean getAccessControlRequired(Vector a_classInfos)
protected HashMap getTableReferenceMap(Class tableClass, String a_alias, ClassInfo[] a_classes, String[] a_tableAliases, Vector a_columns, boolean a_fullPersistableTable) throws WTException
WTException
private Vector getAutoNavigateClasses(Class a_class) throws WTException
WTException
private Vector getAutoNavigateMap(Vector a_vector) throws WTException
WTException
protected JoinClause buildJoinCondition(Class a_tableClass, String a_alias, HashMap a_map, boolean a_fullPersistable) throws WTException
WTException
protected String buildJoinCondition(String a_alias, Class a_tableClass, HashMap a_map, boolean a_fullPersistable) throws WTException
WTException
public Object clone()
clone
in interface TableExpression
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |