|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StatementContext
The statement context provides a means for passing client specific information through the evaluation of a statement. The context is not used by jDBI internally, but will be passed to all statement customizers. This makes it possible to parameterize the processing of the tweakable parts of the statement processing cycle.
| Method Summary | |
|---|---|
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 |
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. |
Object |
setAttribute(String key,
Object value)
Specify an attribute on the statement context |
| Method Detail |
|---|
Object getAttribute(String key)
key - The name of the attribute
Map<String,Object> getAttributes()
Binding getBinding()
Connection getConnection()
String getLocatedSql()
String getRawSql()
String getRewrittenSql()
Method getSqlObjectMethod()
Class<?> getSqlObjectType()
PreparedStatement getStatement()
Object setAttribute(String key,
Object value)
key - name of the attributevalue - value for the attribute
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||