Package org.mariadb.jdbc.client
Interface Client
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ClientImpl
,ClientReplayImpl
,MultiPrimaryClient
,MultiPrimaryReplicaClient
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
void
closePrepare
(PrepareResultPacket prepare) execute
(ClientMessage message) execute
(ClientMessage message, Statement stmt) execute
(ClientMessage message, Statement stmt, int fetchSize, long maxRows, int resultSetConcurrency, int resultSetType, boolean closeOnCompletion) executePipeline
(ClientMessage[] messages, Statement stmt, int fetchSize, long maxRows, int resultSetConcurrency, int resultSetType, boolean closeOnCompletion) int
int
boolean
isClosed()
boolean
void
readStreamingResults
(List<Completion> completions, int fetchSize, long maxRows, int resultSetConcurrency, int resultSetType, boolean closeOnCompletion) void
reset()
void
setReadOnly
(boolean readOnly) void
setSocketTimeout
(int milliseconds)
-
Method Details
-
execute
- Throws:
SQLException
-
execute
- Throws:
SQLException
-
execute
List<Completion> execute(ClientMessage message, Statement stmt, int fetchSize, long maxRows, int resultSetConcurrency, int resultSetType, boolean closeOnCompletion) throws SQLException - Throws:
SQLException
-
executePipeline
List<Completion> executePipeline(ClientMessage[] messages, Statement stmt, int fetchSize, long maxRows, int resultSetConcurrency, int resultSetType, boolean closeOnCompletion) throws SQLException - Throws:
SQLException
-
readStreamingResults
void readStreamingResults(List<Completion> completions, int fetchSize, long maxRows, int resultSetConcurrency, int resultSetType, boolean closeOnCompletion) throws SQLException - Throws:
SQLException
-
closePrepare
- Throws:
SQLException
-
abort
- Throws:
SQLException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
SQLException
-
setReadOnly
- Throws:
SQLException
-
getWaitTimeout
int getWaitTimeout() -
getSocketTimeout
int getSocketTimeout() -
setSocketTimeout
- Throws:
SQLException
-
isClosed
boolean isClosed() -
reset
void reset() -
isPrimary
boolean isPrimary() -
getContext
Context getContext() -
getExceptionFactory
ExceptionFactory getExceptionFactory() -
getHostAddress
HostAddress getHostAddress()
-