org.objectweb.cjdbc.driver.protocol
Class Commands

java.lang.Object
  extended byorg.objectweb.cjdbc.driver.protocol.Commands

public class Commands
extends java.lang.Object

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

Version:
1.0
Author:
Emmanuel Cecchet, Nicolas Modrzyk *

Field Summary
static int Begin
          Begins a new transaction and returns the corresponding transaction identifier.
static int Close
          Close the connection
static int Commit
          Commits a transaction given its id.
static int DatabaseMetaDataGetColumns
          Used to get the schema columns by calling DatabaseMetaData.getColumns()
static int DatabaseMetaDataGetPrimaryKeys
          Used to get the schema primary keys by calling DatabaseMetaData.getColumns()
static int DatabaseMetaDataGetProcedureColumns
          Used to get the schema procedure columns by calling DatabaseMetaData.getProcedureColumns()
static int DatabaseMetaDataGetProcedures
          Used to get the schema procedures by calling DatabaseMetaData.getProcedures()
static int DatabaseMetaDataGetTables
          Used to get the schema tables by calling DatabaseMetaData.getTables()
static int ExecReadRequest
          Performs a read request and returns the reply.
static int ExecReadStoredProcedure
          Calls a stored procedure and returns the reply (ResultSet).
static int ExecWriteRequest
          Performs a write request and returns the number of rows affected.
static int ExecWriteRequestWithKeys
          Performs a write request and returns the auto generated keys.
static int ExecWriteStoredProcedure
          Calls a stored procedure and returns the number of rows affected (write query).
static int GetControllerVersionNumber
          Gets the controller version number.
static int GetVirtualDatabaseName
          Gets the virtual database name to be used by the client (C-JDBC driver).
static int Reset
          Reset the connection
static int Rollback
          Rollbacks a transaction given its id.
 
Constructor Summary
Commands()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ExecReadRequest

public static final int ExecReadRequest
Performs a read request and returns the reply.

See Also:
VirtualDatabase.execReadRequest(SelectRequest), Constant Field Values

ExecWriteRequest

public static final int ExecWriteRequest
Performs a write request and returns the number of rows affected.

See Also:
VirtualDatabase.execWriteRequest(AbstractWriteRequest), Constant Field Values

ExecWriteRequestWithKeys

public static final int ExecWriteRequestWithKeys
Performs a write request and returns the auto generated keys.

See Also:
VirtualDatabase.execWriteRequestWithKeys(AbstractWriteRequest), Constant Field Values

ExecReadStoredProcedure

public static final int ExecReadStoredProcedure
Calls a stored procedure and returns the reply (ResultSet).

See Also:
VirtualDatabase.execReadStoredProcedure(StoredProcedure), Constant Field Values

ExecWriteStoredProcedure

public static final int ExecWriteStoredProcedure
Calls a stored procedure and returns the number of rows affected (write query).

See Also:
VirtualDatabase.execReadStoredProcedure(StoredProcedure), Constant Field Values

Begin

public static final int Begin
Begins a new transaction and returns the corresponding transaction identifier. This method is called from the driver when Connection.setAutoCommit(boolean)is called with false argument.

See Also:
VirtualDatabase.begin(String), Constant Field Values

Commit

public static final int Commit
Commits a transaction given its id.

See Also:
VirtualDatabase.commit(int), Constant Field Values

Rollback

public static final int Rollback
Rollbacks a transaction given its id.

See Also:
VirtualDatabase.rollback(int), Constant Field Values

Close

public static final int Close
Close the connection

See Also:
Constant Field Values

Reset

public static final int Reset
Reset the connection

See Also:
Constant Field Values

DatabaseMetaDataGetTables

public static final int DatabaseMetaDataGetTables
Used to get the schema tables by calling DatabaseMetaData.getTables()

See Also:
DatabaseMetaData.getTables(String, String, String, String[]), Constant Field Values

GetVirtualDatabaseName

public static final int GetVirtualDatabaseName
Gets the virtual database name to be used by the client (C-JDBC driver).

See Also:
VirtualDatabase.getVirtualDatabaseName(), Constant Field Values

GetControllerVersionNumber

public static final int GetControllerVersionNumber
Gets the controller version number.

See Also:
Controller.getVersionNumber(), Constant Field Values

DatabaseMetaDataGetColumns

public static final int DatabaseMetaDataGetColumns
Used to get the schema columns by calling DatabaseMetaData.getColumns()

See Also:
DatabaseMetaData.getColumns(String, String, String, String), Constant Field Values

DatabaseMetaDataGetPrimaryKeys

public static final int DatabaseMetaDataGetPrimaryKeys
Used to get the schema primary keys by calling DatabaseMetaData.getColumns()

See Also:
DatabaseMetaData.getPrimaryKeys(String, String, String), Constant Field Values

DatabaseMetaDataGetProcedures

public static final int DatabaseMetaDataGetProcedures
Used to get the schema procedures by calling DatabaseMetaData.getProcedures()

See Also:
DatabaseMetaData.getProcedures(String, String, String), Constant Field Values

DatabaseMetaDataGetProcedureColumns

public static final int DatabaseMetaDataGetProcedureColumns
Used to get the schema procedure columns by calling DatabaseMetaData.getProcedureColumns()

See Also:
DatabaseMetaData.getProcedureColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String), Constant Field Values
Constructor Detail

Commands

public Commands()


Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.