public class DefaultSQLExecutionContext extends Object implements SQLExecutionContext
SQLExecutionContext.| Constructor and Description |
|---|
DefaultSQLExecutionContext(SQLContext sqlContext,
Connection connection)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Connection> |
getConnection()
Get the
Connection used by current operation execution, if available. |
SQLDialect |
getDialect()
Get the
SQLDialect to use. |
Iterable<com.holonplatform.core.ExpressionResolver> |
getExpressionResolvers() |
void |
trace(String sql)
Trace given SQL statement.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, creategetTypeConverter, getValueDeserializer, getValueSerializerpublic DefaultSQLExecutionContext(SQLContext sqlContext, Connection connection)
sqlContext - SQL context (not null)connection - Optional connectionpublic SQLDialect getDialect()
SQLContextSQLDialect to use.getDialect in interface SQLContextpublic void trace(String sql)
SQLContext
If tracing is enabled, the SQL statement is logged using the INFO level, otherwise it is logged
using the DEBUG level.
trace in interface SQLContextsql - SQL to tracepublic Iterable<com.holonplatform.core.ExpressionResolver> getExpressionResolvers()
getExpressionResolvers in interface com.holonplatform.core.ExpressionResolver.ExpressionResolverProviderpublic Optional<Connection> getConnection()
SQLExecutionContextConnection used by current operation execution, if available.getConnection in interface SQLExecutionContextCopyright © 2019 The Holon Platform. All rights reserved.