Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.driver.protocol.Commands Class Reference

List of all members.

Static Public Attributes

final int ProtocolVersion = 15
final int ExecReadRequest = 0
final int ExecWriteRequest = 1
final int ExecWriteRequestWithKeys = 2
final int ExecReadStoredProcedure = 3
final int ExecWriteStoredProcedure = 4
final int CreateRequest = 5
final int DeleteRequest = 6
final int DropRequest = 7
final int InsertRequest = 8
final int UpdateRequest = 9
final int AlterRequest = 10
final int Begin = 20
final int Commit = 21
final int Rollback = 22
final int Close = 30
final int Reset = 31
final int FetchNextResultSetRows = 32
final int CloseRemoteResultSet = 33
final int RestoreConnectionState = 34
final int SetAutoCommit = 35
final int ConnectionGetCatalog = 36
final int ConnectionGetCatalogs = 37
final int ConnectionSetCatalog = 38
final int GetVirtualDatabaseName = 50
final int GetControllerVersionNumber = 51
final int DatabaseMetaDataGetTables = 52
final int DatabaseMetaDataGetColumns = 53
final int DatabaseMetaDataGetPrimaryKeys = 54
final int DatabaseMetaDataGetProcedures = 55
final int DatabaseMetaDataGetProcedureColumns = 56
final int DatabaseMetaDataGetTableTypes = 58
final int DatabaseMetaDataGetTablePrivileges = 59
final int DatabaseMetaDataGetSchemas = 60
final int DatabaseMetaDataGetDatabaseProductName = 61
final int DatabaseStaticMetadata = 62

Detailed Description

Commands used by the protocol between the C-JDBC driver and controller.

Author:
Emmanuel Cecchet

Nicolas Modrzyk *

Version:
1.0

Definition at line 34 of file Commands.java.


Member Data Documentation

final int org.objectweb.cjdbc.driver.protocol.Commands.AlterRequest = 10 [static]
 

Alter Request. This is used when sending a write request from the driver to the database worker thread

Definition at line 113 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.Begin = 20 [static]
 

Begins a new transaction and returns the corresponding transaction identifier. This method is called from the driver when org.objectweb.cjdbc.driver.Connection#setAutoCommit(boolean)is called with false argument.

See also:
org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.begin(String)

Definition at line 127 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.Close = 30 [static]
 

Close the connection

Definition at line 150 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.CloseRemoteResultSet = 33 [static]
 

Closes a remote ResultSet that was opened for streaming.

Definition at line 165 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.Commit = 21 [static]
 

Commits a transaction given its id.

See also:
org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.commit(long)

Definition at line 134 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.ConnectionGetCatalog = 36 [static]
 

Retrieve the current catalog

See also:
org.objectweb.cjdbc.driver.Connection.getCatalog()

Definition at line 183 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.ConnectionGetCatalogs = 37 [static]
 

Retrieve the current catalog

See also:
org.objectweb.cjdbc.driver.Connection.getCatalogs()

Definition at line 190 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.ConnectionSetCatalog = 38 [static]
 

Change the current connection catalog

See also:
org.objectweb.cjdbc.driver.Connection.setCatalog(String)

Definition at line 197 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.CreateRequest = 5 [static]
 

Create Request. This is used when sending a write request from the driver to the database worker thread

Definition at line 87 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DatabaseMetaDataGetColumns = 53 [static]
 

Used to get the schema columns by calling DatabaseMetaData.getColumns()

See also:
org.objectweb.cjdbc.driver.DatabaseMetaData.getColumns(String, String, String, String)

Definition at line 231 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DatabaseMetaDataGetDatabaseProductName = 61 [static]
 

Retrieve the list of database product names

See also:
org.objectweb.cjdbc.driver.DatabaseMetaData.getDatabaseProductName()

Definition at line 287 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DatabaseMetaDataGetPrimaryKeys = 54 [static]
 

Used to get the schema primary keys by calling DatabaseMetaData.getColumns()

See also:
org.objectweb.cjdbc.driver.DatabaseMetaData.getPrimaryKeys(String, String, String)

Definition at line 240 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DatabaseMetaDataGetProcedureColumns = 56 [static]
 

Used to get the schema procedure columns by calling DatabaseMetaData.getProcedureColumns()

See also:
org.objectweb.cjdbc.driver.DatabaseMetaData.getProcedureColumns(String, String, String, String)

Definition at line 258 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DatabaseMetaDataGetProcedures = 55 [static]
 

