public interface StatementContext
Modifier and Type | Method and Description |
---|---|
void |
addCleanable(Cleanable cleanable) |
ResultColumnMapper |
columnMapperFor(Class type)
Obtain a column mapper for the given type in this context.
|
Object |
getAttribute(String key)
Obtain the value of an attribute
|
Map<String,Object> |
getAttributes()
Obtain all the attributes associated with this context as a map.
|
Binding |
getBinding() |
Connection |
getConnection()
Obtain the JDBC connection being used for this statement
|
Foreman |
getForeman()
Obtain the Foreman that can be used to create dynamically determined Argument
instances given the registered ArgumentFactory instances.
|
String[] |
getGeneratedKeysColumnNames() |
String |
getLocatedSql()
Obtain the located sql
Not available until until statement execution time
|
String |
getRawSql()
Obtain the initial sql for the statement used to create the statement
|
String |
getRewrittenSql()
Obtain the located and rewritten sql
Not available until until statement execution time
|
Method |
getSqlObjectMethod() |
Class<?> |
getSqlObjectType() |
PreparedStatement |
getStatement()
Obtain the actual prepared statement being used.
|
boolean |
isConcurrentUpdatable()
Return if the statement should be concurrent updatable.
|
boolean |
isReturningGeneratedKeys()
Is the statement being generated expected to return the generated keys?
|
Object |
setAttribute(String key,
Object value)
Specify an attribute on the statement context
|
void addCleanable(Cleanable cleanable)
ResultColumnMapper columnMapperFor(Class type)
type
- the target type to map toObject getAttribute(String key)
key
- The name of the attributeMap<String,Object> getAttributes()
Binding getBinding()
Connection getConnection()
Foreman getForeman()
String[] getGeneratedKeysColumnNames()
String getLocatedSql()
String getRawSql()
String getRewrittenSql()
Method getSqlObjectMethod()
Class<?> getSqlObjectType()
PreparedStatement getStatement()
boolean isConcurrentUpdatable()
ResultSet.CONCUR_UPDATABLE
, otherwise the result set is not updatable,
and will have concurrency level ResultSet.CONCUR_READ_ONLY
.boolean isReturningGeneratedKeys()
Copyright © 2018. All rights reserved.