org.teiid.translator.jdbc.teradata
Class TeradataExecutionFactory

java.lang.Object
  extended by org.teiid.translator.ExecutionFactory<DataSource,Connection>
      extended by org.teiid.translator.jdbc.JDBCExecutionFactory
          extended by org.teiid.translator.jdbc.teradata.TeradataExecutionFactory

@Translator(name="teradata",
            description="A translator for Teradata Database")
public class TeradataExecutionFactory
extends JDBCExecutionFactory

Teradata database Release 12


Nested Class Summary
static class TeradataExecutionFactory.CastModifier
           
static class TeradataExecutionFactory.ExtractModifier
           
static class TeradataExecutionFactory.LeftOrRightFunctionModifier
           
static class TeradataExecutionFactory.LocateModifier
           
 
Nested classes/interfaces inherited from class org.teiid.translator.ExecutionFactory
ExecutionFactory.NullOrder, ExecutionFactory.SupportedJoinCriteria
 
Field Summary
protected  ConvertModifier convert
           
static String TERADATA
           
 
Fields inherited from class org.teiid.translator.jdbc.JDBCExecutionFactory
DEFAULT_MAX_DEPENDENT_PREDICATES, 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
TeradataExecutionFactory()
           
 
Method Summary
 ExecutionFactory.NullOrder getDefaultNullOrder()
          Returns the default null ordering
 SQLConversionVisitor getSQLConversionVisitor()
          Create the SQLConversionVisitor that will perform translation.
 List<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 supportsCommonTableExpressions()
           
 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 supportsScalarSubqueries()
          Support indicates connector can accept scalar subqueries in the SELECT, WHERE, and HAVING clauses
 boolean supportsUnions()
          Support indicates that the connector supports the UNION of two queries.
 List<?> translateCommand(Command command, 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.
 String translateLiteralTime(Time timeValue)
          Subclasses should override this method to provide a different sql translation of the literal time value.
 String translateLiteralTimestamp(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, createMetadataProcessor, createProcedureExecution, createResultSetExecution, createUpdateExecution, executeStoredProcedure, formatDateValue, getConnection, getDatabaseCalendar, getDatabaseTimeZone, getDatabaseVersion, getDefaultSupportedFunctions, getFunctionModifiers, getLikeRegexString, getMaxPreparedInsertBatchSize, getMetadata, getSetOperationString, getSourceComment, getTimestampNanoPrecision, hasTimeType, isSourceRequired, isTrimStrings, obtainedConnection, parseName, 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, supportsSearchedCaseExpressions, supportsSelectExpression, supportsSelfJoins, supportsSetQueryOrderBy, translate, translateLimit, translateLiteralBoolean, useAsInGroupAlias, useBindVariables, useCommentsInSourceQuery, useParensForJoins, useParensForSetQueries, usePreparedStatements, useSelectLimit
 
Methods inherited from class org.teiid.translator.ExecutionFactory
addPushDownFunction, areLobsUsableAfterClose, createExecution, getConnection, getInstance, getLanguageFactory, getMaxDependentInPredicates, getMaxFromGroups, getMaxInCriteriaSize, getPushDownFunctions, getSupportedJoinCriteria, getTypeFacility, isImmutable, requiresCriteria, setImmutable, setMaxDependentInPredicates, setMaxInCriteriaSize, setRequiresCriteria, setSourceRequired, setSupportedJoinCriteria, setSupportsFullOuterJoins, setSupportsInnerJoins, setSupportsOrderBy, setSupportsOuterJoins, setSupportsSelectDistinct, supportsAdvancedOlapOperations, supportsArrayAgg, supportsElementaryOlapOperations, supportsFullOuterJoins, supportsFunctionsInGroupBy, supportsInnerJoins, supportsLikeRegex, supportsOnlySingleTableGroupBy, supportsOrderBy, supportsOrderByNullOrdering, supportsOuterJoins, supportsRowLimit, supportsRowOffset, supportsSelectDistinct, supportsSimilarTo, supportsWindowDistinctAggregates, supportsWindowOrderByWithAggregates, useAnsiJoin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TERADATA

public static String TERADATA

convert

protected ConvertModifier convert
Constructor Detail

TeradataExecutionFactory

public TeradataExecutionFactory()
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

getSQLConversionVisitor

public SQLConversionVisitor getSQLConversionVisitor()
Description copied from class: JDBCExecutionFactory
Create the SQLConversionVisitor that will perform translation. Typical custom JDBC connectors will not need to create custom conversion visitors, rather implementors should override existing JDBCExecutionFactory methods.

Overrides:
getSQLConversionVisitor in class JDBCExecutionFactory
Returns:
the SQLConversionVisitor

getSupportedFunctions

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

Overrides:
getSupportedFunctions in class JDBCExecutionFactory

translateLiteralDate

public String translateLiteralDate(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 String translateLiteralTime(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 String translateLiteralTimestamp(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

supportsScalarSubqueries

public boolean supportsScalarSubqueries()
Description copied from class: ExecutionFactory
Support indicates connector can accept scalar subqueries in the SELECT, WHERE, and HAVING clauses

Overrides:
supportsScalarSubqueries in class JDBCExecutionFactory

supportsUnions

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

Overrides:
supportsUnions in class JDBCExecutionFactory

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<DataSource,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<DataSource,Connection>

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

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<DataSource,Connection>

supportsCommonTableExpressions

public boolean supportsCommonTableExpressions()
Overrides:
supportsCommonTableExpressions in class ExecutionFactory<DataSource,Connection>
Returns:
true if the WITH clause is supported

getDefaultNullOrder

public ExecutionFactory.NullOrder getDefaultNullOrder()
Description copied from class: ExecutionFactory
Returns the default null ordering

Overrides:
getDefaultNullOrder in class JDBCExecutionFactory
Returns:
the ExecutionFactory.NullOrder

translateCommand

public List<?> translateCommand(Command command,
                                ExecutionContext context)
Description copied from class: JDBCExecutionFactory
Return a List of translated parts (LanguageObjects and Objects), or null if to rely on the default translation.

Overrides:
translateCommand in class JDBCExecutionFactory
Returns:
a list of translated parts


Copyright © 2012. All Rights Reserved.