Used to get the schema procedures by calling DatabaseMetaData.getProcedures()

See also:
org.objectweb.cjdbc.driver.DatabaseMetaData.getProcedures(String, String, String)

Definition at line 249 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DatabaseMetaDataGetSchemas = 60 [static]
 

Retrieve the schemas

See also:
org.objectweb.cjdbc.driver.DatabaseMetaData.getSchemas()

Definition at line 280 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DatabaseMetaDataGetTablePrivileges = 59 [static]
 

Retrieve the table privileges

See also:
org.objectweb.cjdbc.driver.DatabaseMetaData.getTablePrivileges(String, String, String)

Definition at line 273 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DatabaseMetaDataGetTables = 52 [static]
 

Used to get the schema tables by calling DatabaseMetaData.getTables()

See also:
org.objectweb.cjdbc.driver.DatabaseMetaData.getTables(String, String, String, String[])

Definition at line 223 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DatabaseMetaDataGetTableTypes = 58 [static]
 

Retrieve the database table types

See also:
org.objectweb.cjdbc.driver.DatabaseMetaData.getTableTypes()

Definition at line 265 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DatabaseStaticMetadata = 62 [static]
 

Retrieve an object containing all the static metadata. This includes all the boolean values collected from an underlying backend to the controller.

Definition at line 293 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DeleteRequest = 6 [static]
 

Delete Request. This is used when sending a write request from the driver to the database worker thread

Definition at line 92 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.DropRequest = 7 [static]
 

Drop Request. This is used when sending a write request from the driver to the database worker thread

Definition at line 97 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.ExecReadRequest = 0 [static]
 

Performs a read request and returns the reply.

See also:
org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.execReadRequest(org.objectweb.cjdbc.common.sql.SelectRequest)

Definition at line 52 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.ExecReadStoredProcedure = 3 [static]
 

Calls a stored procedure and returns the reply (ResultSet).

See also:
org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.execReadStoredProcedure(org.objectweb.cjdbc.common.sql.StoredProcedure)

Definition at line 73 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.ExecWriteRequest = 1 [static]
 

Performs a write request and returns the number of rows affected.

See also:
org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.execWriteRequest(org.objectweb.cjdbc.common.sql.AbstractWriteRequest)

Definition at line 59 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.ExecWriteRequestWithKeys = 2 [static]
 

Performs a write request and returns the auto generated keys.

See also:
org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.execWriteRequestWithKeys(org.objectweb.cjdbc.common.sql.AbstractWriteRequest)

Definition at line 66 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.ExecWriteStoredProcedure = 4 [static]
 

Calls a stored procedure and returns the number of rows affected (write query).

See also:
org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.execReadStoredProcedure(org.objectweb.cjdbc.common.sql.StoredProcedure)

Definition at line 81 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.FetchNextResultSetRows = 32 [static]
 

Fetch next rows of data for ResultSet streaming

Definition at line 160 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.GetControllerVersionNumber = 51 [static]
 

Gets the controller version number.

See also:
org.objectweb.cjdbc.controller.core.Controller.getVersionNumber()

Definition at line 215 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.GetVirtualDatabaseName = 50 [static]
 

Gets the virtual database name to be used by the client (C-JDBC driver).

See also:
org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.getVirtualDatabaseName()

Definition at line 208 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.InsertRequest = 8 [static]
 

Insert Request. This is used when sending a write request from the driver to the database worker thread

Definition at line 102 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.ProtocolVersion = 15 [static]
 

Protocol version to check that driver is compatible with controller. Increase this number each time the exchange protocol changes between driver and controller.

Definition at line 41 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.Reset = 31 [static]
 

Reset the connection

Definition at line 155 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.RestoreConnectionState = 34 [static]
 

Restore a connection state after an automatic reconnection.

Definition at line 170 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.Rollback = 22 [static]
 

Rollbacks a transaction given its id.

See also:
org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.rollback(long)

Definition at line 141 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.SetAutoCommit = 35 [static]
 

Command to change the autocommit value from false to true. We want to commit the current transaction but we don't want to start a new one.

Definition at line 176 of file Commands.java.

final int org.objectweb.cjdbc.driver.protocol.Commands.UpdateRequest = 9 [static]
 

Update Request. This is used when sending a write request from the driver to the database worker thread

Definition at line 107 of file Commands.java.


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:05:08 2005 for C-JDBC by  doxygen 1.3.9.1