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

org.objectweb.cjdbc.common.sql.RequestType Class Reference

List of all members.

Static Public Member Functions

String getInformation (int type)

Static Public Attributes

final int CACHEABLE = 0
final int UNCACHEABLE = 1
final int UNIQUE_CACHEABLE = 2

Detailed Description

Defines static types values for request.

Author:
Emmanuel Cecchet

Mathieu Peltier

Version:
1.0

Definition at line 34 of file RequestType.java.


Member Function Documentation

String org.objectweb.cjdbc.common.sql.RequestType.getInformation int  type  )  [static]
 

Returns the request type in a String form.

Parameters:
type the request type
Returns:
the String form of the request type

Definition at line 54 of file RequestType.java.

00055   {
00056     switch (type)
00057     {
00058       case RequestType.CACHEABLE :
00059         return "CACHEABLE";
00060       case RequestType.UNCACHEABLE :
00061         return "UNCACHEABLE";
00062       case RequestType.UNIQUE_CACHEABLE :
00063         return "UNIQUE_CACHEABLE";
00064       default :
00065         return "Illegal request type";
00066     }
00067   }


Member Data Documentation

final int org.objectweb.cjdbc.common.sql.RequestType.CACHEABLE = 0 [static]
 

Type value for cacheable request.

Definition at line 37 of file RequestType.java.

final int org.objectweb.cjdbc.common.sql.RequestType.UNCACHEABLE = 1 [static]
 

Type value for uncacheable request.

Definition at line 40 of file RequestType.java.

final int org.objectweb.cjdbc.common.sql.RequestType.UNIQUE_CACHEABLE = 2 [static]
 

Type value for cacheable request that are not affected by an INSERT (select based on a primary key for example).

Definition at line 46 of file RequestType.java.


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