@Translator(name="file", description="File Translator, reads contents of files or writes to them") public class FileExecutionFactory extends ExecutionFactory<javax.resource.cci.ConnectionFactory,FileConnection>
ExecutionFactory.Format, ExecutionFactory.NullOrder, ExecutionFactory.SupportedJoinCriteria| Modifier and Type | Field and Description |
|---|---|
static String |
GETFILES |
static String |
GETTEXTFILES |
static String |
SAVEFILE |
static org.teiid.core.BundleUtil |
UTIL |
DEFAULT_MAX_FROM_GROUPS, DEFAULT_MAX_IN_CRITERIA_SIZE| Constructor and Description |
|---|
FileExecutionFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areLobsUsableAfterClose()
Indicates if LOBs are usable after the execution is closed.
|
ProcedureExecution |
createProcedureExecution(Call command,
ExecutionContext executionContext,
RuntimeMetadata metadata,
FileConnection fc) |
String |
getEncoding() |
void |
getMetadata(MetadataFactory metadataFactory,
FileConnection connection)
Implement to provide metadata to the metadata for use by the engine.
|
boolean |
isExceptionIfFileNotFound() |
void |
setEncoding(String encoding) |
void |
setExceptionIfFileNotFound(boolean exceptionIfFileNotFound) |
addPushDownFunction, closeConnection, createDirectExecution, createExecution, createResultSetExecution, createUpdateExecution, getCacheDirective, getConnection, getConnection, getDefaultNullOrder, getDirectQueryProcedureName, getInstance, getLanguageFactory, getMaxDependentInPredicates, getMaxFromGroups, getMaxInCriteriaSize, getNativeQueryProcedureName, getPushDownFunctions, getSupportedFunctions, getSupportedJoinCriteria, getTypeFacility, initCapabilities, isCopyLobs, isForkable, isImmutable, isSourceRequired, isSourceRequiredForCapabilities, isSourceRequiredForMetadata, isThreadBound, requiresCriteria, setCopyLobs, setDirectQueryProcedureName, setImmutable, setMaxDependentInPredicates, setMaxInCriteriaSize, setNativeQueryProcedureName, setRequiresCriteria, setSourceRequired, setSourceRequiredForMetadata, setSupportedJoinCriteria, setSupportsDirectQueryProcedure, setSupportsFullOuterJoins, setSupportsInnerJoins, setSupportsNativeQueries, setSupportsOrderBy, setSupportsOuterJoins, setSupportsSelectDistinct, setThreadBound, start, supportsAdvancedOlapOperations, supportsAggregatesAvg, supportsAggregatesCount, supportsAggregatesCountStar, supportsAggregatesDistinct, supportsAggregatesEnhancedNumeric, supportsAggregatesMax, supportsAggregatesMin, supportsAggregatesSum, supportsAliasedTable, supportsArrayAgg, supportsArrayType, supportsBatchedUpdates, supportsBulkUpdate, supportsCommonTableExpressions, supportsCompareCriteriaEquals, supportsCompareCriteriaOrdered, supportsConvert, supportsCorrelatedSubqueries, supportsDependentJoins, supportsDirectQueryProcedure, supportsElementaryOlapOperations, supportsExcept, supportsExistsCriteria, supportsFormatLiteral, supportsFullDependentJoins, supportsFullOuterJoins, supportsFunctionsInGroupBy, supportsGroupBy, supportsGroupByRollup, supportsHaving, supportsInCriteria, supportsInCriteriaSubquery, supportsInlineViews, supportsInnerJoins, supportsInsertWithQueryExpression, supportsIntersect, supportsIsNullCriteria, supportsLikeCriteria, supportsLikeCriteriaEscapeCharacter, supportsLikeRegex, supportsNativeQueries, supportsNotCriteria, supportsOnlyCorrelatedSubqueries, supportsOnlyFormatLiterals, supportsOnlyLiteralComparison, supportsOnlySingleTableGroupBy, supportsOrCriteria, supportsOrderBy, supportsOrderByNullOrdering, supportsOrderByUnrelated, supportsOrderByWithExtendedGrouping, supportsOuterJoins, supportsQuantifiedCompareCriteriaAll, supportsQuantifiedCompareCriteriaSome, supportsRowLimit, supportsRowOffset, supportsScalarSubqueries, supportsSearchedCaseExpressions, supportsSelectDistinct, supportsSelectExpression, supportsSelectWithoutFrom, supportsSelfJoins, supportsSetQueryOrderBy, supportsSimilarTo, supportsStringAgg, supportsSubqueryInOn, supportsUnions, supportsWindowDistinctAggregates, supportsWindowOrderByWithAggregates, useAnsiJoinpublic static org.teiid.core.BundleUtil UTIL
public static final String GETTEXTFILES
public static final String GETFILES
public static final String SAVEFILE
@TranslatorProperty(display="File Encoding", advanced=true) public String getEncoding()
public void setEncoding(String encoding)
@TranslatorProperty(display="Exception if file not found", advanced=true) public boolean isExceptionIfFileNotFound()
public void setExceptionIfFileNotFound(boolean exceptionIfFileNotFound)
public ProcedureExecution createProcedureExecution(Call command, ExecutionContext executionContext, RuntimeMetadata metadata, FileConnection fc) throws TranslatorException
createProcedureExecution in class ExecutionFactory<javax.resource.cci.ConnectionFactory,FileConnection>TranslatorExceptionpublic void getMetadata(MetadataFactory metadataFactory, FileConnection connection) throws TranslatorException
ExecutionFactorygetMetadata in class ExecutionFactory<javax.resource.cci.ConnectionFactory,FileConnection>connection - may be null if the source is not requiredTranslatorException - to indicate a recoverable error, otherwise a RuntimeExceptionExecutionFactory.isSourceRequiredForMetadata()public boolean areLobsUsableAfterClose()
ExecutionFactoryareLobsUsableAfterClose in class ExecutionFactory<javax.resource.cci.ConnectionFactory,FileConnection>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.