|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.access.jdbc.SQLTemplateAction
public class SQLTemplateAction
Implements a strategy for execution of SQLTemplates.
Field Summary | |
---|---|
protected JdbcAdapter |
adapter
|
protected DbEntity |
dbEntity
|
protected SQLTemplate |
query
|
protected QueryMetadata |
queryMetadata
|
Constructor Summary | |
---|---|
SQLTemplateAction(SQLTemplate query,
JdbcAdapter adapter,
EntityResolver entityResolver)
|
Method Summary | |
---|---|
protected void |
bind(java.sql.PreparedStatement preparedStatement,
ParameterBinding[] bindings)
Binds parameters to the PreparedStatement. |
protected RowDescriptorBuilder |
configureRowDescriptorBuilder(SQLStatement compiled,
java.sql.ResultSet resultSet)
|
protected void |
execute(java.sql.Connection connection,
OperationObserver callback,
SQLStatement compiled,
java.util.Collection<java.lang.Number> updateCounts)
|
protected java.lang.String |
extractTemplateString()
Extracts a template string from a SQLTemplate query. |
DbAdapter |
getAdapter()
Returns DbAdapter associated with this execution plan object. |
protected int |
getFetchOffset()
|
SQLTemplate |
getQuery()
Returns a SQLTemplate for this action. |
void |
performAction(java.sql.Connection connection,
OperationObserver callback)
Runs a SQLTemplate query, collecting all results. |
protected void |
processSelectResult(SQLStatement compiled,
java.sql.Connection connection,
java.sql.Statement statement,
java.sql.ResultSet resultSet,
OperationObserver callback,
long startTime)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JdbcAdapter adapter
protected SQLTemplate query
protected QueryMetadata queryMetadata
protected DbEntity dbEntity
Constructor Detail |
---|
public SQLTemplateAction(SQLTemplate query, JdbcAdapter adapter, EntityResolver entityResolver)
Method Detail |
---|
public DbAdapter getAdapter()
public void performAction(java.sql.Connection connection, OperationObserver callback) throws java.sql.SQLException, java.lang.Exception
performAction
in interface SQLAction
java.sql.SQLException
java.lang.Exception
protected void execute(java.sql.Connection connection, OperationObserver callback, SQLStatement compiled, java.util.Collection<java.lang.Number> updateCounts) throws java.sql.SQLException, java.lang.Exception
java.sql.SQLException
java.lang.Exception
protected void processSelectResult(SQLStatement compiled, java.sql.Connection connection, java.sql.Statement statement, java.sql.ResultSet resultSet, OperationObserver callback, long startTime) throws java.lang.Exception
java.lang.Exception
protected RowDescriptorBuilder configureRowDescriptorBuilder(SQLStatement compiled, java.sql.ResultSet resultSet) throws java.sql.SQLException
java.sql.SQLException
protected java.lang.String extractTemplateString()
protected void bind(java.sql.PreparedStatement preparedStatement, ParameterBinding[] bindings) throws java.sql.SQLException, java.lang.Exception
java.sql.SQLException
java.lang.Exception
public SQLTemplate getQuery()
protected int getFetchOffset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |