|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.StandardDMLGenerator
wt.pds.sqlServer.SQLServerDMLGenerator
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static KeywordExpression |
DATETIME_EXPRESSION
|
private static String |
FC_RESOURCE
|
private static String |
FOR_UPDATE
|
private static HashMap |
functionnameMap
|
protected static HashMap |
infixMap
|
private static String |
RESOURCE
|
(package private) static boolean |
SERVER
|
private static ConstantExpression |
TIMESTAMP_FORMAT_EXPRESSION
|
private static KeywordExpression |
VARCHAR_EXPRESSION
|
Fields inherited from class wt.pds.StandardDMLGenerator |
CLOSE_HINTS, DEBUG, LOCK_SQL_MAP, OPEN_HINTS |
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Fields inherited from interface wt.pds.DMLGenerator |
AND, AUTO_NAVI_ALIAS, BIND_PLACEHOLDER, CLOSE_PAREN, COLUMNALIAS_SUFFIX, COMMA, DB_DELIMITER, DELETE, DELETE_FROM, DISTINCT, DUMMY_BINDPARAMETER, DUMMY_TABLE, EQUAL, EQUAL_PLACEHOLDER, ESCAPE, ESCAPE_CHAR, EXISTS, FALSE_CONDITION, FROM, GREATER_THAN, GROUP_BY, HAVING, INNER_JOIN, INSERT_INTO, INTERSECT, LEFT_OUTER_JOIN, MINUS, NOT, NULL, NULL_DATE, NULL_NUMBER, ON, OPEN_PAREN, OR, ORDER_BY, OUTER_JOIN, PLACEHOLDER, RIGHT_OUTER_JOIN, SELECT, SET, SET_EQUAL, SINGLE_QUOTE, SPACE, STRING_BUFFER_INITIAL_LENGTH, TIMESTAMP_FORMAT, TRUE_CONDITION, UNION, UNION_ALL, UPDATE, VIEW_PREFIX, WHERE, ZERO |
Constructor Summary | |
SQLServerDMLGenerator()
|
Method Summary | |
protected static Object |
_buildBindParameters(StatementSpec a_statementSpec,
WTConnection a_connection)
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. |
Object |
buildBindParameters(StatementSpec a_statementSpec)
Supported API: false |
static Object |
buildBindParameters(StatementSpec a_statementSpec,
WTConnection a_connection)
Supported API: false |
protected String |
buildCallBody(String a_procedureName,
int a_parameterCount,
boolean a_isFunction)
Supported API: false |
String |
buildDataStoreProcedureName(String a_procedureName)
Supported API: false |
protected String |
buildInsertColumnForSeqeunce(ColumnDescriptor a_sequenceColumn)
Supported API: false |
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[] |
buildStatements(StatementSpec a_statementSpec,
WTConnection a_connection,
boolean a_dummyParameter)
Supported API: false |
String |
buildTableLockStatement(ClassInfo a_classInfo)
Supported API: false |
String |
getFunctionExpression(String funcName,
Vector args,
boolean a_useBind,
Vector a_tableInfos,
Vector a_aliases,
boolean a_outerJoin)
This method returns an expression for the SQL function. |
protected String |
getSQLFunctionName(String a_funcName)
Supported API: false |
private String |
getTSqlDecodeExpression(Vector args,
boolean a_useBind,
boolean a_outerJoin)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final boolean SERVER
private static final String FC_RESOURCE
private static final String FOR_UPDATE
private static HashMap functionnameMap
protected static HashMap infixMap
private static final ConstantExpression TIMESTAMP_FORMAT_EXPRESSION
private static final KeywordExpression VARCHAR_EXPRESSION
private static final KeywordExpression DATETIME_EXPRESSION
Constructor Detail |
public SQLServerDMLGenerator()
Method Detail |
public String getFunctionExpression(String funcName, Vector args, boolean a_useBind, Vector a_tableInfos, Vector a_aliases, boolean a_outerJoin) throws WTException
getFunctionExpression
in interface DMLGenerator
getFunctionExpression
in class StandardDMLGenerator
funcName
- The logic function nameargs
- a_useBind
- a_tableInfos
- a_aliases
- a_outerJoin
-
WTException
public Object buildBindParameters(StatementSpec a_statementSpec) throws WTException
buildBindParameters
in interface DMLGenerator
buildBindParameters
in class StandardDMLGenerator
a_statementSpec
-
WTException
public String[] buildStatements(StatementSpec a_statementSpec, WTConnection a_connection) throws WTException
buildStatements
in interface DMLGenerator
buildStatements
in class StandardDMLGenerator
a_statementSpec
- a_connection
-
WTException
public String[] buildStatements(StatementSpec a_statementSpec, WTConnection a_connection, boolean a_dummyParameter) throws WTException
a_statementSpec
- a_connection
- a_dummyParameter
-
WTException
public static Object buildBindParameters(StatementSpec a_statementSpec, WTConnection a_connection) throws WTException
a_statementSpec
- a_connection
-
WTException
protected static Object _buildBindParameters(StatementSpec a_statementSpec, WTConnection a_connection) throws WTException
a_statementSpec
- a_connection
-
WTException
protected String getSQLFunctionName(String a_funcName)
getSQLFunctionName
in class StandardDMLGenerator
a_funcName
-
protected String buildInsertColumnForSeqeunce(ColumnDescriptor a_sequenceColumn)
buildInsertColumnForSeqeunce
in class StandardDMLGenerator
a_sequenceColumn
-
protected String buildCallBody(String a_procedureName, int a_parameterCount, boolean a_isFunction)
buildCallBody
in class StandardDMLGenerator
a_procedureName
- a_parameterCount
- a_isFunction
-
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
buildSelectStatement
in interface DMLGenerator
buildSelectStatement
in class StandardDMLGenerator
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 buildLockStatement(ClassInfo a_classInfo) throws PersistenceException
buildLockStatement
in interface DMLGenerator
buildLockStatement
in class StandardDMLGenerator
a_classInfo
-
PersistenceException
public String buildTableLockStatement(ClassInfo a_classInfo) throws PersistenceException
buildTableLockStatement
in interface DMLGenerator
buildTableLockStatement
in class StandardDMLGenerator
a_classInfo
-
PersistenceException
public String buildDataStoreProcedureName(String a_procedureName)
buildDataStoreProcedureName
in class StandardDMLGenerator
a_procedureName
-
public String buildArrayTableExpression(String a_alias, String a_type, String a_selectList, Object a_values)
buildArrayTableExpression
in interface DMLGenerator
buildArrayTableExpression
in class StandardDMLGenerator
a_alias
- a_type
- a_selectList
- a_values
-
private String getTSqlDecodeExpression(Vector args, boolean a_useBind, boolean a_outerJoin) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |