org.teiid.translator.jdbc.hsql
Class HsqlExecutionFactory

java.lang.Object
  extended by org.teiid.translator.ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
      extended by org.teiid.translator.jdbc.JDBCExecutionFactory
          extended by org.teiid.translator.jdbc.hsql.HsqlExecutionFactory

@Translator(name="hsql",
            description="A translator for open source HSQL Database")
public class HsqlExecutionFactory
extends JDBCExecutionFactory


Nested Class Summary
 
Nested classes/interfaces inherited from class org.teiid.translator.ExecutionFactory
ExecutionFactory.NullOrder, ExecutionFactory.SupportedJoinCriteria
 
Field Summary
 
Fields inherited from class org.teiid.translator.jdbc.JDBCExecutionFactory
DEFAULT_MAX_IN_CRITERIA, DEFAULT_TIME_ZONE
 
Fields inherited from class org.teiid.translator.ExecutionFactory
DEFAULT_MAX_FROM_GROUPS, DEFAULT_MAX_IN_CRITERIA_SIZE
 
Constructor Summary
HsqlExecutionFactory()
           
 
Method Summary
 java.util.List<java.lang.String> getSupportedFunctions()
          Get list of all supported function names.
 void start()
          Initialize the connector with supplied configuration
 boolean supportsAggregatesEnhancedNumeric()
          Support indicates connector can accept STDDEV_POP, STDDEV_VAR, VAR_POP, VAR_SAMP
 boolean supportsExcept()
          Support indicates that the connector supports the EXCEPT of two queries.
 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 supportsRowLimit()
          Gets whether the connector can limit the number of rows returned by a query.
 boolean supportsRowOffset()
          Gets whether the connector supports a SQL clause (similar to the LIMIT with an offset) that can return result sets that start in the middle of the resulting rows returned by a query
 java.lang.String translateLiteralDate(java.sql.Date dateValue)
          Subclasses should override this method to provide a different sql translation of the literal date value.
 java.lang.String translateLiteralTime(java.sql.Time timeValue)
          Subclasses should override this method to provide a different sql translation of the literal time value.
 java.lang.String translateLiteralTimestamp(java.sql.Timestamp timestampValue)
          Subclasses should override this method to provide a different sql translation of the literal timestamp value.
 
Methods inherited from class org.teiid.translator.jdbc.JDBCExecutionFactory
addSourceComment, afterInitialConnectionObtained, bindValue, closeConnection, createProcedureExecution, createResultSetExecution, createUpdateExecution, executeStoredProcedure, formatDateValue, getConnection, getDatabaseCalendar, getDatabaseTimeZone, getDatabaseVersion, getDefaultNullOrder, getDefaultSupportedFunctions, getFunctionModifiers, getMaxInCriteriaSize, getMaxPreparedInsertBatchSize, getMetadata, getSetOperationString, getSourceComment, getSQLConversionVisitor, getTimestampNanoPrecision, hasTimeType, isSourceRequired, isTrimStrings, obtainedConnection, registerFunctionModifier, registerSpecificTypeOfOutParameter, replaceElementName, retrieveValue, retrieveValue, setDatabaseTimeZone, setDatabaseVersion, setMaxPreparedInsertBatchSize, setTrimStrings, setUseBindVariables, setUseCommentsInSourceQuery, supportsAggregatesAvg, supportsAggregatesCount, supportsAggregatesCountStar, supportsAggregatesDistinct, supportsAggregatesMax, supportsAggregatesMin, supportsAggregatesSum, supportsAliasedTable, supportsBatchedUpdates, supportsBetweenCriteria, supportsBulkUpdate, supportsCaseExpressions, supportsCompareCriteriaEquals, supportsCompareCriteriaOrdered, supportsCorrelatedSubqueries, supportsExistsCriteria, supportsGroupBy, supportsHaving, supportsInCriteria, supportsInCriteriaSubquery, supportsInsertWithIterator, supportsInsertWithQueryExpression, supportsIsNullCriteria, supportsLikeCriteria, supportsLikeCriteriaEscapeCharacter, supportsNotCriteria, supportsOrCriteria, supportsOrderByUnrelated, supportsQuantifiedCompareCriteriaAll, supportsQuantifiedCompareCriteriaSome, supportsScalarSubqueries, supportsSearchedCaseExpressions, supportsSelectExpression, supportsSelfJoins, supportsSetQueryOrderBy, supportsUnions, translate, translateCommand, translateLimit, translateLiteralBoolean, useAsInGroupAlias, useBindVariables, useCommentsInSourceQuery, useParensForJoins, useParensForSetQueries, usePreparedStatements, useSelectLimit
 
Methods inherited from class org.teiid.translator.ExecutionFactory
areLobsUsableAfterClose, createExecution, getInstance, getLanguageFactory, getMaxFromGroups, getPushDownFunctions, getSupportedJoinCriteria, getTypeFacility, isImmutable, requiresCriteria, setImmutable, setRequiresCriteria, setSourceRequired, setSupportedJoinCriteria, setSupportsFullOuterJoins, setSupportsInnerJoins, setSupportsOrderBy, setSupportsOuterJoins, setSupportsSelectDistinct, supportsCommonTableExpressions, supportsFullOuterJoins, supportsFunctionsInGroupBy, supportsInnerJoins, supportsOrderBy, supportsOrderByNullOrdering, supportsOuterJoins, supportsSelectDistinct, useAnsiJoin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HsqlExecutionFactory

public HsqlExecutionFactory()
Method Detail

start

public void start()
           throws TranslatorException
Description copied from class: ExecutionFactory
Initialize the connector with supplied configuration

Overrides:
start in class JDBCExecutionFactory
Throws:
TranslatorException

translateLiteralDate

public java.lang.String translateLiteralDate(java.sql.Date dateValue)
Description copied from class: JDBCExecutionFactory
Subclasses should override this method to provide a different sql translation of the literal date value. By default, a date literal is represented as: {d '2002-12-31'}

Overrides:
translateLiteralDate in class JDBCExecutionFactory
Parameters:
dateValue - Date value, never null
Returns:
Translated string

translateLiteralTime

public java.lang.String translateLiteralTime(java.sql.Time timeValue)
Description copied from class: JDBCExecutionFactory
Subclasses should override this method to provide a different sql translation of the literal time value. By default, a time literal is represented as: {t '23:59:59'} See JDBCExecutionFactory.hasTimeType() to represent literal times as timestamps.

Overrides:
translateLiteralTime in class JDBCExecutionFactory
Parameters:
timeValue - Time value, never null
Returns:
Translated string

translateLiteralTimestamp

public java.lang.String translateLiteralTimestamp(java.sql.Timestamp timestampValue)
Description copied from class: JDBCExecutionFactory
Subclasses should override this method to provide a different sql translation of the literal timestamp value. By default, a timestamp literal is represented as: {ts '2002-12-31 23:59:59'}. See JDBCExecutionFactory.getTimestampNanoPrecision() to control the literal precision.

Overrides:
translateLiteralTimestamp in class JDBCExecutionFactory
Parameters:
timestampValue - Timestamp value, never null
Returns:
Translated string

getSupportedFunctions

public java.util.List<java.lang.String> getSupportedFunctions()
Description copied from class: ExecutionFactory
Get list of all supported function names. Arithmetic functions have names like "+".

Overrides:
getSupportedFunctions in class JDBCExecutionFactory

supportsInlineViews

public boolean supportsInlineViews()
Description copied from class: ExecutionFactory
Support indicates connector can accept inline views (subqueries in the FROM clause).

Overrides:
supportsInlineViews in class JDBCExecutionFactory

supportsRowLimit

public boolean supportsRowLimit()
Description copied from class: ExecutionFactory
Gets whether the connector can limit the number of rows returned by a query.

Overrides:
supportsRowLimit in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>

supportsRowOffset

public boolean supportsRowOffset()
Description copied from class: ExecutionFactory
Gets whether the connector supports a SQL clause (similar to the LIMIT with an offset) that can return result sets that start in the middle of the resulting rows returned by a query

Overrides:
supportsRowOffset in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>

supportsExcept

public boolean supportsExcept()
Description copied from class: ExecutionFactory
Support indicates that the connector supports the EXCEPT of two queries.

Overrides:
supportsExcept in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>

supportsIntersect

public boolean supportsIntersect()
Description copied from class: ExecutionFactory
Support indicates that the connector supports the INTERSECT of two queries.

Overrides:
supportsIntersect in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>

supportsAggregatesEnhancedNumeric

public boolean supportsAggregatesEnhancedNumeric()
Description copied from class: ExecutionFactory
Support indicates connector can accept STDDEV_POP, STDDEV_VAR, VAR_POP, VAR_SAMP

Overrides:
supportsAggregatesEnhancedNumeric in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>


Copyright © 2011. All Rights Reserved.