org.springframework.jdbc.object
Class SqlCall
org.springframework.jdbc.object.RdbmsOperation
|
+--org.springframework.jdbc.object.SqlCall
- Direct Known Subclasses:
- StoredProcedure
- public abstract class SqlCall
- extends RdbmsOperation
RdbmsOperation using a JdbcTemplate and representing a SQL-based
call such as a stored procedure or a stored function.
Configures a CallableStatementCreatorFactory based on the declared
parameters.
- Author:
- Rod Johnson, Thomas Risberg
- Version: $Id: SqlCall.java,v 1.5 2004/01/02 22:01:31 jhoeller Exp $
| Method Summary |
String | getCallString() Get the flag used to indicate that this call is for a function. |
boolean | isFunction() Get the flag used to indicate that this call is for a function. |
void | setFunction(boolean function) Set the flag used to indicate that this call is for a function |
getCallString
public String getCallString()
- Get the flag used to indicate that this call is for a function.
- Returns: boolean
isFunction
public boolean isFunction()
- Get the flag used to indicate that this call is for a function.
- Returns: boolean
setFunction
public void setFunction(boolean function)
- Set the flag used to indicate that this call is for a function
- Parameters:
- function - true or false
to Class org.springframework.jdbc.core.CallableStatementCreatorFactory- Object enabling us to create CallableStatementCreators
efficiently, based on this class's declared parameters.
to Class java.lang.String
- Call string as defined in java.sql.CallableStatement.
String of form {call add_invoice(?, ?, ?)}
or {? = call get_invoice_count(?)} if isFunction is set to true
Updated after each parameter is added.