public final class ConcreteStatementContext extends Object implements StatementContext
| Modifier and Type | Method and Description |
|---|---|
void |
addCleanable(Cleanable cleanable) |
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() |
Collection<Cleanable> |
getCleanables() |
Connection |
getConnection()
Obtain the JDBC connection being used for this statement
|
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 |
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 |
setBinding(Binding b) |
void |
setReturningGeneratedKeys(boolean b) |
void |
setSqlObjectMethod(Method sqlObjectMethod) |
void |
setSqlObjectType(Class<?> sqlObjectType) |
public void addCleanable(Cleanable cleanable)
addCleanable in interface StatementContextpublic Object getAttribute(String key)
getAttribute in interface StatementContextkey - The name of the attributepublic Map<String,Object> getAttributes()
getAttributes in interface StatementContextpublic Binding getBinding()
getBinding in interface StatementContextpublic Collection<Cleanable> getCleanables()
public Connection getConnection()
getConnection in interface StatementContextpublic String getLocatedSql()
getLocatedSql in interface StatementContextpublic String getRawSql()
getRawSql in interface StatementContextpublic String getRewrittenSql()
getRewrittenSql in interface StatementContextpublic Method getSqlObjectMethod()
getSqlObjectMethod in interface StatementContextpublic Class<?> getSqlObjectType()
getSqlObjectType in interface StatementContextpublic PreparedStatement getStatement()
getStatement in interface StatementContextpublic boolean isReturningGeneratedKeys()
StatementContextisReturningGeneratedKeys in interface StatementContextpublic Object setAttribute(String key, Object value)
setAttribute in interface StatementContextkey - name of the attributevalue - value for the attributepublic void setBinding(Binding b)
public void setReturningGeneratedKeys(boolean b)
public void setSqlObjectMethod(Method sqlObjectMethod)
public void setSqlObjectType(Class<?> sqlObjectType)
Copyright © 2016. All rights reserved.