org.teiid.translator.file
Class FileExecutionFactory

java.lang.Object
  extended by org.teiid.translator.ExecutionFactory<javax.resource.cci.ConnectionFactory,FileConnection>
      extended by org.teiid.translator.file.FileExecutionFactory

@Translator(name="file",
            description="File Translator, reads contents of files or writes to them")
public class FileExecutionFactory
extends ExecutionFactory<javax.resource.cci.ConnectionFactory,FileConnection>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.teiid.translator.ExecutionFactory
ExecutionFactory.NullOrder, ExecutionFactory.SupportedJoinCriteria
 
Field Summary
static String GETFILES
           
static String GETTEXTFILES
           
static String SAVEFILE
           
static BundleUtil UTIL
           
 
Fields inherited from class org.teiid.translator.ExecutionFactory
DEFAULT_MAX_FROM_GROUPS, DEFAULT_MAX_IN_CRITERIA_SIZE
 
Constructor Summary
FileExecutionFactory()
           
 
Method Summary
 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)
           
 
Methods inherited from class org.teiid.translator.ExecutionFactory
addPushDownFunction, closeConnection, createExecution, createResultSetExecution, createUpdateExecution, getConnection, getConnection, getDefaultNullOrder, getInstance, getLanguageFactory, getMaxDependentInPredicates, getMaxFromGroups, getMaxInCriteriaSize, getPushDownFunctions, getSupportedFunctions, getSupportedJoinCriteria, getTypeFacility, isImmutable, isSourceRequired, requiresCriteria, setImmutable, setMaxDependentInPredicates, setMaxInCriteriaSize, setRequiresCriteria, setSourceRequired, setSupportedJoinCriteria, setSupportsFullOuterJoins, setSupportsInnerJoins, setSupportsOrderBy, setSupportsOuterJoins, setSupportsSelectDistinct, start, supportsAdvancedOlapOperations, supportsAggregatesAvg, supportsAggregatesCount, supportsAggregatesCountStar, supportsAggregatesDistinct, supportsAggregatesEnhancedNumeric, supportsAggregatesMax, supportsAggregatesMin, supportsAggregatesSum, supportsAliasedTable, supportsArrayAgg, supportsBatchedUpdates, supportsBetweenCriteria, supportsBulkUpdate, supportsCaseExpressions, supportsCommonTableExpressions, supportsCompareCriteriaEquals, supportsCompareCriteriaOrdered, supportsCorrelatedSubqueries, supportsElementaryOlapOperations, supportsExcept, supportsExistsCriteria, supportsFullOuterJoins, supportsFunctionsInGroupBy, supportsGroupBy, supportsHaving, supportsInCriteria, supportsInCriteriaSubquery, supportsInlineViews, supportsInnerJoins, supportsInsertWithIterator, supportsInsertWithQueryExpression, supportsIntersect, supportsIsNullCriteria, supportsLikeCriteria, supportsLikeCriteriaEscapeCharacter, supportsLikeRegex, supportsNotCriteria, supportsOrCriteria, supportsOrderBy, supportsOrderByNullOrdering, supportsOrderByUnrelated, supportsOuterJoins, supportsQuantifiedCompareCriteriaAll, supportsQuantifiedCompareCriteriaSome, supportsRowLimit, supportsRowOffset, supportsScalarSubqueries, supportsSearchedCaseExpressions, supportsSelectDistinct, supportsSelectExpression, supportsSelfJoins, supportsSetQueryOrderBy, supportsSimilarTo, supportsUnions, supportsWindowDistinctAggregates, supportsWindowOrderByWithAggregates, useAnsiJoin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTIL

public static BundleUtil UTIL

GETTEXTFILES

public static final String GETTEXTFILES
See Also:
Constant Field Values

GETFILES

public static final String GETFILES
See Also:
Constant Field Values

SAVEFILE

public static final String SAVEFILE
See Also:
Constant Field Values
Constructor Detail

FileExecutionFactory

public FileExecutionFactory()
Method Detail

getEncoding

@TranslatorProperty(display="File Encoding",
                    advanced=true)
public String getEncoding()

setEncoding

public void setEncoding(String encoding)

isExceptionIfFileNotFound

@TranslatorProperty(display="Exception if file not found",
                    advanced=true)
public boolean isExceptionIfFileNotFound()

setExceptionIfFileNotFound

public void setExceptionIfFileNotFound(boolean exceptionIfFileNotFound)

createProcedureExecution

public ProcedureExecution createProcedureExecution(Call command,
                                                   ExecutionContext executionContext,
                                                   RuntimeMetadata metadata,
                                                   FileConnection fc)
                                            throws TranslatorException
Overrides:
createProcedureExecution in class ExecutionFactory<javax.resource.cci.ConnectionFactory,FileConnection>
Throws:
TranslatorException

getMetadata

public void getMetadata(MetadataFactory metadataFactory,
                        FileConnection connection)
                 throws TranslatorException
Description copied from class: ExecutionFactory
Implement to provide metadata to the metadata for use by the engine. This is the primary method of creating metadata for dynamic VDBs.

Overrides:
getMetadata in class ExecutionFactory<javax.resource.cci.ConnectionFactory,FileConnection>
Throws:
TranslatorException

areLobsUsableAfterClose

public boolean areLobsUsableAfterClose()
Description copied from class: ExecutionFactory
Indicates if LOBs are usable after the execution is closed.

Overrides:
areLobsUsableAfterClose in class ExecutionFactory<javax.resource.cci.ConnectionFactory,FileConnection>
Returns:
true if LOBs can be used after close


Copyright © 2011. All Rights Reserved.