|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides the abstraction for generating datastore specific
Data Manipulation Language (DML) statements.
Supported API: false
Extendable: false
Method Summary | |
void |
appendQuote(Object a_value,
StringBuffer a_buffer)
Supported API: false |
ArrayTableExpression[] |
buildArrayTableExpression(String[] selectListArray,
List a_oidList,
int offset,
int count,
int oidCount,
int a_groupFromIndex,
boolean useExtend,
boolean useRowExtension,
int rowExtensionNum,
long a_sessionId)
Supported API: false |
String |
buildArrayTableExpression(String a_alias,
String a_type,
String a_selectList,
Object a_values)
This method is used to build the SQL string for ArrayTableExpression. |
String[] |
buildArrayTableSelectList(int oidCount,
int a_groupFromIndex,
boolean useExtend,
boolean useRowExtension,
int rowExtensionNum)
Supported API: false |
String |
buildAttributeUpdateStatement(Persistable object,
String[] attribute_names)
Supported API: false |
Object |
buildBindParameters(StatementSpec a_statementSpec)
Supported API: false |
String |
buildCall(String a_procedureName,
int a_parameterCount,
boolean a_isFunction)
Supported API: false |
String |
buildCompoundStatement(String[] a_sqlStatements,
String a_setOperator,
String a_orderByClause)
Supported API: false |
void |
buildDeleteStatement(ClassInfo a_classInfo,
WhereExpression a_where,
boolean a_useBind,
StringBuffer a_delete)
This method builds a DELETE-WHERE SQL statement. |
String |
buildDummySubSelectStatement(StatementSpec a_statementSpec,
String a_alias)
Supported API: false |
String |
buildEmptyDummySubSelectStatement()
Supported API: false |
String |
buildInsertStatement(ClassInfo a_classInfo,
ColumnDescriptor[] a_insertColumns)
Supported API: false |
String |
buildInsertStatement(StatementSpec a_statementSpec,
String tableName,
WTConnection a_connection)
Supported API: false |
String |
buildInsertStatement(String a_tableName,
ColumnDescriptor[] a_insertColumns,
Object[] a_values)
This method builds an INSERT statement. |
String |
buildLockStatement(ClassInfo a_classInfo)
Supported API: false |
String |
buildSelectStatement(Vector a_tables,
Vector a_aliases,
ResultBuilder a_resultBuilder,
boolean a_isDistinct,
String a_select,
String a_whereClause,
String a_groupByClause,
String a_havingClause,
String a_orderByClause,
boolean a_forUpdate,
int[] a_joinOrder,
Vector a_hintsVector,
boolean[] a_fullPersistableTableIndicies,
JoinClause a_joinClause,
boolean a_useBind)
Supported API: false |
String[] |
buildStatements(StatementSpec a_statementSpec,
WTConnection a_connection)
Supported API: false |
String |
buildSubSelectStatement(StatementSpec a_statementSpec,
WTConnection a_connection)
Supported API: false |
String |
buildTableLockStatement(ClassInfo a_classInfo)
Supported API: false |
String |
buildUpdateStatement(ClassInfo a_classInfo,
ColumnDescriptor[] a_columns)
Supported API: false |
boolean |
buildUpdateStatement(ClassInfo a_classInfo,
WhereExpression a_where,
boolean a_useBind,
UpdateColumnExpression[] a_updateColumns,
StringBuffer a_buffer)
This method builds the specified UPDATE statement. |
String |
getComputedColumnName(String funcName,
Vector args,
Vector a_tableInfos,
Vector a_aliases)
This method returns the computed column name for the function, if it exists. |
String |
getFunctionExpression(String funcName,
Vector args,
boolean a_useBind,
Vector a_tableInfos,
Vector a_aliases,
boolean a_outerJoin)
This method returns the DML string representation of the function. |
StringBuffer |
quote(Object a_value,
StringBuffer a_buffer)
Supported API: false |
Field Detail |
public static final String TIMESTAMP_FORMAT
public static final char COMMA
public static final char SPACE
public static final char DB_DELIMITER
public static final char OPEN_PAREN
public static final char CLOSE_PAREN
public static final char SINGLE_QUOTE
public static final char PLACEHOLDER
public static final String OUTER_JOIN
public static final String INNER_JOIN
public static final String LEFT_OUTER_JOIN
public static final String RIGHT_OUTER_JOIN
public static final String ON
public static final String SELECT
public static final String DISTINCT
public static final String FROM
public static final String WHERE
public static final String ORDER_BY
public static final String GROUP_BY
public static final String HAVING
public static final String UNION
public static final String UNION_ALL
public static final String INTERSECT
public static final String MINUS
public static final String EXISTS
public static final String NOT
public static final String UPDATE
public static final String SET
public static final String DELETE
public static final String INSERT_INTO
public static final String DELETE_FROM
public static final String AND
public static final String OR
public static final String EQUAL
public static final String GREATER_THAN
public static final String NULL
public static final String NULL_NUMBER
public static final String NULL_DATE
public static final String AUTO_NAVI_ALIAS
public static final String VIEW_PREFIX
public static final String COLUMNALIAS_SUFFIX
public static final String ZERO
public static final String TRUE_CONDITION
public static final String FALSE_CONDITION
public static final String DUMMY_TABLE
public static final int STRING_BUFFER_INITIAL_LENGTH
public static final String DUMMY_BINDPARAMETER
public static final String SET_EQUAL
public static final String EQUAL_PLACEHOLDER
public static final String BIND_PLACEHOLDER
public static final String ESCAPE
public static final char ESCAPE_CHAR
Method Detail |
public String getFunctionExpression(String funcName, Vector args, boolean a_useBind, Vector a_tableInfos, Vector a_aliases, boolean a_outerJoin) throws WTException
funcName
- The logic function nameargs
- a_useBind
- a_tableInfos
- a_aliases
- a_outerJoin
-
WTException
public String getComputedColumnName(String funcName, Vector args, Vector a_tableInfos, Vector a_aliases) throws WTException
funcName
- The logic function nameargs
- a_tableInfos
- a_aliases
-
WTException
public String buildSelectStatement(Vector a_tables, Vector a_aliases, ResultBuilder a_resultBuilder, boolean a_isDistinct, String a_select, String a_whereClause, String a_groupByClause, String a_havingClause, String a_orderByClause, boolean a_forUpdate, int[] a_joinOrder, Vector a_hintsVector, boolean[] a_fullPersistableTableIndicies, JoinClause a_joinClause, boolean a_useBind) throws PersistenceException
a_tables
- a_aliases
- a_resultBuilder
- a_isDistinct
- a_select
- a_whereClause
- a_groupByClause
- a_havingClause
- a_orderByClause
- a_forUpdate
- a_joinOrder
- a_hintsVector
- a_fullPersistableTableIndicies
- a_joinClause
- a_useBind
-
PersistenceException
public String buildInsertStatement(ClassInfo a_classInfo, ColumnDescriptor[] a_insertColumns) throws PersistenceException
a_classInfo
- a_insertColumns
-
PersistenceException
public String buildCall(String a_procedureName, int a_parameterCount, boolean a_isFunction)
a_procedureName
- a_parameterCount
- a_isFunction
-
public String buildCompoundStatement(String[] a_sqlStatements, String a_setOperator, String a_orderByClause) throws PersistenceException
a_sqlStatements
- a_setOperator
- a_orderByClause
-
PersistenceException
public String buildLockStatement(ClassInfo a_classInfo) throws PersistenceException
a_classInfo
-
PersistenceException
public String buildTableLockStatement(ClassInfo a_classInfo) throws PersistenceException
a_classInfo
-
PersistenceException
public String buildEmptyDummySubSelectStatement() throws WTException
WTException
public String buildDummySubSelectStatement(StatementSpec a_statementSpec, String a_alias) throws WTException
a_statementSpec
- a_alias
-
WTException
public void buildDeleteStatement(ClassInfo a_classInfo, WhereExpression a_where, boolean a_useBind, StringBuffer a_delete) throws WTException
a_classInfo
- Target class for the delete.a_where
- The WHERE clause to use in the statement.a_useBind
- Indicates if bind parameters should be used.a_delete
- The target string buffer to build the statement in.
WTException
public String buildUpdateStatement(ClassInfo a_classInfo, ColumnDescriptor[] a_columns) throws PersistenceException
a_classInfo
- a_columns
-
PersistenceException
public void appendQuote(Object a_value, StringBuffer a_buffer)
a_value
- a_buffer
- public StringBuffer quote(Object a_value, StringBuffer a_buffer)
a_value
- a_buffer
-
public ArrayTableExpression[] buildArrayTableExpression(String[] selectListArray, List a_oidList, int offset, int count, int oidCount, int a_groupFromIndex, boolean useExtend, boolean useRowExtension, int rowExtensionNum, long a_sessionId) throws PersistenceException
selectListArray
- a_oidList
- offset
- count
- oidCount
- a_groupFromIndex
- useExtend
- useRowExtension
- rowExtensionNum
- a_sessionId
-
PersistenceException
public String[] buildArrayTableSelectList(int oidCount, int a_groupFromIndex, boolean useExtend, boolean useRowExtension, int rowExtensionNum) throws PersistenceException
oidCount
- a_groupFromIndex
- useExtend
- useRowExtension
- rowExtensionNum
-
PersistenceException
public String buildAttributeUpdateStatement(Persistable object, String[] attribute_names) throws PersistenceException
object
- attribute_names
-
PersistenceException
public String buildSubSelectStatement(StatementSpec a_statementSpec, WTConnection a_connection) throws WTException
a_statementSpec
- a_connection
-
WTException
public String[] buildStatements(StatementSpec a_statementSpec, WTConnection a_connection) throws WTException
a_statementSpec
- a_connection
-
WTException
public Object buildBindParameters(StatementSpec a_statementSpec) throws WTException
a_statementSpec
-
WTException
public String buildInsertStatement(StatementSpec a_statementSpec, String tableName, WTConnection a_connection) throws WTException
a_statementSpec
- tableName
- a_connection
-
WTException
public String buildInsertStatement(String a_tableName, ColumnDescriptor[] a_insertColumns, Object[] a_values) throws WTException
a_tableName
- The table to INSERT into.a_insertColumns
- The columns of the table to INSERT into.a_values
- the values to INSERT. These values correspond to the specified columns. If the array is null, the length of the array is less than the index of an associated column, or the array element is null, then a bind parameter placeholder is used.
WTException
public boolean buildUpdateStatement(ClassInfo a_classInfo, WhereExpression a_where, boolean a_useBind, UpdateColumnExpression[] a_updateColumns, StringBuffer a_buffer) throws WTException
a_classInfo
- The target class of the statement.a_where
- WhereExpression to use for the statement.a_useBind
- Indicates if bind parameters should be used.a_updateColumns
- Column expressions and values to use in the SET portion of the update statement.a_buffer
- Buffer to build the SQL string into.
WTException
public String buildArrayTableExpression(String a_alias, String a_type, String a_selectList, Object a_values)
a_alias
- a_type
- a_selectList
- a_values
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |