public final class JdbcCallableStatement extends JdbcPreparedStatement implements CallableStatement
Thread safety: the callable statement is not thread-safe. If the same callable statement is used by multiple threads access to it must be synchronized. The single synchronized block must include assignment of parameters, execution of the command and all operations with its result.
synchronized (call) {
call.setInt(1, 10);
try (ResultSet rs = call.executeQuery()) {
while (rs.next) {
// Do something
}
}
}
synchronized (call) {
call.setInt(1, 15);
updateCount = call.executeUpdate();
}
commandconn, fetchSize, generatedKeys, maxRows, resultSet, resultSetConcurrency, resultSetType, session, updateCountARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQLXML, STATEMENT, trace, XA_DATA_SOURCE, XID| 限定符和类型 | 方法和说明 |
|---|---|
long |
executeLargeUpdate()
Executes a statement (insert, update, delete, create, drop)
and returns the update count.
|
int |
executeUpdate()
Executes a statement (insert, update, delete, create, drop)
and returns the update count.
|
Array |
getArray(int parameterIndex)
Returns the value of the specified column as an Array.
|
Array |
getArray(String parameterName)
Returns the value of the specified column as an Array.
|
BigDecimal |
getBigDecimal(int parameterIndex)
Returns the value of the specified column as a BigDecimal.
|
BigDecimal |
getBigDecimal(int parameterIndex,
int scale)
已过时。
|
BigDecimal |
getBigDecimal(String parameterName)
Returns the value of the specified column as a BigDecimal.
|
Blob |
getBlob(int parameterIndex)
Returns the value of the specified column as a Blob.
|
Blob |
getBlob(String parameterName)
Returns the value of the specified column as a Blob.
|
boolean |
getBoolean(int parameterIndex)
Returns the value of the specified column as a boolean.
|
boolean |
getBoolean(String parameterName)
Returns the value of the specified column as a boolean.
|
byte |
getByte(int parameterIndex)
Returns the value of the specified column as a byte.
|
byte |
getByte(String parameterName)
Returns the value of the specified column as a byte.
|
byte[] |
getBytes(int parameterIndex)
Returns the value of the specified column as a byte array.
|
byte[] |
getBytes(String parameterName)
Returns the value of the specified column as a byte array.
|
Reader |
getCharacterStream(int parameterIndex)
Returns the value of the specified column as a reader.
|
Reader |
getCharacterStream(String parameterName)
Returns the value of the specified column as a reader.
|
Clob |
getClob(int parameterIndex)
Returns the value of the specified column as a Clob.
|
Clob |
getClob(String parameterName)
Returns the value of the specified column as a Clob.
|
Date |
getDate(int parameterIndex)
Returns the value of the specified column as a java.sql.Date.
|
Date |
getDate(int parameterIndex,
Calendar cal)
Returns the value of the specified column as a java.sql.Date using a
specified time zone.
|
Date |
getDate(String parameterName)
Returns the value of the specified column as a java.sql.Date.
|
Date |
getDate(String parameterName,
Calendar cal)
Returns the value of the specified column as a java.sql.Date using a
specified time zone.
|
double |
getDouble(int parameterIndex)
Returns the value of the specified column as a double.
|
double |
getDouble(String parameterName)
Returns the value of the specified column as a double.
|
float |
getFloat(int parameterIndex)
Returns the value of the specified column as a float.
|
float |
getFloat(String parameterName)
Returns the value of the specified column as a float.
|
int |
getInt(int parameterIndex)
Returns the value of the specified column as an int.
|
int |
getInt(String parameterName)
Returns the value of the specified column as an int.
|
long |
getLong(int parameterIndex)
Returns the value of the specified column as a long.
|
long |
getLong(String parameterName)
Returns the value of the specified column as a long.
|
Reader |
getNCharacterStream(int parameterIndex)
Returns the value of the specified column as a reader.
|
Reader |
getNCharacterStream(String parameterName)
Returns the value of the specified column as a reader.
|
NClob |
getNClob(int parameterIndex)
Returns the value of the specified column as a Clob.
|
NClob |
getNClob(String parameterName)
Returns the value of the specified column as a Clob.
|
String |
getNString(int parameterIndex)
Returns the value of the specified column as a String.
|
String |
getNString(String parameterName)
Returns the value of the specified column as a String.
|
Object |
getObject(int parameterIndex)
Returns a column value as a Java object.
|
<T> T |
getObject(int parameterIndex,
Class<T> type)
Returns the value of the specified column as a Java object of the
specified type.
|
Object |
getObject(int parameterIndex,
Map<String,Class<?>> map)
[Not supported] Gets a column as a object using the specified type
mapping.
|
Object |
getObject(String parameterName)
Returns a column value as a Java object.
|
<T> T |
getObject(String parameterName,
Class<T> type)
Returns the value of the specified column as a Java object of the
specified type.
|
Object |
getObject(String parameterName,
Map<String,Class<?>> map)
[Not supported] Gets a column as a object using the specified type
mapping.
|
Ref |
getRef(int parameterIndex)
[Not supported] Gets a column as a reference.
|
Ref |
getRef(String parameterName)
[Not supported] Gets a column as a reference.
|
RowId |
getRowId(int parameterIndex)
[Not supported] Returns the value of the specified column as a row id.
|
RowId |
getRowId(String parameterName)
[Not supported] Returns the value of the specified column as a row id.
|
short |
getShort(int parameterIndex)
Returns the value of the specified column as a short.
|
short |
getShort(String parameterName)
Returns the value of the specified column as a short.
|
SQLXML |
getSQLXML(int parameterIndex)
Returns the value of the specified column as a SQLXML object.
|
SQLXML |
getSQLXML(String parameterName)
Returns the value of the specified column as a SQLXML object.
|
String |
getString(int parameterIndex)
Returns the value of the specified column as a String.
|
String |
getString(String parameterName)
Returns the value of the specified column as a String.
|
Time |
getTime(int parameterIndex)
Returns the value of the specified column as a java.sql.Time.
|
Time |
getTime(int parameterIndex,
Calendar cal)
Returns the value of the specified column as a java.sql.Time using a
specified time zone.
|
Time |
getTime(String parameterName)
Returns the value of the specified column as a java.sql.Time.
|
Time |
getTime(String parameterName,
Calendar cal)
Returns the value of the specified column as a java.sql.Time using a
specified time zone.
|
Timestamp |
getTimestamp(int parameterIndex)
Returns the value of the specified column as a java.sql.Timestamp.
|
Timestamp |
getTimestamp(int parameterIndex,
Calendar cal)
Returns the value of the specified column as a java.sql.Timestamp using a
specified time zone.
|
Timestamp |
getTimestamp(String parameterName)
Returns the value of the specified column as a java.sql.Timestamp.
|
Timestamp |
getTimestamp(String parameterName,
Calendar cal)
Returns the value of the specified column as a java.sql.Timestamp using a
specified time zone.
|
URL |
getURL(int parameterIndex)
[Not supported]
|
URL |
getURL(String parameterName)
[Not supported]
|
void |
registerOutParameter(int parameterIndex,
int sqlType)
Registers the given OUT parameter.
|
void |
registerOutParameter(int parameterIndex,
int sqlType,
int scale)
Registers the given OUT parameter.
|
void |
registerOutParameter(int parameterIndex,
int sqlType,
String typeName)
Registers the given OUT parameter.
|
void |
registerOutParameter(String parameterName,
int sqlType)
Registers the given OUT parameter.
|
void |
registerOutParameter(String parameterName,
int sqlType,
int scale)
Registers the given OUT parameter.
|
void |
registerOutParameter(String parameterName,
int sqlType,
String typeName)
Registers the given OUT parameter.
|
void |
setAsciiStream(String parameterName,
InputStream x)
Sets the value of a parameter as an ASCII stream.
|
void |
setAsciiStream(String parameterName,
InputStream x,
int length)
Sets the value of a parameter as an ASCII stream.
|
void |
setAsciiStream(String parameterName,
InputStream x,
long length)
Sets the value of a parameter as an ASCII stream.
|
void |
setBigDecimal(String parameterName,
BigDecimal x)
Sets the value of a parameter.
|
void |
setBinaryStream(String parameterName,
InputStream x)
Sets the value of a parameter as an input stream.
|
void |
setBinaryStream(String parameterName,
InputStream x,
int length)
Sets the value of a parameter as an input stream.
|
void |
setBinaryStream(String parameterName,
InputStream x,
long length)
Sets the value of a parameter as an input stream.
|
void |
setBlob(String parameterName,
Blob x)
Sets the value of a parameter as a Blob.
|
void |
setBlob(String parameterName,
InputStream x)
Sets the value of a parameter as a Blob.
|
void |
setBlob(String parameterName,
InputStream x,
long length)
Sets the value of a parameter as a Blob.
|
void |
setBoolean(String parameterName,
boolean x)
Sets the value of a parameter.
|
void |
setByte(String parameterName,
byte x)
Sets the value of a parameter.
|
void |
setBytes(String parameterName,
byte[] x)
Sets the value of a parameter as a byte array.
|
void |
setCharacterStream(String parameterName,
Reader x)
Sets the value of a parameter as a character stream.
|
void |
setCharacterStream(String parameterName,
Reader x,
int length)
Sets the value of a parameter as a character stream.
|
void |
setCharacterStream(String parameterName,
Reader x,
long length)
Sets the value of a parameter as a character stream.
|
void |
setClob(String parameterName,
Clob x)
Sets the value of a parameter as a Clob.
|
void |
setClob(String parameterName,
Reader x)
Sets the value of a parameter as a character stream.
|
void |
setClob(String parameterName,
Reader x,
long length)
Sets the value of a parameter as a Clob.
|
void |
setDate(String parameterName,
Date x)
Sets the value of a parameter.
|
void |
setDate(String parameterName,
Date x,
Calendar cal)
Sets the date using a specified time zone.
|
void |
setDouble(String parameterName,
double x)
Sets the value of a parameter.
|
void |
setFloat(String parameterName,
float x)
Sets the value of a parameter.
|
void |
setInt(String parameterName,
int x)
Sets the value of a parameter.
|
void |
setLong(String parameterName,
long x)
Sets the value of a parameter.
|
void |
setNCharacterStream(String parameterName,
Reader x)
Sets the value of a parameter as a character stream.
|
void |
setNCharacterStream(String parameterName,
Reader x,
long length)
Sets the value of a parameter as a character stream.
|
void |
setNClob(String parameterName,
NClob x)
Sets the value of a parameter as a Clob.
|
void |
setNClob(String parameterName,
Reader x)
Sets the value of a parameter as a Clob.
|
void |
setNClob(String parameterName,
Reader x,
long length)
Sets the value of a parameter as a Clob.
|
void |
setNString(String parameterName,
String x)
Sets the value of a parameter.
|
void |
setNull(String parameterName,
int sqlType)
Sets a parameter to null.
|
void |
setNull(String parameterName,
int sqlType,
String typeName)
Sets a parameter to null.
|
void |
setObject(String parameterName,
Object x)
Sets the value of a parameter.
|
void |
setObject(String parameterName,
Object x,
int targetSqlType)
Sets the value of a parameter.
|
void |
setObject(String parameterName,
Object x,
int targetSqlType,
int scale)
Sets the value of a parameter.
|
void |
setObject(String parameterName,
Object x,
SQLType targetSqlType)
Sets the value of a parameter.
|
void |
setObject(String parameterName,
Object x,
SQLType targetSqlType,
int scaleOrLength)
Sets the value of a parameter.
|
void |
setRowId(String parameterName,
RowId x)
[Not supported] Sets the value of a parameter as a row id.
|
void |
setShort(String parameterName,
short x)
Sets the value of a parameter.
|
void |
setSQLXML(String parameterName,
SQLXML x)
Sets the value of a parameter as a SQLXML object.
|
void |
setString(String parameterName,
String x)
Sets the value of a parameter.
|
void |
setTime(String parameterName,
Time x)
Sets the time using a specified time zone.
|
void |
setTime(String parameterName,
Time x,
Calendar cal)
Sets the time using a specified time zone.
|
void |
setTimestamp(String parameterName,
Timestamp x)
Sets the value of a parameter.
|
void |
setTimestamp(String parameterName,
Timestamp x,
Calendar cal)
Sets the timestamp using a specified time zone.
|
void |
setURL(String parameterName,
URL val)
[Not supported]
|
boolean |
wasNull()
Returns whether the last column accessed was null.
|
addBatch, addBatch, clearBatch, clearParameters, close, execute, executeBatch, executeLargeBatch, executeQuery, executeQuery, getGeneratedKeys, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL, toStringcancel, clearWarnings, closeOldResultSet, closeOnCompletion, enquoteIdentifier, execute, execute, execute, execute, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isCancelled, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrapdebugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupportedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitregisterOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameteraddBatch, clearParameters, execute, executeQuery, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURLaddBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutisWrapperFor, unwrappublic int executeUpdate()
throws SQLException
executeUpdate 在接口中 PreparedStatementexecuteUpdate 在类中 JdbcPreparedStatementSQLException - if this object is closed or invalidJdbcPreparedStatement.executeLargeUpdate()public long executeLargeUpdate()
throws SQLException
executeLargeUpdate 在接口中 PreparedStatementexecuteLargeUpdate 在类中 JdbcPreparedStatementSQLException - if this object is closed or invalidpublic void registerOutParameter(int parameterIndex,
int sqlType)
throws SQLException
registerOutParameter 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)sqlType - the data type (Types.x) - ignoredSQLExceptionpublic void registerOutParameter(int parameterIndex,
int sqlType,
String typeName)
throws SQLException
registerOutParameter 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)sqlType - the data type (Types.x) - ignoredtypeName - the SQL type name - ignoredSQLExceptionpublic void registerOutParameter(int parameterIndex,
int sqlType,
int scale)
throws SQLException
registerOutParameter 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)sqlType - the data type (Types.x)scale - is ignoredSQLExceptionpublic void registerOutParameter(String parameterName, int sqlType, String typeName) throws SQLException
registerOutParameter 在接口中 CallableStatementparameterName - the parameter namesqlType - the data type (Types.x) - ignoredtypeName - the SQL type name - ignoredSQLExceptionpublic void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException
registerOutParameter 在接口中 CallableStatementparameterName - the parameter namesqlType - the data type (Types.x) - ignoredscale - is ignoredSQLExceptionpublic void registerOutParameter(String parameterName, int sqlType) throws SQLException
registerOutParameter 在接口中 CallableStatementparameterName - the parameter namesqlType - the data type (Types.x) - ignoredSQLExceptionpublic boolean wasNull()
throws SQLException
wasNull 在接口中 CallableStatementSQLExceptionpublic URL getURL(int parameterIndex) throws SQLException
getURL 在接口中 CallableStatementSQLExceptionpublic String getString(int parameterIndex) throws SQLException
getString 在接口中 CallableStatementparameterIndex - (1,2,...)SQLException - if the column is not found or if this object is
closedpublic boolean getBoolean(int parameterIndex)
throws SQLException
getBoolean 在接口中 CallableStatementparameterIndex - (1,2,...)SQLException - if the column is not found or if this object is
closedpublic byte getByte(int parameterIndex)
throws SQLException
getByte 在接口中 CallableStatementparameterIndex - (1,2,...)SQLException - if the column is not found or if this object is
closedpublic short getShort(int parameterIndex)
throws SQLException
getShort 在接口中 CallableStatementparameterIndex - (1,2,...)SQLException - if the column is not found or if this object is
closedpublic int getInt(int parameterIndex)
throws SQLException
getInt 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic long getLong(int parameterIndex)
throws SQLException
getLong 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic float getFloat(int parameterIndex)
throws SQLException
getFloat 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic double getDouble(int parameterIndex)
throws SQLException
getDouble 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closed@Deprecated public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException
getBigDecimal(int)getBigDecimal 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)scale - is ignoredSQLException - if the column is not found or if this object is
closedpublic byte[] getBytes(int parameterIndex)
throws SQLException
getBytes 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic Date getDate(int parameterIndex) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalDate.class) instead.
getDate 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedgetObject(int, Class)public Time getTime(int parameterIndex) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalTime.class) instead.
getTime 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedgetObject(int, Class)public Timestamp getTimestamp(int parameterIndex) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalDateTime.class) instead.
getTimestamp 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedgetObject(int, Class)public Object getObject(int parameterIndex) throws SQLException
getObject 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic BigDecimal getBigDecimal(int parameterIndex) throws SQLException
getBigDecimal 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic Object getObject(int parameterIndex, Map<String,Class<?>> map) throws SQLException
getObject 在接口中 CallableStatementSQLExceptionpublic Ref getRef(int parameterIndex) throws SQLException
getRef 在接口中 CallableStatementSQLExceptionpublic Blob getBlob(int parameterIndex) throws SQLException
getBlob 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic Clob getClob(int parameterIndex) throws SQLException
getClob 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic Array getArray(int parameterIndex) throws SQLException
getArray 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic Date getDate(int parameterIndex, Calendar cal) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalDate.class) instead.
getDate 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)cal - the calendarSQLException - if the column is not found or if this object is
closedgetObject(int, Class)public Time getTime(int parameterIndex, Calendar cal) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalTime.class) instead.
getTime 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)cal - the calendarSQLException - if the column is not found or if this object is
closedgetObject(int, Class)public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalDateTime.class) instead.
getTimestamp 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)cal - the calendarSQLException - if the column is not found or if this object is
closedgetObject(int, Class)public URL getURL(String parameterName) throws SQLException
getURL 在接口中 CallableStatementSQLExceptionpublic Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException
Usage of this method is discouraged. Use
getObject(parameterName, LocalDateTime.class) instead.
getTimestamp 在接口中 CallableStatementparameterName - the parameter namecal - the calendarSQLException - if the column is not found or if this object is
closedgetObject(String, Class)public Time getTime(String parameterName, Calendar cal) throws SQLException
Usage of this method is discouraged. Use
getObject(parameterName, LocalTime.class) instead.
getTime 在接口中 CallableStatementparameterName - the parameter namecal - the calendarSQLException - if the column is not found or if this object is
closedgetObject(String, Class)public Date getDate(String parameterName, Calendar cal) throws SQLException
Usage of this method is discouraged. Use
getObject(parameterName, LocalDate.class) instead.
getDate 在接口中 CallableStatementparameterName - the parameter namecal - the calendarSQLException - if the column is not found or if this object is
closedgetObject(String, Class)public Array getArray(String parameterName) throws SQLException
getArray 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic Clob getClob(String parameterName) throws SQLException
getClob 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic Blob getBlob(String parameterName) throws SQLException
getBlob 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic Ref getRef(String parameterName) throws SQLException
getRef 在接口中 CallableStatementSQLExceptionpublic Object getObject(String parameterName, Map<String,Class<?>> map) throws SQLException
getObject 在接口中 CallableStatementSQLExceptionpublic BigDecimal getBigDecimal(String parameterName) throws SQLException
getBigDecimal 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic Object getObject(String parameterName) throws SQLException
getObject 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic Timestamp getTimestamp(String parameterName) throws SQLException
Usage of this method is discouraged. Use
getObject(parameterName, LocalDateTime.class) instead.
getTimestamp 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedgetObject(String, Class)public Time getTime(String parameterName) throws SQLException
Usage of this method is discouraged. Use
getObject(parameterName, LocalTime.class) instead.
getTime 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedgetObject(String, Class)public Date getDate(String parameterName) throws SQLException
Usage of this method is discouraged. Use
getObject(parameterName, LocalDate.class) instead.
getDate 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedgetObject(String, Class)public byte[] getBytes(String parameterName) throws SQLException
getBytes 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic double getDouble(String parameterName) throws SQLException
getDouble 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic float getFloat(String parameterName) throws SQLException
getFloat 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic long getLong(String parameterName) throws SQLException
getLong 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic int getInt(String parameterName) throws SQLException
getInt 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic short getShort(String parameterName) throws SQLException
getShort 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic byte getByte(String parameterName) throws SQLException
getByte 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic boolean getBoolean(String parameterName) throws SQLException
getBoolean 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic String getString(String parameterName) throws SQLException
getString 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic RowId getRowId(int parameterIndex) throws SQLException
getRowId 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLExceptionpublic RowId getRowId(String parameterName) throws SQLException
getRowId 在接口中 CallableStatementparameterName - the parameter nameSQLExceptionpublic NClob getNClob(int parameterIndex) throws SQLException
getNClob 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic NClob getNClob(String parameterName) throws SQLException
getNClob 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic SQLXML getSQLXML(int parameterIndex) throws SQLException
getSQLXML 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic SQLXML getSQLXML(String parameterName) throws SQLException
getSQLXML 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic String getNString(int parameterIndex) throws SQLException
getNString 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic String getNString(String parameterName) throws SQLException
getNString 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic Reader getNCharacterStream(int parameterIndex) throws SQLException
getNCharacterStream 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic Reader getNCharacterStream(String parameterName) throws SQLException
getNCharacterStream 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic Reader getCharacterStream(int parameterIndex) throws SQLException
getCharacterStream 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)SQLException - if the column is not found or if this object is
closedpublic Reader getCharacterStream(String parameterName) throws SQLException
getCharacterStream 在接口中 CallableStatementparameterName - the parameter nameSQLException - if the column is not found or if this object is
closedpublic void setNull(String parameterName, int sqlType, String typeName) throws SQLException
setNull 在接口中 CallableStatementparameterName - the parameter namesqlType - the data type (Types.x)typeName - this parameter is ignoredSQLException - if this object is closedpublic void setNull(String parameterName, int sqlType) throws SQLException
setNull 在接口中 CallableStatementparameterName - the parameter namesqlType - the data type (Types.x)SQLException - if this object is closedpublic void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException
Usage of this method is discouraged. Use
setObject(parameterName, value) with
LocalDateTime parameter instead.
setTimestamp 在接口中 CallableStatementparameterName - the parameter namex - the valuecal - the calendarSQLException - if this object is closedsetObject(String, Object)public void setTime(String parameterName, Time x, Calendar cal) throws SQLException
Usage of this method is discouraged. Use
setObject(parameterName, value) with LocalTime
parameter instead.
setTime 在接口中 CallableStatementparameterName - the parameter namex - the valuecal - the calendarSQLException - if this object is closedsetObject(String, Object)public void setDate(String parameterName, Date x, Calendar cal) throws SQLException
Usage of this method is discouraged. Use
setObject(parameterName, value) with LocalDate
parameter instead.
setDate 在接口中 CallableStatementparameterName - the parameter namex - the valuecal - the calendarSQLException - if this object is closedsetObject(String, Object)public void setCharacterStream(String parameterName, Reader x, int length) throws SQLException
setCharacterStream 在接口中 CallableStatementparameterName - the parameter namex - the valuelength - the maximum number of charactersSQLException - if this object is closedpublic void setObject(String parameterName, Object x) throws SQLException
setObject 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setObject(String parameterName, Object x, int targetSqlType) throws SQLException
setObject 在接口中 CallableStatementparameterName - the parameter namex - the value, null is allowedtargetSqlType - the type as defined in java.sql.TypesSQLException - if this object is closedpublic void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException
setObject 在接口中 CallableStatementparameterName - the parameter namex - the value, null is allowedtargetSqlType - the type as defined in java.sql.Typesscale - is ignoredSQLException - if this object is closedpublic void setObject(String parameterName, Object x, SQLType targetSqlType) throws SQLException
setObject 在接口中 CallableStatementparameterName - the parameter namex - the value, null is allowedtargetSqlType - the typeSQLException - if this object is closedpublic void setObject(String parameterName, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException
setObject 在接口中 CallableStatementparameterName - the parameter namex - the value, null is allowedtargetSqlType - the typescaleOrLength - is ignoredSQLException - if this object is closedpublic void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException
setBinaryStream 在接口中 CallableStatementparameterName - the parameter namex - the valuelength - the maximum number of bytesSQLException - if this object is closedpublic void setAsciiStream(String parameterName, InputStream x, long length) throws SQLException
setAsciiStream 在接口中 CallableStatementparameterName - the parameter namex - the valuelength - the maximum number of bytesSQLException - if this object is closedpublic void setTimestamp(String parameterName, Timestamp x) throws SQLException
Usage of this method is discouraged. Use
setObject(parameterName, value) with
LocalDateTime parameter instead.
setTimestamp 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedsetObject(String, Object)public void setTime(String parameterName, Time x) throws SQLException
Usage of this method is discouraged. Use
setObject(parameterName, value) with LocalTime
parameter instead.
setTime 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedsetObject(String, Object)public void setDate(String parameterName, Date x) throws SQLException
Usage of this method is discouraged. Use
setObject(parameterName, value) with LocalDate
parameter instead.
setDate 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedsetObject(String, Object)public void setBytes(String parameterName, byte[] x) throws SQLException
setBytes 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setString(String parameterName, String x) throws SQLException
setString 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setBigDecimal(String parameterName, BigDecimal x) throws SQLException
setBigDecimal 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setDouble(String parameterName, double x) throws SQLException
setDouble 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setFloat(String parameterName, float x) throws SQLException
setFloat 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setLong(String parameterName, long x) throws SQLException
setLong 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setInt(String parameterName, int x) throws SQLException
setInt 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setShort(String parameterName, short x) throws SQLException
setShort 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setByte(String parameterName, byte x) throws SQLException
setByte 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setBoolean(String parameterName, boolean x) throws SQLException
setBoolean 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setURL(String parameterName, URL val) throws SQLException
setURL 在接口中 CallableStatementSQLExceptionpublic void setRowId(String parameterName, RowId x) throws SQLException
setRowId 在接口中 CallableStatementSQLExceptionpublic void setNString(String parameterName, String x) throws SQLException
setNString 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setNCharacterStream(String parameterName, Reader x, long length) throws SQLException
setNCharacterStream 在接口中 CallableStatementparameterName - the parameter namex - the valuelength - the maximum number of charactersSQLException - if this object is closedpublic void setNClob(String parameterName, NClob x) throws SQLException
setNClob 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setClob(String parameterName, Reader x, long length) throws SQLException
setClob 在接口中 CallableStatementparameterName - the parameter namex - the valuelength - the maximum number of charactersSQLException - if this object is closedpublic void setBlob(String parameterName, InputStream x, long length) throws SQLException
setBlob 在接口中 CallableStatementparameterName - the parameter namex - the valuelength - the maximum number of bytesSQLException - if this object is closedpublic void setNClob(String parameterName, Reader x, long length) throws SQLException
setNClob 在接口中 CallableStatementparameterName - the parameter namex - the valuelength - the maximum number of charactersSQLException - if this object is closedpublic void setBlob(String parameterName, Blob x) throws SQLException
setBlob 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setClob(String parameterName, Clob x) throws SQLException
setClob 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setAsciiStream(String parameterName, InputStream x) throws SQLException
setAsciiStream 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException
setAsciiStream 在接口中 CallableStatementparameterName - the parameter namex - the valuelength - the maximum number of bytesSQLException - if this object is closedpublic void setBinaryStream(String parameterName, InputStream x) throws SQLException
setBinaryStream 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setBinaryStream(String parameterName, InputStream x, long length) throws SQLException
setBinaryStream 在接口中 CallableStatementparameterName - the parameter namex - the valuelength - the maximum number of bytesSQLException - if this object is closedpublic void setBlob(String parameterName, InputStream x) throws SQLException
setBlob 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setCharacterStream(String parameterName, Reader x) throws SQLException
setCharacterStream 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setCharacterStream(String parameterName, Reader x, long length) throws SQLException
setCharacterStream 在接口中 CallableStatementparameterName - the parameter namex - the valuelength - the maximum number of charactersSQLException - if this object is closedpublic void setClob(String parameterName, Reader x) throws SQLException
setClob 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setNCharacterStream(String parameterName, Reader x) throws SQLException
setNCharacterStream 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setNClob(String parameterName, Reader x) throws SQLException
setNClob 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic void setSQLXML(String parameterName, SQLXML x) throws SQLException
setSQLXML 在接口中 CallableStatementparameterName - the parameter namex - the valueSQLException - if this object is closedpublic <T> T getObject(int parameterIndex,
Class<T> type)
throws SQLException
getObject 在接口中 CallableStatementparameterIndex - the parameter index (1, 2, ...)type - the class of the returned valueSQLException - if the column is not found or if this object is
closedpublic <T> T getObject(String parameterName, Class<T> type) throws SQLException
getObject 在接口中 CallableStatementparameterName - the parameter nametype - the class of the returned valueSQLException - if the column is not found or if this object is
closedCopyright © 2022. All rights reserved.