|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.common.sql.RequestType
Defines static types values for request. This class publicizes internal implementation details (like bitmasks for instance) and importing it should be avoided as far as possible. Use public methods from AbstractRequest instead.
Field Summary | |
static int |
ALTER
Value for an alter request type |
static int |
CACHEABLE
Type value for cacheable request. |
static int |
CREATE
Value for a create request type |
static int |
DELETE
Value for a delete request type |
static int |
DROP
Value for a drop request type |
static int |
INSERT
Value for an insert request type |
static int |
SELECT
Value for a select request type |
static int |
STORED_PROCEDURE
Value for a stored procedure request type |
static int |
UNCACHEABLE
Type value for uncacheable request. |
static int |
UNDEFINED
Value for an undefined request type |
static int |
UNIQUE_CACHEABLE
Type value for cacheable request that are not affected by an INSERT (select based on a primary key for example). |
static int |
UPDATE
Value for an update request type |
Constructor Summary | |
RequestType()
|
Method Summary | |
static java.lang.String |
getInformation(int type)
Returns the request type in a String form. |
static int |
getRequestType(AbstractRequest request)
Returns the type of the request (internal implementation, subject to change). |
(package private) static boolean |
isAlter(int requestType)
Returns true if the request type is an ALTER
statement. |
(package private) static boolean |
isCreate(int requestType)
Returns true if the request type is a CREATE
statement. |
(package private) static boolean |
isDDL(int requestType)
Returns true if this request is a DDL (Data Definition
Language) statement such as CREATE, ALTER or DROP. |
(package private) static boolean |
isDelete(int requestType)
Returns true if the request type is a DELETE
statement. |
(package private) static boolean |
isDML(int requestType)
Returns true if this request is a DML (Data Manipulation
Language) statement such SELECT, INSERT, UPDATE or DELETE (see
http://www.orafaq.com/faq/Server_Utilities/SQL/faq53.htm)
Note that stored procedures are both considered as DDL and DML as they can
include both. |
(package private) static boolean |
isDrop(int requestType)
Returns true if the request type is a DROP
statement. |
(package private) static boolean |
isInsert(int requestType)
Returns true if the request type is an INSERT
statement. |
(package private) static boolean |
isSelect(int requestType)
Returns true if the request type is a SELECT
statement. |
(package private) static boolean |
isStoredProcedure(int requestType)
Returns true if the request type is a
STORED_PROCEDURE statement. |
(package private) static boolean |
isUpdate(int requestType)
Returns true if the request type is an UPDATE
statement. |
(package private) static void |
setRequestType(AbstractRequest request,
int type)
Sets the requestType value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CACHEABLE
public static final int UNCACHEABLE
public static final int UNIQUE_CACHEABLE
INSERT
(select based on a primary key for example).
public static final int UNDEFINED
public static final int DELETE
public static final int INSERT
public static final int UPDATE
public static final int SELECT
public static final int STORED_PROCEDURE
public static final int CREATE
public static final int ALTER
public static final int DROP
Constructor Detail |
public RequestType()
Method Detail |
static boolean isDDL(int requestType)
true
if this request is a DDL (Data Definition
Language) statement such as CREATE, ALTER or DROP. Not supported yet are:
TRUNCATE, COMMENT, GRANT and REVOKE (see
http://www.orafaq.com/faq/Server_Utilities/SQL/faq53.htm)
Note that stored procedures are both considered as DDL and DML as they can include both.
requestType
- the request type
static boolean isDML(int requestType)
true
if this request is a DML (Data Manipulation
Language) statement such SELECT, INSERT, UPDATE or DELETE (see
http://www.orafaq.com/faq/Server_Utilities/SQL/faq53.htm)
Note that stored procedures are both considered as DDL and DML as they can include both.
requestType
- the request type
static boolean isDelete(int requestType)
true
if the request type is a DELETE
statement.
requestType
- the request type
DELETE
statementstatic boolean isInsert(int requestType)
true
if the request type is an INSERT
statement.
requestType
- the request type
INSERT
statementstatic boolean isUpdate(int requestType)
true
if the request type is an UPDATE
statement.
requestType
- the request type
UPDATE
statementstatic boolean isDrop(int requestType)
true
if the request type is a DROP
statement.
requestType
- the request type
DROP
statementstatic boolean isCreate(int requestType)
true
if the request type is a CREATE
statement.
requestType
- the request type
CREATE
statementstatic boolean isAlter(int requestType)
true
if the request type is an ALTER
statement.
requestType
- the request type
ALTER
statementstatic boolean isSelect(int requestType)
true
if the request type is a SELECT
statement.
requestType
- the request type
SELECT
statementstatic boolean isStoredProcedure(int requestType)
true
if the request type is a
STORED_PROCEDURE
statement.
requestType
- the request type
STORED_PROCEDURE
statementpublic static int getRequestType(AbstractRequest request)
request
- the request to get the type from
static void setRequestType(AbstractRequest request, int type)
public static java.lang.String getInformation(int type)
String
form.
type
- the request type
String
form of the request type
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |