|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.skife.jdbi.v2.ConcreteStatementContext
public final class ConcreteStatementContext
| 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 |
void |
setBinding(Binding b)
|
void |
setSqlObjectMethod(Method sqlObjectMethod)
|
void |
setSqlObjectType(Class<?> sqlObjectType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Object getAttribute(String key)
getAttribute in interface StatementContextkey - The name of the attribute
public Map<String,Object> getAttributes()
getAttributes in interface StatementContextpublic Binding getBinding()
getBinding in interface StatementContextpublic 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 StatementContext
public Object setAttribute(String key,
Object value)
setAttribute in interface StatementContextkey - name of the attributevalue - value for the attribute
public void setBinding(Binding b)
public final void setSqlObjectMethod(Method sqlObjectMethod)
public final void setSqlObjectType(Class<?> sqlObjectType)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||