@Translator(name="yahoo", description="A translator for testing to obtain stock quotes from Yahoo web site") public class YahooExecutionFactory extends ExecutionFactory<Object,Object>
ExecutionFactory.Format, ExecutionFactory.NullOrder, ExecutionFactory.SupportedJoinCriteria
Modifier and Type | Field and Description |
---|---|
static int |
YAHOO_MAX_SET_SIZE |
DEFAULT_MAX_FROM_GROUPS, DEFAULT_MAX_IN_CRITERIA_SIZE
Constructor and Description |
---|
YahooExecutionFactory() |
Modifier and Type | Method and Description |
---|---|
ResultSetExecution |
createResultSetExecution(QueryExpression command,
ExecutionContext executionContext,
RuntimeMetadata metadata,
Object connectionFactory) |
void |
getMetadata(MetadataFactory metadataFactory,
Object connection)
Implement to provide metadata to the metadata for use by the engine.
|
List |
getSupportedFunctions()
Get list of all supported function names.
|
boolean |
isSourceRequired()
Flag that indicates if a underlying source connection required for this execution factory to work
|
void |
start()
Initialize the connector with supplied configuration
|
boolean |
supportsCompareCriteriaEquals()
Support indicates connector accepts criteria of form (element = constant)
|
boolean |
supportsInCriteria()
Support indicates connector accepts criteria of form (element IN set)
|
boolean |
supportsOnlyLiteralComparison() |
addPushDownFunction, areLobsUsableAfterClose, closeConnection, createExecution, createProcedureExecution, createUpdateExecution, getConnection, getConnection, getDefaultNullOrder, getInstance, getLanguageFactory, getMaxDependentInPredicates, getMaxFromGroups, getMaxInCriteriaSize, getPushDownFunctions, getSupportedJoinCriteria, getTypeFacility, isCopyLobs, isImmutable, requiresCriteria, setCopyLobs, setImmutable, setMaxDependentInPredicates, setMaxInCriteriaSize, setRequiresCriteria, setSourceRequired, setSupportedJoinCriteria, setSupportsFullOuterJoins, setSupportsInnerJoins, setSupportsOrderBy, setSupportsOuterJoins, setSupportsSelectDistinct, supportsAdvancedOlapOperations, supportsAggregatesAvg, supportsAggregatesCount, supportsAggregatesCountStar, supportsAggregatesDistinct, supportsAggregatesEnhancedNumeric, supportsAggregatesMax, supportsAggregatesMin, supportsAggregatesSum, supportsAliasedTable, supportsArrayAgg, supportsBatchedUpdates, supportsBulkUpdate, supportsCommonTableExpressions, supportsCompareCriteriaOrdered, supportsConvert, supportsCorrelatedSubqueries, supportsDependentJoins, supportsElementaryOlapOperations, supportsExcept, supportsExistsCriteria, supportsFormatLiteral, supportsFullOuterJoins, supportsFunctionsInGroupBy, supportsGroupBy, supportsHaving, supportsInCriteriaSubquery, supportsInlineViews, supportsInnerJoins, supportsInsertWithQueryExpression, supportsIntersect, supportsIsNullCriteria, supportsLikeCriteria, supportsLikeCriteriaEscapeCharacter, supportsLikeRegex, supportsNotCriteria, supportsOnlyFormatLiterals, supportsOnlySingleTableGroupBy, supportsOrCriteria, supportsOrderBy, supportsOrderByNullOrdering, supportsOrderByUnrelated, supportsOuterJoins, supportsQuantifiedCompareCriteriaAll, supportsQuantifiedCompareCriteriaSome, supportsRowLimit, supportsRowOffset, supportsScalarSubqueries, supportsSearchedCaseExpressions, supportsSelectDistinct, supportsSelectExpression, supportsSelfJoins, supportsSetQueryOrderBy, supportsSimilarTo, supportsUnions, supportsWindowDistinctAggregates, supportsWindowOrderByWithAggregates, useAnsiJoin
public static final int YAHOO_MAX_SET_SIZE
public void start() throws TranslatorException
ExecutionFactory
start
in class ExecutionFactory<Object,Object>
TranslatorException
public ResultSetExecution createResultSetExecution(QueryExpression command, ExecutionContext executionContext, RuntimeMetadata metadata, Object connectionFactory) throws TranslatorException
createResultSetExecution
in class ExecutionFactory<Object,Object>
TranslatorException
public List getSupportedFunctions()
ExecutionFactory
getSupportedFunctions
in class ExecutionFactory<Object,Object>
for 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 supportsCompareCriteriaEquals()
ExecutionFactory
supportsCompareCriteriaEquals
in class ExecutionFactory<Object,Object>
public boolean supportsInCriteria()
ExecutionFactory
supportsInCriteria
in class ExecutionFactory<Object,Object>
public boolean isSourceRequired()
ExecutionFactory
isSourceRequired
in class ExecutionFactory<Object,Object>
public void getMetadata(MetadataFactory metadataFactory, Object connection) throws TranslatorException
ExecutionFactory
getMetadata
in class ExecutionFactory<Object,Object>
TranslatorException
public boolean supportsOnlyLiteralComparison()
supportsOnlyLiteralComparison
in class ExecutionFactory<Object,Object>
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.