|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.translator.ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
org.teiid.translator.jdbc.JDBCExecutionFactory
@Translator(name="jdbc-ansi") public class JDBCExecutionFactory
JDBC implementation of Connector interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.teiid.translator.ExecutionFactory |
---|
ExecutionFactory.NullOrder, ExecutionFactory.SupportedJoinCriteria |
Field Summary | |
---|---|
static int |
DEFAULT_MAX_IN_CRITERIA
|
static java.util.TimeZone |
DEFAULT_TIME_ZONE
|
Fields inherited from class org.teiid.translator.ExecutionFactory |
---|
DEFAULT_MAX_FROM_GROUPS, DEFAULT_MAX_IN_CRITERIA_SIZE |
Constructor Summary | |
---|---|
JDBCExecutionFactory()
|
Method Summary | |
---|---|
boolean |
addSourceComment()
Returns true to indicate that SQL should include a comment indicating the session and request ids. |
protected void |
afterInitialConnectionObtained(java.sql.Connection connection)
Called exactly once for this source. |
void |
bindValue(java.sql.PreparedStatement stmt,
java.lang.Object param,
java.lang.Class<?> paramType,
int i)
Sets prepared statement parameter i with param. |
void |
closeConnection(java.sql.Connection connection,
javax.sql.DataSource factory)
Closes a connection object from the given connection factory. |
ProcedureExecution |
createProcedureExecution(Call command,
ExecutionContext executionContext,
RuntimeMetadata metadata,
java.sql.Connection conn)
|
ResultSetExecution |
createResultSetExecution(QueryExpression command,
ExecutionContext executionContext,
RuntimeMetadata metadata,
java.sql.Connection conn)
|
UpdateExecution |
createUpdateExecution(Command command,
ExecutionContext executionContext,
RuntimeMetadata metadata,
java.sql.Connection conn)
|
java.sql.ResultSet |
executeStoredProcedure(java.sql.CallableStatement statement,
TranslatedCommand command,
java.lang.Class<?> returnType)
This is a generic implementation. |
java.lang.String |
formatDateValue(java.util.Date dateObject)
Format the dateObject (of type date, time, or timestamp) into a string using the DatabaseTimeZone format. |
java.sql.Connection |
getConnection(javax.sql.DataSource ds)
Return a connection object from the given connection factory. |
java.util.Calendar |
getDatabaseCalendar()
Gets the database calendar. |
java.lang.String |
getDatabaseTimeZone()
|
java.lang.String |
getDatabaseVersion()
|
ExecutionFactory.NullOrder |
getDefaultNullOrder()
Returns the default null ordering |
java.util.List<java.lang.String> |
getDefaultSupportedFunctions()
|
java.util.Map<java.lang.String,FunctionModifier> |
getFunctionModifiers()
Return a map of function name in lower case to FunctionModifier. |
int |
getMaxInCriteriaSize()
Get the integer value representing the number of values allowed in an IN criteria in the WHERE clause of a query |
int |
getMaxPreparedInsertBatchSize()
Get the max number of inserts to perform in one batch. |
void |
getMetadata(MetadataFactory metadataFactory,
java.sql.Connection conn)
Implement to provide metadata to the metadata for use by the engine. |
java.lang.String |
getSetOperationString(SetQuery.Operation operation)
Returns the name for a given SetQuery.Operation |
java.lang.String |
getSourceComment(ExecutionContext context,
Command command)
Returns the source comment for the given command |
SQLConversionVisitor |
getSQLConversionVisitor()
Create the SQLConversionVisitor that will perform translation. |
java.util.List<java.lang.String> |
getSupportedFunctions()
Get list of all supported function names. |
int |
getTimestampNanoPrecision()
Return the precision of timestamp literals. |
boolean |
hasTimeType()
Return false to indicate that time support should be emulated with timestamps. |
boolean |
isSourceRequired()
Flag that indicates if a underlying source connection required for this execution factory to work |
boolean |
isTrimStrings()
|
void |
obtainedConnection(java.sql.Connection connection)
Provides a hook to call source specific logic when a connection is obtained. |
void |
registerFunctionModifier(java.lang.String name,
FunctionModifier modifier)
Add the FunctionModifier to the set of known modifiers. |
protected void |
registerSpecificTypeOfOutParameter(java.sql.CallableStatement statement,
java.lang.Class<?> runtimeType,
int index)
For registering specific output parameter types we need to translate these into the appropriate java.sql.Types output parameters We will need to match these up with the appropriate standard sql types |
java.lang.String |
replaceElementName(java.lang.String group,
java.lang.String element)
Override to return a name other than the default [group.]element |
java.lang.Object |
retrieveValue(java.sql.CallableStatement results,
int parameterIndex,
java.lang.Class<?> expectedType)
Retrieve the value for the given parameter index |
java.lang.Object |
retrieveValue(java.sql.ResultSet results,
int columnIndex,
java.lang.Class<?> expectedType)
Retrieve the value on the current resultset row for the given column index. |
void |
setDatabaseTimeZone(java.lang.String databaseTimeZone)
|
void |
setDatabaseVersion(java.lang.String version)
|
void |
setMaxPreparedInsertBatchSize(int maxInsertBatchSize)
|
void |
setTrimStrings(boolean trimStrings)
|
void |
setUseBindVariables(boolean useBindVariables)
|
void |
setUseCommentsInSourceQuery(boolean useCommentsInSourceQuery)
|
void |
start()
Initialize the connector with supplied configuration |
boolean |
supportsAggregatesAvg()
Support indicates connector can accept the AVG aggregate function |
boolean |
supportsAggregatesCount()
Support indicates connector can accept the COUNT aggregate function |
boolean |
supportsAggregatesCountStar()
Support indicates connector can accept the COUNT(*) aggregate function |
boolean |
supportsAggregatesDistinct()
Support indicates connector can accept DISTINCT within aggregate functions |
boolean |
supportsAggregatesMax()
Support indicates connector can accept the MAX aggregate function |
boolean |
supportsAggregatesMin()
Support indicates connector can accept the MIN aggregate function |
boolean |
supportsAggregatesSum()
Support indicates connector can accept the SUM aggregate function |
boolean |
supportsAliasedTable()
Support indicates connector can accept groups with aliases |
boolean |
supportsBatchedUpdates()
Whether the source supports BatchedUpdates |
boolean |
supportsBetweenCriteria()
Support indicates connector accepts criteria of form (element BETWEEN constant AND constant) NOT CURRENTLY USED - between is rewritten as compound compare criteria |
boolean |
supportsBulkUpdate()
Whether the source supports updates with multiple value sets |
boolean |
supportsCaseExpressions()
Support indicates connector can accept queries with non-searched CASE |
boolean |
supportsCompareCriteriaEquals()
Support indicates connector accepts criteria of form (element = constant) |
boolean |
supportsCompareCriteriaOrdered()
Support indicates connector accepts criteria of form (element <=|>= constant) The query engine will may pushdown queries containing < or > if NOT is also supported. |
boolean |
supportsCorrelatedSubqueries()
Support indicates connector can accept correlated subqueries wherever subqueries are accepted |
boolean |
supportsExistsCriteria()
Support indicates connector accepts the EXISTS criteria |
boolean |
supportsGroupBy()
Whether the source supports an explicit GROUP BY clause |
boolean |
supportsHaving()
Whether the source supports the HAVING clause |
boolean |
supportsInCriteria()
Support indicates connector accepts criteria of form (element IN set) |
boolean |
supportsInCriteriaSubquery()
Support indicates connector accepts IN criteria with a subquery on the right side |
boolean |
supportsInlineViews()
Support indicates connector can accept inline views (subqueries in the FROM clause). |
boolean |
supportsInsertWithIterator()
Support indicates that the connector can accept INSERTs with values specified by an Iterator |
boolean |
supportsInsertWithQueryExpression()
Support indicates that the connector can accept INSERTs with values specified by a SetQuery or Select |
boolean |
supportsIsNullCriteria()
Support indicates connector accepts criteria of form (element IS NULL) |
boolean |
supportsLikeCriteria()
Support indicates connector accepts criteria of form (element LIKE constant) |
boolean |
supportsLikeCriteriaEscapeCharacter()
Support indicates connector accepts criteria of form (element LIKE constant ESCAPE char) |
boolean |
supportsNotCriteria()
Support indicates connector accepts logical criteria NOT |
boolean |
supportsOrCriteria()
Support indicates connector accepts logical criteria connected by OR |
boolean |
supportsOrderByUnrelated()
Support indicates connector accepts ORDER BY clause with columns not from the select |
boolean |
supportsQuantifiedCompareCriteriaAll()
Support indicates connector accepts the quantified comparison criteria that use ALL |
boolean |
supportsQuantifiedCompareCriteriaSome()
Support indicates connector accepts the quantified comparison criteria that use SOME |
boolean |
supportsScalarSubqueries()
Support indicates connector can accept scalar subqueries in the SELECT, WHERE, and HAVING clauses |
boolean |
supportsSearchedCaseExpressions()
Support indicates connector can accept queries with searched CASE WHEN |
boolean |
supportsSelectExpression()
Support indicates connector can accept expressions other than element symbols in the SELECT clause. |
boolean |
supportsSelfJoins()
Support indicates connector can accept self-joins where a group is joined to itself with aliases. |
boolean |
supportsSetQueryOrderBy()
Support indicates that the connector supports an ORDER BY on a SetQuery. |
boolean |
supportsUnions()
Support indicates that the connector supports the UNION of two queries. |
java.util.List<?> |
translate(LanguageObject obj,
ExecutionContext context)
Return a List of translated parts ( LanguageObject s and Objects), or null
if to rely on the default translation. |
java.util.List<?> |
translateCommand(Command command,
ExecutionContext context)
Return a List of translated parts ( LanguageObject s and Objects), or null
if to rely on the default translation. |
java.util.List<?> |
translateLimit(Limit limit,
ExecutionContext context)
Return a List of translated parts ( LanguageObject s and Objects), or null
if to rely on the default translation. |
java.lang.String |
translateLiteralBoolean(java.lang.Boolean booleanValue)
Subclasses should override this method to provide a different sql translation of the literal boolean value. |
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. |
boolean |
useAsInGroupAlias()
Indicates whether group alias should be of the form "...FROM groupA AS X" or "...FROM groupA X". |
boolean |
useBindVariables()
|
boolean |
useCommentsInSourceQuery()
|
boolean |
useParensForJoins()
Set to true to indicate that every branch of a join should have parenthesis. |
boolean |
useParensForSetQueries()
Set to true to indicate that every branch of a set query should have parenthesis, i.e. |
boolean |
usePreparedStatements()
Use PreparedStatements (or CallableStatements) as appropriate for all commands. |
boolean |
useSelectLimit()
Returns whether the limit clause is applied to the select clause. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MAX_IN_CRITERIA
public static final java.util.TimeZone DEFAULT_TIME_ZONE
Constructor Detail |
---|
public JDBCExecutionFactory()
Method Detail |
---|
public void start() throws TranslatorException
ExecutionFactory
start
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
TranslatorException
@TranslatorProperty(display="Database Version", description="Database Version") public java.lang.String getDatabaseVersion()
public void setDatabaseVersion(java.lang.String version)
@TranslatorProperty(display="Use Bind Variables", description="Use prepared statements and bind variables", advanced=true) public boolean useBindVariables()
public void setUseBindVariables(boolean useBindVariables)
@TranslatorProperty(display="Database time zone", description="Time zone of the database, if different than Integration Server", advanced=true) public java.lang.String getDatabaseTimeZone()
public void setDatabaseTimeZone(java.lang.String databaseTimeZone)
@TranslatorProperty(display="Trim string flag", description="Right Trim fixed character types returned as Strings - note that the native type must be char or nchar and the source must support the rtrim function.", advanced=true) public boolean isTrimStrings()
public void setTrimStrings(boolean trimStrings)
@TranslatorProperty(display="Use informational comments in Source Queries", description="This will embed a /*comment*/ leading comment with session/request id in source SQL query for informational purposes", advanced=true) public boolean useCommentsInSourceQuery()
public void setUseCommentsInSourceQuery(boolean useCommentsInSourceQuery)
public boolean isSourceRequired()
ExecutionFactory
isSourceRequired
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public ResultSetExecution createResultSetExecution(QueryExpression command, ExecutionContext executionContext, RuntimeMetadata metadata, java.sql.Connection conn) throws TranslatorException
createResultSetExecution
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
TranslatorException
public ProcedureExecution createProcedureExecution(Call command, ExecutionContext executionContext, RuntimeMetadata metadata, java.sql.Connection conn) throws TranslatorException
createProcedureExecution
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
TranslatorException
public UpdateExecution createUpdateExecution(Command command, ExecutionContext executionContext, RuntimeMetadata metadata, java.sql.Connection conn) throws TranslatorException
createUpdateExecution
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
TranslatorException
public java.sql.Connection getConnection(javax.sql.DataSource ds) throws TranslatorException
ExecutionFactory
ConnectionFactory
. Subclasses should override, if they use
another type of connection factory.
getConnection
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
TranslatorException
public void closeConnection(java.sql.Connection connection, javax.sql.DataSource factory)
ExecutionFactory
Connection
. Subclasses should override, if they use
another type of connection.
closeConnection
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public void getMetadata(MetadataFactory metadataFactory, java.sql.Connection conn) throws TranslatorException
ExecutionFactory
getMetadata
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
TranslatorException
public java.util.List<java.lang.String> getSupportedFunctions()
ExecutionFactory
getSupportedFunctions
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public java.util.List<java.lang.String> getDefaultSupportedFunctions()
public int getMaxInCriteriaSize()
ExecutionFactory
getMaxInCriteriaSize
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsGroupBy()
ExecutionFactory
supportsGroupBy
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsAggregatesAvg()
ExecutionFactory
supportsAggregatesAvg
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsAggregatesCount()
ExecutionFactory
supportsAggregatesCount
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsAggregatesCountStar()
ExecutionFactory
supportsAggregatesCountStar
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsAggregatesDistinct()
ExecutionFactory
supportsAggregatesDistinct
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsAggregatesMax()
ExecutionFactory
supportsAggregatesMax
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsAggregatesMin()
ExecutionFactory
supportsAggregatesMin
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsAggregatesSum()
ExecutionFactory
supportsAggregatesSum
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsAliasedTable()
ExecutionFactory
supportsAliasedTable
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsBetweenCriteria()
ExecutionFactory
supportsBetweenCriteria
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsCaseExpressions()
ExecutionFactory
supportsCaseExpressions
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsCompareCriteriaEquals()
ExecutionFactory
supportsCompareCriteriaEquals
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsCorrelatedSubqueries()
ExecutionFactory
supportsCorrelatedSubqueries
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsExistsCriteria()
ExecutionFactory
supportsExistsCriteria
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsInCriteria()
ExecutionFactory
supportsInCriteria
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsInCriteriaSubquery()
ExecutionFactory
supportsInCriteriaSubquery
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsIsNullCriteria()
ExecutionFactory
supportsIsNullCriteria
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsLikeCriteria()
ExecutionFactory
supportsLikeCriteria
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsLikeCriteriaEscapeCharacter()
ExecutionFactory
supportsLikeCriteriaEscapeCharacter
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsNotCriteria()
ExecutionFactory
supportsNotCriteria
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsOrCriteria()
ExecutionFactory
supportsOrCriteria
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsOrderByUnrelated()
ExecutionFactory
supportsOrderByUnrelated
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsQuantifiedCompareCriteriaAll()
ExecutionFactory
supportsQuantifiedCompareCriteriaAll
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsScalarSubqueries()
ExecutionFactory
supportsScalarSubqueries
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsSearchedCaseExpressions()
ExecutionFactory
supportsSearchedCaseExpressions
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsSelfJoins()
ExecutionFactory
ExecutionFactory.supportsAliasedTable()
.
supportsSelfJoins
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsInlineViews()
ExecutionFactory
supportsInlineViews
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsQuantifiedCompareCriteriaSome()
ExecutionFactory
supportsQuantifiedCompareCriteriaSome
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsSetQueryOrderBy()
ExecutionFactory
supportsSetQueryOrderBy
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsUnions()
ExecutionFactory
supportsUnions
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsBulkUpdate()
ExecutionFactory
supportsBulkUpdate
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsInsertWithIterator()
ExecutionFactory
Iterator
supportsInsertWithIterator
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsBatchedUpdates()
ExecutionFactory
BatchedUpdates
supportsBatchedUpdates
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsCompareCriteriaOrdered()
ExecutionFactory
supportsCompareCriteriaOrdered
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsHaving()
ExecutionFactory
supportsHaving
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsSelectExpression()
ExecutionFactory
supportsSelectExpression
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
public boolean supportsInsertWithQueryExpression()
ExecutionFactory
SetQuery
or Select
supportsInsertWithQueryExpression
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
@TranslatorProperty(display="Max Prepared Insert Batch Size", description="The max size of a prepared insert batch. Default 2048.", advanced=true) public int getMaxPreparedInsertBatchSize()
public void setMaxPreparedInsertBatchSize(int maxInsertBatchSize)
public java.util.Calendar getDatabaseCalendar()
JDBCPropertyNames#DATABASE_TIME_ZONE
, or
the local time zone if none is specified.
public java.util.List<?> translate(LanguageObject obj, ExecutionContext context)
LanguageObject
s and Objects), or null
if to rely on the default translation. Override with care.
command
- context
-
public java.util.List<?> translateCommand(Command command, ExecutionContext context)
LanguageObject
s and Objects), or null
if to rely on the default translation.
command
- context
-
public java.util.List<?> translateLimit(Limit limit, ExecutionContext context)
LanguageObject
s and Objects), or null
if to rely on the default translation.
limit
- context
-
public java.util.Map<java.lang.String,FunctionModifier> getFunctionModifiers()
public void registerFunctionModifier(java.lang.String name, FunctionModifier modifier)
FunctionModifier
to the set of known modifiers.
name
- modifier
- public java.lang.String translateLiteralBoolean(java.lang.Boolean booleanValue)
'0'
or '1'
.
booleanValue
- Boolean value, never null
public java.lang.String translateLiteralDate(java.sql.Date dateValue)
{d '2002-12-31'}
dateValue
- Date value, never null
public java.lang.String translateLiteralTime(java.sql.Time timeValue)
{t '23:59:59'}
See hasTimeType()
to represent literal times as timestamps.
timeValue
- Time value, never null
public java.lang.String translateLiteralTimestamp(java.sql.Timestamp timestampValue)
{ts '2002-12-31 23:59:59'}
.
See getTimestampNanoPrecision()
to control the literal
precision.
timestampValue
- Timestamp value, never null
public java.lang.String formatDateValue(java.util.Date dateObject)
dateObject
-
public boolean addSourceComment()
public boolean useAsInGroupAlias()
public boolean usePreparedStatements()
BindValueVisitor
. Literal.setBindValue(boolean)
can be used to force a literal to be a bind value.
public boolean useParensForSetQueries()
public boolean hasTimeType()
public java.lang.String getSetOperationString(SetQuery.Operation operation)
SetQuery.Operation
operation
-
public java.lang.String getSourceComment(ExecutionContext context, Command command)
context
- command
-
public java.lang.String replaceElementName(java.lang.String group, java.lang.String element)
group
- element
-
public int getTimestampNanoPrecision()
public java.sql.ResultSet executeStoredProcedure(java.sql.CallableStatement statement, TranslatedCommand command, java.lang.Class<?> returnType) throws java.sql.SQLException
java.sql.SQLException
protected void registerSpecificTypeOfOutParameter(java.sql.CallableStatement statement, java.lang.Class<?> runtimeType, int index) throws java.sql.SQLException
cstmt
- parameter
-
java.sql.SQLException
public void bindValue(java.sql.PreparedStatement stmt, java.lang.Object param, java.lang.Class<?> paramType, int i) throws java.sql.SQLException
stmt
- param
- paramType
- i
- cal
-
java.sql.SQLException
public java.lang.Object retrieveValue(java.sql.ResultSet results, int columnIndex, java.lang.Class<?> expectedType) throws java.sql.SQLException
results
- columnIndex
- expectedType
-
java.sql.SQLException
public java.lang.Object retrieveValue(java.sql.CallableStatement results, int parameterIndex, java.lang.Class<?> expectedType) throws java.sql.SQLException
results
- parameterIndex
- expectedType
-
java.sql.SQLException
protected void afterInitialConnectionObtained(java.sql.Connection connection)
connection
- public void obtainedConnection(java.sql.Connection connection)
public SQLConversionVisitor getSQLConversionVisitor()
SQLConversionVisitor
that will perform translation. Typical custom
JDBC connectors will not need to create custom conversion visitors, rather implementors
should override existing JDBCExecutionFactory
methods.
SQLConversionVisitor
public boolean useParensForJoins()
public ExecutionFactory.NullOrder getDefaultNullOrder()
ExecutionFactory
getDefaultNullOrder
in class ExecutionFactory<javax.sql.DataSource,java.sql.Connection>
ExecutionFactory.NullOrder
public boolean useSelectLimit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |