public interface JdbcStatement extends Statement, Query
Query.CancelStatus| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_ROWS |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Modifier and Type | Method and Description |
|---|---|
void |
clearAttributes() |
void |
disableStreamingResults()
Resets this statements fetch size and result set type to the values
they had before enableStreamingResults() was called.
|
void |
enableStreamingResults()
Workaround for containers that 'check' for sane values of
Statement.setFetchSize() so that applications can use
the Java variant of libmysql's mysql_use_result() behavior.
|
ExceptionInterceptor |
getExceptionInterceptor() |
InputStream |
getLocalInfileInputStream()
Returns the InputStream instance that will be used to send
data in response to a "LOAD DATA LOCAL INFILE" statement.
|
int |
getOpenResultSetCount()
Returns the number of open result sets for this statement.
|
Query |
getQuery() |
ResultSetInternalMethods |
getResultSetInternal() |
void |
removeOpenResultSet(ResultSetInternalMethods rs)
Callback for result set instances to remove them from the Set that
tracks them per-statement
|
void |
setAttribute(String name,
Object value) |
void |
setHoldResultsOpenOverClose(boolean holdResultsOpenOverClose) |
void |
setLocalInfileInputStream(InputStream stream)
Sets an InputStream instance that will be used to send data
to the MySQL server for a "LOAD DATA LOCAL INFILE" statement
rather than a FileInputStream or URLInputStream that represents
the path given as an argument to the statement.
|
void |
setPingTarget(PingTarget pingTarget) |
addBatch, 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, unwrapaddBatch, checkCancelTimeout, clearBatchedArgs, closeQuery, getBatchedArgs, getCancelTimeoutMutex, getCurrentDatabase, getExecuteTime, getId, getQueryAttributesBindings, getResultFetchSize, getResultSetFactory, getResultType, getSession, getStatementExecuting, getTimeoutInMillis, isClearWarningsCalled, resetCancelledState, setCancelStatus, setClearWarningsCalled, setCurrentDatabase, setExecuteTime, setResultFetchSize, setResultType, setTimeoutInMillis, startQueryTimer, statementBegins, stopQueryTimerstatic final int MAX_ROWS
void enableStreamingResults()
throws SQLException
SQLException - if an error occursvoid disableStreamingResults()
throws SQLException
SQLException - if an error occursvoid setLocalInfileInputStream(InputStream stream)
stream - input streamInputStream getLocalInfileInputStream()
void setPingTarget(PingTarget pingTarget)
ExceptionInterceptor getExceptionInterceptor()
void removeOpenResultSet(ResultSetInternalMethods rs)
rs - result setint getOpenResultSetCount()
void setHoldResultsOpenOverClose(boolean holdResultsOpenOverClose)
Query getQuery()
void clearAttributes()
ResultSetInternalMethods getResultSetInternal()