| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | changeUser(String
DB user name user, String DB user password password, String database name database)Re-authenticates as the given user and password |
| public M | Returns: a message ready for reading.Read one message from the MySQL server, checks for errors in it, and if none, returns the message, ready for reading |
| public void | |
| public void | |
| public void | |
| public AuthenticationProvider | |
| public ExceptionInterceptor | |
| public InputStream | Returns: input streamReturns the InputStream instance that will be used to send data in response to a "LOAD DATA LOCAL INFILE" statement. |
| public MessageBuilder | |
| public PacketReceivedTimeHolder | |
| public PacketSentTimeHolder | |
| public PropertySet | |
| public String | |
| public ServerSession | |
| public SocketConnection | |
| public Supplier | |
| public void | init(Session session, SocketConnection socketConnection, PropertySet propertySet, TransactionEventHandler transactionManager)
Init method takes the place of constructor. |
| public void | |
| public void | |
| public <T extends ProtocolEntity> T | |
| public < object extending the T extends ProtocolEntity> TProtocolEntity | Returns: ProtocolEntity instancerequired Resultset class requiredClass, int the maximum number of rows to read (-1 means all rows) maxRows, boolean should the driver leave the results on the wire,
and read them only when needed? streamResults, M the first packet of information in the result set resultPacket, boolean true if the binary protocol is used (for server prepared statements) isBinaryEncoded, ColumnDefinition use this metadata instead of the one provided on wire metadata, ProtocolEntityFactory<T, M> ProtocolEntityFactory instanceRead protocol entity. |
| public M | Returns: the message from the server.Message instance to read into, may be nullRead one message from the MySQL server into the reusable buffer if provided or into the new one. |
| public ColumnDefinition | |
| public < result type T extends QueryResult> T | Returns: QueryResultResultBuilder instanceRead messages from server and deliver them to resultBuilder. |
| public ServerCapabilities | |
| public void | |
| public void | |
| public M | Returns: the response packet from the servera packet pre-loaded with data for the protocol (eg.
from a client-side prepared statement). The first byte of
this packet is the MySQL protocol 'command' from MysqlDefs queryPacket, boolean do not call checkErrorPacket() if true skipCheck, int timeout timeoutMillis)Send a command to the MySQL server. |
| public void | setLocalInfileInputStream(InputStream
input stream 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. |
| public void | |
| public void | |
| public void | |
| public boolean |
| afterHandshake | back to summary |
|---|---|
| public void afterHandshake() | |
| beforeHandshake | back to summary |
|---|---|
| public void beforeHandshake() | |
| changeDatabase | back to summary |
|---|---|
| public void changeDatabase(String database) | |
| changeUser | back to summary |
|---|---|
| public void changeUser(String user, String password, String database) Re-authenticates as the given user and password | |
| checkErrorMessage | back to summary |
|---|---|
| public M checkErrorMessage() Read one message from the MySQL server, checks for errors in it, and if none, returns the message, ready for reading
| |
| close | back to summary |
|---|---|
| public void close() throws IOException | |
| configureTimeZone | back to summary |
|---|---|
| public void configureTimeZone() | |
| connect | back to summary |
|---|---|
| public void connect(String user, String password, String database) Create a new session. This generally happens once at the beginning of a connection. | |
| getAuthenticationProvider | back to summary |
|---|---|
| public AuthenticationProvider | |
| getExceptionInterceptor | back to summary |
|---|---|
| public ExceptionInterceptor getExceptionInterceptor() | |
| getLocalInfileInputStream | back to summary |
|---|---|
| public InputStream getLocalInfileInputStream() Returns the InputStream instance that will be used to send data in response to a "LOAD DATA LOCAL INFILE" statement. This method returns NULL if no such stream has been set via setLocalInfileInputStream().
| |
| getMessageBuilder | back to summary |
|---|---|
| public MessageBuilder | |
| getPacketReceivedTimeHolder | back to summary |
|---|---|
| public PacketReceivedTimeHolder getPacketReceivedTimeHolder() | |
| getPacketSentTimeHolder | back to summary |
|---|---|
| public PacketSentTimeHolder getPacketSentTimeHolder() | |
| getPropertySet | back to summary |
|---|---|
| public PropertySet getPropertySet() | |
| getQueryTimingUnits | back to summary |
|---|---|
| public String getQueryTimingUnits() | |
| getServerSession | back to summary |
|---|---|
| public ServerSession getServerSession() | |
| getSocketConnection | back to summary |
|---|---|
| public SocketConnection getSocketConnection() | |
| getValueEncoderSupplier | back to summary |
|---|---|
| public Supplier | |
| init | back to summary |
|---|---|
| public void init(Session session, SocketConnection socketConnection, PropertySet propertySet, TransactionEventHandler transactionManager) Init method takes the place of constructor. A constructor should be used unless the encapsulation of ProtocolFactory is necessary.
| |
| initServerSession | back to summary |
|---|---|
| public void initServerSession() | |
| negotiateSSLConnection | back to summary |
|---|---|
| public void negotiateSSLConnection() | |
| read | back to summary |
|---|---|
| public <T extends ProtocolEntity> T read(Class<T> requiredClass, ProtocolEntityFactory<T, M> protocolEntityFactory) throws IOException | |
| read | back to summary |
|---|---|
| public <T extends ProtocolEntity> T read(Class<Resultset> requiredClass, int maxRows, boolean streamResults, M resultPacket, boolean isBinaryEncoded, ColumnDefinition metadata, ProtocolEntityFactory<T, M> protocolEntityFactory) throws IOException Read protocol entity.
| |
| readMessage | back to summary |
|---|---|
| public M readMessage(M reuse) Read one message from the MySQL server into the reusable buffer if provided or into the new one.
| |
| readMetadata | back to summary |
|---|---|
| public ColumnDefinition readMetadata() | |
| readQueryResult | back to summary |
|---|---|
| public <T extends QueryResult> T readQueryResult(ResultBuilder<T> resultBuilder) Read messages from server and deliver them to resultBuilder.
| |
| readServerCapabilities | back to summary |
|---|---|
| public ServerCapabilities readServerCapabilities() Retrieve ServerCapabilities from server. | |
| reset | back to summary |
|---|---|
| public void reset() Return Protocol to its initial state right after successful connect. | |
| send | back to summary |
|---|---|
| public void send(Message message, int packetLen) | |
| sendCommand | back to summary |
|---|---|
| public M sendCommand(Message queryPacket, boolean skipCheck, int timeoutMillis) Send a command to the MySQL server.
| |
| setLocalInfileInputStream | back to summary |
|---|---|
| public 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. This stream will be read to completion upon execution of a "LOAD DATA LOCAL INFILE" statement, and will automatically be closed by the driver, so it needs to be reset before each call to execute*() that would cause the MySQL server to request data to fulfill the request for "LOAD DATA LOCAL INFILE". If this value is set to NULL, the driver will revert to using a FileInputStream or URLInputStream as required.
| |
| setPacketReceivedTimeHolder | back to summary |
|---|---|
| public void setPacketReceivedTimeHolder(PacketReceivedTimeHolder packetReceivedTimeHolder) | |
| setPacketSentTimeHolder | back to summary |
|---|---|
| public void setPacketSentTimeHolder(PacketSentTimeHolder packetSentTimeHolder) | |
| setPropertySet | back to summary |
|---|---|
| public void setPropertySet(PropertySet propertySet) | |
| versionMeetsMinimum | back to summary |
|---|---|
| public boolean versionMeetsMinimum(int major, int minor, int subminor) | |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(Protocol.
ProtocolEventListener instance.Add listener for this protocol events. |
| public void | |
| public void | removeListener(Protocol.
ProtocolEventListener instance.Remove protocol listener. |
| addListener | back to summary |
|---|---|
| public void addListener(Protocol. Add listener for this protocol events.
| |
| invokeListeners | back to summary |
|---|---|
| public void invokeListeners(Protocol. | |
| removeListener | back to summary |
|---|---|
| public void removeListener(Protocol. Remove protocol listener.
| |
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| handleEvent | back to summary |
|---|---|
| public void handleEvent(Protocol. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Protocol. | |
| public static final Protocol. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Protocol. | |
| public static Protocol. |
| SERVER_CLOSED_SESSION | back to summary |
|---|---|
| public static final Protocol. | |
| SERVER_SHUTDOWN | back to summary |
|---|---|
| public static final Protocol. | |
| EventType | back to summary |
|---|---|
| private EventType() | |
| valueOf | back to summary |
|---|---|
| public static Protocol. | |
| values | back to summary |
|---|---|
| public static Protocol. | |