|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.object.RdbmsOperation org.springframework.jdbc.object.SqlOperation
RdbmsOperation using a JdbcTemplate and representing a SQL-based operation such as a query or update, as opposed to a stored procedure.
Configures a PreparedStatementCreatorFactory based on the declared parameters.
Field Summary |
Fields inherited from class org.springframework.jdbc.object.RdbmsOperation |
logger |
Constructor Summary | |
SqlOperation()
|
Method Summary | |
protected void |
compileInternal()
Overridden method to configure the PreparedStatementCreatorFactory based on our declared parameters. |
protected int |
getResultSetType()
Return whether prepared statements will return a specific type of ResultSet. |
protected boolean |
isUpdatableResults()
Return whether prepared statements will return updatable ResultSets. |
protected PreparedStatementCreator |
newPreparedStatementCreator(java.lang.Object[] params)
Return a PreparedStatementCreator to perform an operation with this parameters. |
protected void |
onCompileInternal()
Hook method that subclasses may override to react to compilation. |
protected void |
setResultSetType(int resultSetType)
Set whether to use prepared statements that return a specific type of ResultSet. |
protected void |
setUpdatableResults(boolean updatableResults)
Set whether to use prepared statements capable of returning updatable ResultSets. |
Methods inherited from class org.springframework.jdbc.object.RdbmsOperation |
afterPropertiesSet, compile, declareParameter, getDeclaredParameters, getJdbcTemplate, getSql, isCompiled, setDataSource, setJdbcTemplate, setSql, setTypes, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SqlOperation()
Method Detail |
protected void setResultSetType(int resultSetType)
resultSetType
- the ResultSet typeResultSet.TYPE_FORWARD_ONLY
,
ResultSet.TYPE_SCROLL_INSENSITIVE
,
ResultSet.TYPE_SCROLL_SENSITIVE
protected int getResultSetType()
protected void setUpdatableResults(boolean updatableResults)
protected boolean isUpdatableResults()
protected final void compileInternal()
compileInternal
in class RdbmsOperation
RdbmsOperation.compileInternal()
protected void onCompileInternal()
protected PreparedStatementCreator newPreparedStatementCreator(java.lang.Object[] params)
params
- parameters. May be null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |