|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.AbstractSubSelectTableExpression
This abstract class implements common methods for a sub-select TableExpression.
Supported API: false
Extendable: false
Field Summary | |
private boolean |
advancedQueryEnabled
|
private static String |
CLASSNAME
|
static boolean |
DEBUG
|
private static DMLGenerator |
dmlGenerator
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static DebugWriter |
LOG
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private StatementSpec |
subSelect
|
Fields inherited from interface wt.query.TableExpression |
ACCESS_CONTROL_REQUIRED, ADVANCED_QUERY, ADVANCED_QUERY_ENABLED, BIND_PARAMETER, DESCENDANTS_INCLUDED, TABLE_CLASS |
Constructor Summary | |
AbstractSubSelectTableExpression()
Default constructor. |
|
AbstractSubSelectTableExpression(StatementSpec a_subSelect)
This constructor initializes the instance. |
Method Summary | |
void |
appendClassAttribute(ClassAttribute a_classAttribute)
Supported API: false |
Object |
clone()
Returns a deep copy of this object. |
void |
columnsReset()
Supported API: false |
Object |
getBindParameter()
Gets the value of the attribute: bindParameter; Returns a bind parameter for this expression (if supported). |
ItemBuilder |
getColumnAccessItemBuilder(Class a_class,
int a_fromIndex)
Supported API: false |
protected static DMLGenerator |
getDMLGenerator()
|
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. |
JoinClause |
getJoinCondition(String a_alias,
boolean a_fullPersistable,
Class a_tableClass)
Supported API: false |
String |
getJoinCondition(String a_alias,
Class a_tableClass,
boolean a_fullPersistable)
Supported API: false |
StatementSpec |
getSubSelect()
Gets the value of the attribute: subSelect; SubSelect for this TableExpression. |
Class |
getTableClass()
Gets the value of the attribute: tableClass; The associated class for the table expression (if supported). |
Vector |
getTables()
Returns a Vector of TableExpressions corresponding to this TableExpression. |
Class[] |
getValidClasses()
Returns Class[] for tableClass and included Interfaces (If Supported) Supported API: false |
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. |
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 |
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(AbstractSubSelectTableExpression 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. |
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. |
protected void |
setSubSelect(StatementSpec a_SubSelect)
Sets the value of the attribute: subSelect; SubSelect for this TableExpression. |
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 StatementSpec subSelect
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 DMLGenerator dmlGenerator
Constructor Detail |
public AbstractSubSelectTableExpression()
public AbstractSubSelectTableExpression(StatementSpec a_subSelect)
a_subSelect
- The StatementSpec for this instance.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(AbstractSubSelectTableExpression 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 StatementSpec getSubSelect()
protected void setSubSelect(StatementSpec a_SubSelect) throws WTPropertyVetoException
a_SubSelect
-
WTPropertyVetoException
public Vector getTables() throws QueryException
getTables
in interface TableExpression
QueryException
public 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 boolean isAutoNavigate() throws WTException
isAutoNavigate
in interface TableExpression
WTException
public 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 void appendClassAttribute(ClassAttribute a_classAttribute)
appendClassAttribute
in interface TableExpression
a_classAttribute
- public ItemBuilder getColumnAccessItemBuilder(Class a_class, int a_fromIndex) throws PersistenceException
getColumnAccessItemBuilder
in interface TableExpression
a_class
- a_fromIndex
-
PersistenceException
public Class[] getValidClasses() throws WTException
getValidClasses
in interface TableExpression
WTException
public 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 void columnsReset()
columnsReset
in interface TableExpression
public boolean isUseViewTableAlias()
isUseViewTableAlias
in interface TableExpression
public Class getTableClass()
getTableClass
in interface TableExpression
public Object getBindParameter() throws WTException
getBindParameter
in interface TableExpression
WTException
public boolean isAccessControlRequired()
isAccessControlRequired
in interface TableExpression
public void setAccessControlRequired(boolean a_AccessControlRequired)
setAccessControlRequired
in interface TableExpression
a_AccessControlRequired
- public boolean isDescendantsIncluded()
isDescendantsIncluded
in interface TableExpression
public void setDescendantsIncluded(boolean a_DescendantsIncluded)
setDescendantsIncluded
in interface TableExpression
a_DescendantsIncluded
- 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 String toString()
protected static DMLGenerator getDMLGenerator()
public Object clone()
clone
in interface TableExpression
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |