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 intSent as an acknowledgement to a command.static final intThere was an authentication error.static final intCloses the protocol stream.static final intDenotes an event from the database (trigger, etc).static final intDisposes the server-side resources associated with a result.static final intDisposes of the resources associated with a streamable object on the server.static final intOperation threw an exception.static final intOperation failed (followed by a UTF String error message).static final intPing command.static final intFor pushing a part of a streamable object onto the server from the client.static final intQuery sent to the server for processing.static final intRequests a section of a result from the server.static final intDenotes a server side request for information.static final intRequests a section of a streamable object from the server.static final intOperation was successful.static final intSent if login failed because username or password were invalid.static final intSent 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:
-