@Translator(name="sqlserver", description="A translator for Microsoft SQL Server Database") public class SQLServerExecutionFactory extends SybaseExecutionFactory
ExecutionFactory.Format, ExecutionFactory.NullOrder, ExecutionFactory.SupportedJoinCriteria| Modifier and Type | Field and Description |
|---|---|
static String |
V_2005 |
static String |
V_2008 |
FIFTEEN_0_2, FIFTEEN_5, formatMap, jtdsDriver, TWELVE_5DEFAULT_MAX_DEPENDENT_PREDICATES, DEFAULT_MAX_IN_CRITERIA, DEFAULT_TIME_ZONEDEFAULT_MAX_FROM_GROUPS, DEFAULT_MAX_IN_CRITERIA_SIZE| Constructor and Description |
|---|
SQLServerExecutionFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanNullable() |
protected List<Object> |
convertDateToString(Function function) |
protected List<?> |
convertTimestampToString(Function function) |
int |
getMaxFromGroups()
The number of groups supported in the from clause.
|
List<String> |
getSupportedFunctions()
Get list of all supported function names.
|
boolean |
hasTimeType()
Return false to indicate that time support should be emulated
with timestamps.
|
boolean |
nullPlusNonNullIsNull() |
protected void |
populateDateFormats() |
protected boolean |
setFetchSizeOnCallableStatements() |
boolean |
supportsAggregatesEnhancedNumeric()
Support indicates connector can accept STDDEV_POP, STDDEV_VAR, VAR_POP, VAR_SAMP
|
boolean |
supportsCommonTableExpressions() |
protected boolean |
supportsCrossJoin() |
boolean |
supportsElementaryOlapOperations() |
boolean |
supportsExcept()
Support indicates that the connector supports the EXCEPT of two queries.
|
boolean |
supportsFormatLiteral(String literal,
ExecutionFactory.Format format) |
boolean |
supportsFunctionsInGroupBy()
Support indicates that the connector supports functions in GROUP BY, such as:
SELECT dayofmonth(theDate), COUNT(*) FROM table GROUP BY dayofmonth(theDate) |
boolean |
supportsInlineViews()
Support indicates connector can accept inline views (subqueries
in the FROM clause).
|
boolean |
supportsIntersect()
Support indicates that the connector supports the INTERSECT of two queries.
|
boolean |
supportsOnlyFormatLiterals()
|
boolean |
supportsRowLimit()
Gets whether the connector can limit the number of rows returned by a query.
|
boolean |
supportsWindowDistinctAggregates() |
boolean |
supportsWindowOrderByWithAggregates() |
List<?> |
translate(LanguageObject obj,
ExecutionContext context)
Return a List of translated parts (
LanguageObjects and Objects), or null
if to rely on the default translation. |
String |
translateLiteralDate(Date dateValue)
Subclasses should override this method to provide a different sql translation
of the literal date value.
|
isJtdsDriver, setFetchSize, setJtdsDriver, start, translateLiteralTimestampbindValue, getTimestampNanoPrecision, retrieveValue, retrieveValue, translateCommand, translateLimit, useAsInGroupAlias, useSelectLimitaddSourceComment, afterInitialConnectionObtained, closeConnection, createMetadataProcessor, createProcedureExecution, createResultSetExecution, createUpdateExecution, executeStoredProcedure, formatDateValue, getConnection, getDatabaseCalendar, getDatabaseTimeZone, getDatabaseVersion, getDefaultNullOrder, getDefaultSupportedFunctions, getFunctionModifiers, getLikeRegexString, getMaxPreparedInsertBatchSize, getMetadata, getSetOperationString, getSourceComment, getSQLConversionVisitor, isSourceRequired, isTrimStrings, obtainedConnection, parseName, registerFunctionModifier, registerSpecificTypeOfOutParameter, replaceElementName, setDatabaseTimeZone, setDatabaseVersion, setMaxPreparedInsertBatchSize, setTrimStrings, setUseBindVariables, setUseCommentsInSourceQuery, supportsAggregatesAvg, supportsAggregatesCount, supportsAggregatesCountStar, supportsAggregatesDistinct, supportsAggregatesMax, supportsAggregatesMin, supportsAggregatesSum, supportsAliasedTable, supportsBatchedUpdates, supportsBulkUpdate, supportsCompareCriteriaEquals, supportsCompareCriteriaOrdered, supportsCorrelatedSubqueries, supportsExistsCriteria, supportsGroupBy, supportsHaving, supportsInCriteria, supportsInCriteriaSubquery, supportsInsertWithQueryExpression, supportsIsNullCriteria, supportsLikeCriteria, supportsLikeCriteriaEscapeCharacter, supportsNotCriteria, supportsOrCriteria, supportsOrderByUnrelated, supportsQuantifiedCompareCriteriaAll, supportsQuantifiedCompareCriteriaSome, supportsScalarSubqueries, supportsSearchedCaseExpressions, supportsSelectExpression, supportsSelfJoins, supportsSetQueryOrderBy, supportsUnions, translateLiteralBoolean, translateLiteralTime, useBindVariables, useCommentsInSourceQuery, useParensForJoins, useParensForSetQueries, usePreparedStatementsaddPushDownFunction, areLobsUsableAfterClose, createExecution, getConnection, getInstance, getLanguageFactory, getMaxDependentInPredicates, getMaxInCriteriaSize, getPushDownFunctions, getSupportedJoinCriteria, getTypeFacility, isCopyLobs, isImmutable, requiresCriteria, setCopyLobs, setImmutable, setMaxDependentInPredicates, setMaxInCriteriaSize, setRequiresCriteria, setSourceRequired, setSupportedJoinCriteria, setSupportsFullOuterJoins, setSupportsInnerJoins, setSupportsOrderBy, setSupportsOuterJoins, setSupportsSelectDistinct, supportsAdvancedOlapOperations, supportsArrayAgg, supportsConvert, supportsDependentJoins, supportsFullOuterJoins, supportsInnerJoins, supportsLikeRegex, supportsOnlyLiteralComparison, supportsOnlySingleTableGroupBy, supportsOrderBy, supportsOrderByNullOrdering, supportsOuterJoins, supportsRowOffset, supportsSelectDistinct, supportsSimilarTo, useAnsiJoinpublic static final String V_2005
public static final String V_2008
protected void populateDateFormats()
populateDateFormats in class SybaseExecutionFactoryprotected List<Object> convertDateToString(Function function)
convertDateToString in class SybaseExecutionFactoryprotected List<?> convertTimestampToString(Function function)
convertTimestampToString in class SybaseExecutionFactorypublic List<?> translate(LanguageObject obj, ExecutionContext context)
JDBCExecutionFactoryLanguageObjects and Objects), or null
if to rely on the default translation. Override with care.translate in class BaseSybaseExecutionFactorypublic List<String> getSupportedFunctions()
ExecutionFactorygetSupportedFunctions in class SybaseExecutionFactoryfor a listing of system pushdown functions. Note that
not all system functions are listed as some functions will use a common name
such as CONCAT vs. the || operator, and other functions will be rewritten and
not pushed down, such as SPACE.public boolean supportsInlineViews()
ExecutionFactorysupportsInlineViews in class SybaseExecutionFactorypublic boolean supportsFunctionsInGroupBy()
ExecutionFactorySupport indicates that the connector supports functions in GROUP BY, such as:
SELECT dayofmonth(theDate), COUNT(*) FROM table GROUP BY dayofmonth(theDate)
supportsFunctionsInGroupBy in class SybaseExecutionFactorypublic boolean supportsRowLimit()
ExecutionFactorysupportsRowLimit in class SybaseExecutionFactorypublic boolean supportsIntersect()
ExecutionFactorysupportsIntersect in class ExecutionFactory<DataSource,Connection>public boolean supportsExcept()
ExecutionFactorysupportsExcept in class ExecutionFactory<DataSource,Connection>public int getMaxFromGroups()
ExecutionFactorygetMaxFromGroups in class SybaseExecutionFactorypublic boolean supportsAggregatesEnhancedNumeric()
ExecutionFactorysupportsAggregatesEnhancedNumeric in class SybaseExecutionFactorypublic boolean nullPlusNonNullIsNull()
nullPlusNonNullIsNull in class SybaseExecutionFactorypublic boolean booleanNullable()
booleanNullable in class SybaseExecutionFactorypublic String translateLiteralDate(Date dateValue)
JDBCExecutionFactory{d '2002-12-31'}translateLiteralDate in class SybaseExecutionFactorydateValue - Date value, never nullpublic boolean hasTimeType()
JDBCExecutionFactoryhasTimeType in class BaseSybaseExecutionFactorypublic boolean supportsCommonTableExpressions()
supportsCommonTableExpressions in class ExecutionFactory<DataSource,Connection>protected boolean supportsCrossJoin()
supportsCrossJoin in class BaseSybaseExecutionFactorypublic boolean supportsElementaryOlapOperations()
supportsElementaryOlapOperations in class ExecutionFactory<DataSource,Connection>public boolean supportsWindowDistinctAggregates()
supportsWindowDistinctAggregates in class ExecutionFactory<DataSource,Connection>public boolean supportsWindowOrderByWithAggregates()
supportsWindowOrderByWithAggregates in class ExecutionFactory<DataSource,Connection>public boolean supportsFormatLiteral(String literal, ExecutionFactory.Format format)
supportsFormatLiteral in class ExecutionFactory<DataSource,Connection>public boolean supportsOnlyFormatLiterals()
ExecutionFactorysupportsOnlyFormatLiterals in class ExecutionFactory<DataSource,Connection>protected boolean setFetchSizeOnCallableStatements()
setFetchSizeOnCallableStatements in class SybaseExecutionFactoryCopyright © 2012 JBoss by Red Hat. All Rights Reserved.