org.springframework.jdbc.core
Class SqlOutParameter
java.lang.Object
org.springframework.jdbc.core.SqlParameter
org.springframework.jdbc.core.SqlOutParameter
- public class SqlOutParameter
- extends SqlParameter
Subclass of SqlParameter to represent an output parameter.
No additional properties: instanceof will be used to check
for such types.
Output parameters - like all stored procedure parameters -
must have names.
- Author:
- Rod Johnson, Thomas Risberg
Constructor Summary |
SqlOutParameter(java.lang.String name,
int type)
Create a new OutputParameter, supplying name and SQL type |
SqlOutParameter(java.lang.String name,
int type,
RowCallbackHandler rch)
|
SqlOutParameter(java.lang.String name,
int type,
RowMapper rm)
|
SqlOutParameter(java.lang.String name,
int type,
RowMapper rm,
int rowsExpected)
|
SqlOutParameter(java.lang.String name,
int type,
java.lang.String typeName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlOutParameter
public SqlOutParameter(java.lang.String name,
int type)
- Create a new OutputParameter, supplying name and SQL type
- Parameters:
name
- name of the parameter, as used in input and output mapstype
- SQL type of the parameter according to java.sql.Types
SqlOutParameter
public SqlOutParameter(java.lang.String name,
int type,
java.lang.String typeName)
SqlOutParameter
public SqlOutParameter(java.lang.String name,
int type,
RowCallbackHandler rch)
SqlOutParameter
public SqlOutParameter(java.lang.String name,
int type,
RowMapper rm,
int rowsExpected)
SqlOutParameter
public SqlOutParameter(java.lang.String name,
int type,
RowMapper rm)
isResultSetSupported
public boolean isResultSetSupported()
isRowMapperSupported
public boolean isRowMapperSupported()
getRowCallbackHandler
public RowCallbackHandler getRowCallbackHandler()
newResultReader
protected final ResultReader newResultReader()
- Return new instance of the implementation of a ResultReader usable for
returned ResultSets. This implementation invokes the RowMapper's
implementation of the mapRow method.
Copyright (C) 2003-2004 The Spring Framework Project.