public interface SQLListenerContext
SQLDetailedListener
callback methodModifier and Type | Method and Description |
---|---|
Connection |
getConnection()
NOTE : This can be null depending on the stage of the query execution
|
Object |
getData(String dataKey)
The context getData is a general purpose place that listeners can place objects.
|
RelationalPath<?> |
getEntity()
NOTE : This can be null depending on the stage of the query execution
|
Exception |
getException()
NOTE : This can be null depending on whether an exception occurred
|
QueryMetadata |
getMetadata() |
PreparedStatement |
getPreparedStatement()
NOTE : This can be null depending on the stage of the query execution
|
Collection<PreparedStatement> |
getPreparedStatements()
NOTE : This can be empty depending on the stage of the query execution
|
String |
getSQL()
NOTE : This can be null depending on the stage of the query execution
|
Collection<String> |
getSQLStatements()
NOTE : This can be empty depending on the stage of the query execution
|
void |
setData(String dataKey,
Object value)
The context setData is a general purpose place that listeners can place objects.
|
Object getData(String dataKey)
dataKey
- the key to look upvoid setData(String dataKey, Object value)
A good time to place objects into the context is during SQLDetailedListener.start(SQLListenerContext)
and then access if after that.
dataKey
- the key to usevalue
- the value to place under that keyQueryMetadata getMetadata()
String getSQL()
Collection<String> getSQLStatements()
RelationalPath<?> getEntity()
Connection getConnection()
Exception getException()
PreparedStatement getPreparedStatement()
Collection<PreparedStatement> getPreparedStatements()
Copyright © 2007–2015 Mysema Ltd. All rights reserved.