|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.AbstractClassTableExpression
wt.query.ClassViewExpression
This class represents a class specification of a table which can be used
in a SQL FROM clause. The SQL table is a combined "view" of the class
and all sub-classes.
Supported API: true
Extendable: false
Field Summary | |
private Vector |
classInfos
|
private static String |
CLASSNAME
|
private CriteriaDescriptor[] |
criterion
|
static boolean |
DEBUG
|
private static DMLGenerator |
dmlGenerator
|
static long |
EXTERNALIZATION_VERSION_UID
|
private JoinClause |
joinClause
|
private static DebugWriter |
LOG
|
private HashMap |
map
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private String[] |
tableAliases
|
private DatabaseViewInfo |
viewInfo
|
private WhereExpression |
where
|
Fields inherited from class wt.query.AbstractClassTableExpression |
|
Fields inherited from interface wt.query.TableExpression |
ACCESS_CONTROL_REQUIRED, ADVANCED_QUERY, ADVANCED_QUERY_ENABLED, BIND_PARAMETER, DESCENDANTS_INCLUDED, TABLE_CLASS |
Constructor Summary | |
ClassViewExpression()
Supported API: false |
|
ClassViewExpression(Class a_class)
This constructor initializes this instance. |
Method Summary | |
void |
appendClassAttribute(ClassAttribute a_classAttribute)
Supported API: false |
Object |
getAppendedJoinConditionsBindParamter(String a_alias,
Vector a_singleBindParameter,
int a_outerNonJoinFromIndex,
boolean a_fullPersistable)
Supported API: false |
ItemBuilder |
getColumnAccessItemBuilder(Class a_class,
int a_fromIndex)
Supported API: false |
private 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 |
int |
getReferencedViewClassCount()
Supported API: false |
Vector |
getTables()
Returns a Vector of TableExpressions corresponding to this TableExpression. |
WhereExpression |
getWhere()
Gets the value of the attribute: where. |
boolean |
isAutoNavigate()
Supported API: false |
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(ClassViewExpression thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setAppendedJoinConditions(WhereClause a_whereClause,
WhereExpression a_whereExpression)
Supported API: false |
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 |
setWhere(WhereExpression a_Where)
Sets the value of the attribute: where. |
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 WhereExpression where
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private transient Vector classInfos
private transient DatabaseViewInfo viewInfo
private transient CriteriaDescriptor[] criterion
private transient HashMap map
private transient JoinClause joinClause
private transient String[] tableAliases
private static DMLGenerator dmlGenerator
public static final boolean DEBUG
private static final DebugWriter LOG
Constructor Detail |
public ClassViewExpression()
public ClassViewExpression(Class a_class)
a_class
- Class to use as source of the TableExpression.Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractClassTableExpression
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractClassTableExpression
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ClassViewExpression 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 WhereExpression getWhere()
public void setWhere(WhereExpression a_Where) throws WTPropertyVetoException
a_Where
-
WTPropertyVetoException
public Vector getTables() throws QueryException
getTables
in interface TableExpression
getTables
in class AbstractClassTableExpression
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
getExpression
in class AbstractClassTableExpression
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 isAutoNavigate() throws WTException
isAutoNavigate
in interface TableExpression
isAutoNavigate
in class AbstractClassTableExpression
WTException
public ItemBuilder getColumnAccessItemBuilder(Class a_class, int a_fromIndex) throws PersistenceException
getColumnAccessItemBuilder
in interface TableExpression
getColumnAccessItemBuilder
in class AbstractClassTableExpression
a_class
- a_fromIndex
-
PersistenceException
public void appendClassAttribute(ClassAttribute a_classAttribute)
appendClassAttribute
in interface TableExpression
appendClassAttribute
in class AbstractClassTableExpression
a_classAttribute
- public JoinClause getJoinCondition(String a_alias, boolean a_fullPersistable, Class a_tableClass) throws WTException
getJoinCondition
in interface TableExpression
getJoinCondition
in class AbstractClassTableExpression
a_alias
- a_fullPersistable
- a_tableClass
-
WTException
public String getJoinCondition(String a_alias, Class a_tableClass, boolean a_fullPersistable) throws WTException
getJoinCondition
in interface TableExpression
getJoinCondition
in class AbstractClassTableExpression
a_alias
- a_tableClass
- a_fullPersistable
-
WTException
public void setAppendedJoinConditions(WhereClause a_whereClause, WhereExpression a_whereExpression)
setAppendedJoinConditions
in class AbstractClassTableExpression
a_whereClause
- a_whereExpression
- public Object getAppendedJoinConditionsBindParamter(String a_alias, Vector a_singleBindParameter, int a_outerNonJoinFromIndex, boolean a_fullPersistable) throws QueryException
getAppendedJoinConditionsBindParamter
in class AbstractClassTableExpression
a_alias
- a_singleBindParameter
- a_outerNonJoinFromIndex
- a_fullPersistable
-
QueryException
public int getReferencedViewClassCount()
getReferencedViewClassCount
in class AbstractClassTableExpression
public 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
setAppendedJoinConditions
in class AbstractClassTableExpression
a_whereClause
- a_whereExpression
- a_alias
- a_singleBindParameter
- a_outerNonJoinFromIndex
- a_fullPersistable
- a_useBind
-
QueryException
public boolean isUseViewTableAlias()
isUseViewTableAlias
in interface TableExpression
isUseViewTableAlias
in class AbstractClassTableExpression
private DMLGenerator getDMLGenerator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |