public class JDBC4CallableStatement extends CallableFunctionStatement implements CloneableCallableStatement
arguments, parameterMetadataautoGeneratedKeys, hasLongData, indexMap, parameterCount, SPEC_ISO_ZONED_DATE_TIMEactualSql, addRowid, batchQueries, canUseServerTimeout, connection, exceptionFactory, executing, fetchSize, isFetchSizeSet, isInternal, lock, lockLogger, maxRows, options, originalSql, protocol, queryTimeout, results, resultSetConcurrency, resultSetScrollType, selectEndPos, simpleSql, sqlType, status, STMT_ALTER, STMT_BEGIN, STMT_CALL, STMT_CREATE, STMT_DECLARE, STMT_DELETE, STMT_DROP, STMT_INSERT, STMT_SELECT, STMT_UNINITIALIZED, STMT_UNKNOWN, STMT_UPDATE, tableName, whereEndPos| 构造器和说明 |
|---|
JDBC4CallableStatement(OceanBaseConnection connection,
String databaseName,
String procedureName,
String arguments,
int resultSetType,
int resultSetConcurrency,
ExceptionFactory exceptionFactory)
Specific implementation of CallableStatement to handle function call, represent by call like
{?
|
| 限定符和类型 | 方法和说明 |
|---|---|
JDBC4CallableStatement |
clone(OceanBaseConnection connection)
Clone statement.
|
boolean |
execute()
Executes the SQL statement in this
PreparedStatement object, which may be any kind
of SQL statement. |
ResultSet |
executeQuery()
Executes the SQL query in this
PreparedStatement object and returns the
ResultSet object generated by the query. |
int |
executeUpdate()
Executes the CALL statement.
|
protected SelectResultSet |
getResult() |
void |
setParameter(int parameterIndex,
ParameterHolder holder)
Set parameter.
|
getArray, getArray, getBigDecimal, getBigDecimal, getBigDecimal, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getDate, getDate, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getParameterMetaData, getRef, getRef, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getURL, getURL, initFunctionData, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, 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, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setURL, wasNulladdBatch, addBatch, asSql, asSql, clearBatch, clearParameters, executeBatch, executeInternal, executeLargeBatch, getMetaData, getParameters, getPrepareResult, getServerUpdateCounts, setArray, setParameters, toStringexecuteLargeUpdate, getParameterCount, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBINARY_DOUBLE, setBINARY_FLOAT, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFixedCHAR, setFloat, setIndexMap, setInt, setINTERVALDS, setINTERVALYM, setLobLocator, setLocalDateTime, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setNull, setNUMBER_FLOAT, setNUMBER, setObject, setObject, setObject, setObject, setObject, setParameterCount, setRef, setRowId, setShort, setSQLXML, setString, setStruct, setTime, setTime, setTimestamp, setTIMESTAMP, setTimestamp, setTIMESTAMPLTZ, setTIMESTAMPTZ, setUnicodeStream, setURLcancel, checkClose, checkCloseOnCompletion, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, executeBatchEpilogue, executeBatchExceptionEpilogue, executeBatchExceptionEpilogue, executeEpilogue, executeExceptionEpilogue, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeQueryPrologue, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getActualSql, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResults, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getServerInfo, getSqlType, getSqlType, getUpdateCount, getWarnings, getWhereEndPos, isAddRowid, isClosed, isCloseOnCompletion, isCursorResultSet, isDml, isInternal, isPoolable, isSimpleIdentifier, isWrapperFor, realClose, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setInternal, setLargeMaxRows, setLocalInfileInputStream, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, setTimerTask, skipMoreResults, testExecute, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetArray, getArray, getBigDecimal, getBigDecimal, getBigDecimal, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getDate, getDate, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getURL, getURL, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, 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, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setURL, wasNulladdBatch, clearParameters, executeLargeUpdate, 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 JDBC4CallableStatement(OceanBaseConnection connection, String databaseName, String procedureName, String arguments, int resultSetType, int resultSetConcurrency, ExceptionFactory exceptionFactory) throws SQLException
connection - current connectiondatabaseName - database nameprocedureName - function namearguments - function argsresultSetType - a result set type; one of ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVEresultSetConcurrency - a concurrency type; one of ResultSet.CONCUR_READ_ONLY
or ResultSet.CONCUR_UPDATABLEexceptionFactory - Exception factorySQLException - exceptionprotected SelectResultSet getResult() throws SQLException
getResult 在类中 CallableFunctionStatementSQLExceptionpublic JDBC4CallableStatement clone(OceanBaseConnection connection) throws CloneNotSupportedException
clone 在接口中 CloneableCallableStatementclone 在类中 CallableFunctionStatementconnection - connectionCloneNotSupportedException - if any error occur.public int executeUpdate()
throws SQLException
executeUpdate 在接口中 PreparedStatementexecuteUpdate 在类中 JDBC4PreparedStatementSQLException - if a database access error occurs; this method is called on a closed
PreparedStatement or the SQL statement returns a ResultSet objectpublic void setParameter(int parameterIndex,
ParameterHolder holder)
throws SQLException
JDBC4PreparedStatementsetParameter 在类中 JDBC4PreparedStatementparameterIndex - indexholder - parameter holderSQLException - if index position doesn't correspond to query parameterspublic ResultSet executeQuery() throws SQLException
JDBC4PreparedStatementPreparedStatement object and returns the
ResultSet object generated by the query.executeQuery 在接口中 PreparedStatementexecuteQuery 在类中 JDBC4PreparedStatementResultSet object that contains the data produced by the query; never
nullSQLException - if a database access error occurs; this method is called on a closed
PreparedStatement or the SQL statement does not return a ResultSet
objectpublic boolean execute()
throws SQLException
JDBC4PreparedStatementPreparedStatement object, which may be any kind
of SQL statement. Some prepared statements return multiple results; the execute
method handles these complex statements as well as the simpler form of statements handled by
the methods executeQuery and executeUpdate. execute method returns a boolean to indicate the form of the
first result. You must call either the method getResultSet or getUpdateCount
to retrieve the result; you must call getInternalMoreResults to move to
any subsequent result(s).execute 在接口中 PreparedStatementexecute 在类中 JDBC4PreparedStatementtrue if the first result is a ResultSet object; false
if the first result is an update count or there is no resultSQLException - if a database access error occurs; this method is called on a closed
PreparedStatement or an argument is supplied to this methodStatement.execute(java.lang.String),
Statement.getResultSet(),
Statement.getUpdateCount(),
Statement.getMoreResults()Copyright © 2024 oceanbase.com. All rights reserved.