Package com.mckoi.database.jdbc
Interface ProtocolConstants
public interface ProtocolConstants
Constants used in the JDBC database communication protocol.
- Author:
- Tobias Downer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Sent as an acknowledgement to a command.static final int
There was an authentication error.static final int
Closes the protocol stream.static final int
Denotes an event from the database (trigger, etc).static final int
Disposes the server-side resources associated with a result.static final int
Disposes of the resources associated with a streamable object on the server.static final int
Operation threw an exception.static final int
Operation failed (followed by a UTF String error message).static final int
Ping command.static final int
For pushing a part of a streamable object onto the server from the client.static final int
Query sent to the server for processing.static final int
Requests a section of a result from the server.static final int
Denotes a server side request for information.static final int
Requests a section of a streamable object from the server.static final int
Operation was successful.static final int
Sent if login failed because username or password were invalid.static final int
Sent if login passed.
-
Field Details
-
ACKNOWLEDGEMENT
static final int ACKNOWLEDGEMENTSent as an acknowledgement to a command.- See Also:
-
USER_AUTHENTICATION_PASSED
static final int USER_AUTHENTICATION_PASSEDSent if login passed.- See Also:
-
USER_AUTHENTICATION_FAILED
static final int USER_AUTHENTICATION_FAILEDSent if login failed because username or password were invalid.- See Also:
-
SUCCESS
static final int SUCCESSOperation was successful.- See Also:
-
FAILED
static final int FAILEDOperation failed (followed by a UTF String error message).- See Also:
-
EXCEPTION
static final int EXCEPTIONOperation threw an exception.- See Also:
-
AUTHENTICATION_ERROR
static final int AUTHENTICATION_ERRORThere was an authentication error. A query couldn't be executed because the user does not have enough rights.- See Also:
-
QUERY
static final int QUERYQuery sent to the server for processing.- See Also:
-
DISPOSE_RESULT
static final int DISPOSE_RESULTDisposes the server-side resources associated with a result.- See Also:
-
RESULT_SECTION
static final int RESULT_SECTIONRequests a section of a result from the server.- See Also:
-
STREAMABLE_OBJECT_SECTION
static final int STREAMABLE_OBJECT_SECTIONRequests a section of a streamable object from the server.- See Also:
-
DISPOSE_STREAMABLE_OBJECT
static final int DISPOSE_STREAMABLE_OBJECTDisposes of the resources associated with a streamable object on the server.- See Also:
-
PUSH_STREAMABLE_OBJECT_PART
static final int PUSH_STREAMABLE_OBJECT_PARTFor pushing a part of a streamable object onto the server from the client.- See Also:
-
PING
static final int PINGPing command.- See Also:
-
CLOSE
static final int CLOSECloses the protocol stream.- See Also:
-
DATABASE_EVENT
static final int DATABASE_EVENTDenotes an event from the database (trigger, etc).- See Also:
-
SERVER_REQUEST
static final int SERVER_REQUESTDenotes a server side request for information. For example, a request for a part of a streamable object.- See Also:
-