public class SQLServerSQLStatementHandler extends DefaultSQLStatementHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
GENERATED_KEY_COLUMN_NAME |
static String |
TOP_100_PERCENT |
CONFLICT_CHARS, queryConditionsProcessor, sqlNameEval, useAsInSubqueries| Constructor and Description |
|---|
SQLServerSQLStatementHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
changeGenerateKeyNames(EntityResult result,
List columnNames) |
SQLStatementBuilder.SQLStatement |
createCountQuery(String table,
Hashtable conditions,
Vector wildcards,
Vector countColumns)
Returns a
SQLStatement class that stores the information
needed to execute a query that obtains the number of query records |
protected SQLStatementBuilder.SQLStatement |
createLeftJoinSelectQueryPageable(String mainTable,
String subquery,
String secondaryTable,
Vector mainKeys,
Vector secondaryKeys,
Vector mainTableRequestedColumns,
Vector secondaryTableRequestedColumns,
Hashtable mainTableConditions,
Hashtable secondaryTableConditions,
Vector wildcards,
Vector columnSorting,
boolean forceDistinct,
boolean descending,
int recordCount) |
protected String |
createSelectClause(boolean forceDistinct) |
SQLStatementBuilder.SQLStatement |
createSelectQuery(String table,
Vector requestedColumns,
Hashtable conditions,
Vector wildcards,
Vector columnSorting,
int recordCount,
boolean descending,
boolean forceDistinct)
Returns a
SQLStatement class that stores the information
needed to execute a select query. |
protected String |
createSelectQuery(String table,
Vector askedColumns,
int recordsNumber,
boolean forceDistinct) |
boolean |
isDelimited() |
boolean |
isPageable() |
addInnerMultilanguageColumns, addMultilanguageLeftJoinTables, addOuterMultilanguageColumns, addOuterMultilanguageColumnsPageable, addSpecialCharacters, changeColumnName, changeColumnNames, checkColumnName, createCountQuery, createCountQuery, createDeleteQuery, createInsertQuery, createJoinFromSubselectsQuery, createJoinSelectQuery, createJoinSelectQuery, createLeftJoinSelectQuery, createLeftJoinSelectQueryPageable, createQueryConditions, createQueryConditions, createQueryConditionsWithoutWhere, createSelectQuery, createSelectQuery, createSelectQuery, createSelectQuery, createSelectQuery, createSelectQuery, createSelectQuery, createSelectQuery, createSelectQuery, createSelectQuery, createSelectQuery, createSortStatement, createSortStatement, createUpdateQuery, generatedKeysToEntityResult, getColumnNames, getQueryConditionsProcessor, getResultSetValue, getSQLNameEval, hasIsolationFunction, isUseAsInSubqueries, qualify, readBinaryStream, readCharacterStream, readCharacterStream, resultSetToEntityResult, resultSetToEntityResult, setObject, setSQLConditionValuesProcessor, setSQLNameEval, setTimestampObject, setUseAsInSubqueriespublic static final String GENERATED_KEY_COLUMN_NAME
public static final String TOP_100_PERCENT
public boolean isPageable()
isPageable in interface SQLStatementHandlerisPageable in class DefaultSQLStatementHandlerpublic boolean isDelimited()
isDelimited in interface SQLStatementHandlerisDelimited in class DefaultSQLStatementHandlerprotected String createSelectClause(boolean forceDistinct)
createSelectClause in class DefaultSQLStatementHandlerpublic SQLStatementBuilder.SQLStatement createSelectQuery(String table, Vector requestedColumns, Hashtable conditions, Vector wildcards, Vector columnSorting, int recordCount, boolean descending, boolean forceDistinct)
DefaultSQLStatementHandlerSQLStatement class that stores the information
needed to execute a select query.createSelectQuery in interface SQLStatementHandlercreateSelectQuery in class DefaultSQLStatementHandlertable - name of the table the query is executed againstrequestedColumns - a Vector specifying the requested column name in the queryconditions - condition list used to created the querywildcards - column list that can use wildcardscolumnSorting - column list where query sorting is establishedrecordCount - number of records requested in the querydescending - true if sorting should be descendingforceDistinct - true if query result cannot have duplicated recordsSQLStatement classSQLStatementBuilder.SQLStatementprotected String createSelectQuery(String table, Vector askedColumns, int recordsNumber, boolean forceDistinct)
protected SQLStatementBuilder.SQLStatement createLeftJoinSelectQueryPageable(String mainTable, String subquery, String secondaryTable, Vector mainKeys, Vector secondaryKeys, Vector mainTableRequestedColumns, Vector secondaryTableRequestedColumns, Hashtable mainTableConditions, Hashtable secondaryTableConditions, Vector wildcards, Vector columnSorting, boolean forceDistinct, boolean descending, int recordCount)
createLeftJoinSelectQueryPageable in class DefaultSQLStatementHandlerpublic SQLStatementBuilder.SQLStatement createCountQuery(String table, Hashtable conditions, Vector wildcards, Vector countColumns)
DefaultSQLStatementHandlerSQLStatement class that stores the information
needed to execute a query that obtains the number of query recordscreateCountQuery in interface SQLStatementHandlercreateCountQuery in class DefaultSQLStatementHandlertable - name of the table the query is executed againstconditions - condition list used in the querywildcards - column list that can use wildcardsSQLStatement classprotected void changeGenerateKeyNames(EntityResult result, List columnNames)
changeGenerateKeyNames in class DefaultSQLStatementHandlerCopyright © 2016 Imatia Innovation S.L.. All rights reserved.