|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mariadb.jdbc.MariaDbStatement
org.mariadb.jdbc.BasePrepareStatement
org.mariadb.jdbc.MariaDbPreparedStatementClient
org.mariadb.jdbc.CallableFunctionStatement
org.mariadb.jdbc.MariaDbFunctionStatement
public class MariaDbFunctionStatement
Field Summary |
---|
Fields inherited from class org.mariadb.jdbc.CallableFunctionStatement |
---|
parameterMetadata, params |
Fields inherited from class org.mariadb.jdbc.MariaDbPreparedStatementClient |
---|
parameterList, prepareResult |
Fields inherited from class org.mariadb.jdbc.BasePrepareStatement |
---|
hasLongData, useFractionalSeconds |
Fields inherited from class org.mariadb.jdbc.MariaDbStatement |
---|
batchQueries, canUseServerTimeout, closed, connection, fetchSize, lock, maxRows, mustCloseOnCompletion, options, protocol, queryTimeout, results, resultSetScrollType, timerTaskFuture, timerTaskRunnable, warningsCleared |
Fields inherited from interface java.sql.Statement |
---|
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
Constructor Summary | |
---|---|
MariaDbFunctionStatement(MariaDbConnection connection,
String databaseName,
String procedureName,
String arguments)
Specific implementation of CallableStatement to handle function call, represent by call like {? |
Method Summary | |
---|---|
MariaDbFunctionStatement |
clone(MariaDbConnection 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()
|
protected void |
setParameter(int parameterIndex,
ParameterHolder holder)
|
Methods inherited from class org.mariadb.jdbc.MariaDbPreparedStatementClient |
---|
addBatch, addBatch, clearBatch, clearParameters, close, executeBatch, executeInternal, executeInternalBatch, executeLargeBatch, getMetaData, getParameterCount, getPrepareResult, toString |
Methods inherited from class org.mariadb.jdbc.BasePrepareStatement |
---|
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, setInternalObject, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setNull, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.sql.PreparedStatement |
---|
addBatch, clearParameters, 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, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL |
Methods inherited from interface java.sql.Wrapper |
---|
isWrapperFor, unwrap |
Constructor Detail |
---|
public MariaDbFunctionStatement(MariaDbConnection connection, String databaseName, String procedureName, String arguments) throws SQLException
connection
- current connectiondatabaseName
- database nameprocedureName
- function namearguments
- function args
SQLException
- exceptionMethod Detail |
---|
protected SelectResultSet getResult() throws SQLException
getResult
in class CallableFunctionStatement
SQLException
public MariaDbFunctionStatement clone(MariaDbConnection connection) throws CloneNotSupportedException
clone
in interface CloneableCallableStatement
clone
in class CallableFunctionStatement
connection
- connection
CloneNotSupportedException
- if any error occur.public int executeUpdate() throws SQLException
executeUpdate
in interface PreparedStatement
executeUpdate
in class MariaDbPreparedStatementClient
SQLException
- if a database access error occurs; this method is called on a closed
PreparedStatement
or the SQL statement returns a
ResultSet
objectprotected void setParameter(int parameterIndex, ParameterHolder holder) throws SQLException
setParameter
in class MariaDbPreparedStatementClient
SQLException
public ResultSet executeQuery() throws SQLException
MariaDbPreparedStatementClient
PreparedStatement
object
and returns the ResultSet
object generated by the query.
executeQuery
in interface PreparedStatement
executeQuery
in class MariaDbPreparedStatementClient
ResultSet
object that contains the data produced by the
query; never null
SQLException
- 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
MariaDbPreparedStatementClient
PreparedStatement
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
in interface PreparedStatement
execute
in class MariaDbPreparedStatementClient
true
if the first result is a ResultSet
object; false
if the first result is an update
count or there is no result
SQLException
- 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |