|
||||||||||
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 DbAdapter |
adapter
|
protected SQLTemplate |
query
|
Constructor Summary | |
---|---|
SQLTemplateAction(SQLTemplate query,
DbAdapter adapter)
|
Method Summary | |
---|---|
protected void |
bind(PreparedStatement preparedStatement,
ParameterBinding[] bindings)
Binds parameters to the PreparedStatement. |
protected void |
execute(Connection connection,
OperationObserver callback,
SQLStatement compiled,
Collection updateCounts)
|
protected String |
extractTemplateString()
Extracts a template string from a SQLTemplate query. |
DbAdapter |
getAdapter()
Returns DbAdapter associated with this execution plan object. |
SQLTemplate |
getQuery()
Returns a SQLTemplate for this action. |
boolean |
isRemovingLineBreaks()
Deprecated. since 3.0 |
void |
performAction(Connection connection,
OperationObserver callback)
Runs a SQLTemplate query, collecting all results. |
protected void |
processSelectResult(SQLStatement compiled,
Connection connection,
Statement statement,
ResultSet resultSet,
OperationObserver callback,
long startTime)
|
void |
setRemovingLineBreaks(boolean removingLineBreaks)
Deprecated. since 3.0 - does nothing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DbAdapter adapter
protected SQLTemplate query
Constructor Detail |
---|
public SQLTemplateAction(SQLTemplate query, DbAdapter adapter)
Method Detail |
---|
public DbAdapter getAdapter()
public void performAction(Connection connection, OperationObserver callback) throws SQLException, Exception
performAction
in interface SQLAction
SQLException
Exception
protected void execute(Connection connection, OperationObserver callback, SQLStatement compiled, Collection updateCounts) throws SQLException, Exception
SQLException
Exception
protected void processSelectResult(SQLStatement compiled, Connection connection, Statement statement, ResultSet resultSet, OperationObserver callback, long startTime) throws Exception
Exception
protected String extractTemplateString()
protected void bind(PreparedStatement preparedStatement, ParameterBinding[] bindings) throws SQLException, Exception
SQLException
Exception
public boolean isRemovingLineBreaks()
public void setRemovingLineBreaks(boolean removingLineBreaks)
public SQLTemplate getQuery()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |