public final class SQLQueryType
extends java.lang.Enum
Title: SQL Query Type
Description: Enumerates possible sql query types such as SELECT, INSERT, etc
Copyright: Copyright (c) 2008
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static SQLQueryType |
CALL |
static SQLQueryType |
CALL_WITH_RETURN |
static SQLQueryType |
DELETE |
static SQLQueryType |
DYNAMIC |
static SQLQueryType |
INSERT |
static SQLQueryType |
SELECT |
static SQLQueryType |
UPDATE |
Modifier and Type | Method and Description |
---|---|
static SQLQueryType |
determineType(java.lang.String sqlScript)
Tries to determine sql query type
|
int |
getId()
Returns type id
|
java.lang.String |
getName()
Returns type name
|
static SQLQueryType |
getTypeById(int id)
Returns type by its id
|
static SQLQueryType |
getTypeByName(java.lang.String name)
Returns type by its name
|
boolean |
isCallable()
Returns callable flag
|
static boolean |
isCallable(int id)
Returns
TRUE if type by given id is callable |
static SQLQueryType |
valueOf(java.lang.String name) |
static SQLQueryType[] |
values() |
public static final SQLQueryType SELECT
public static final SQLQueryType INSERT
public static final SQLQueryType UPDATE
public static final SQLQueryType DELETE
public static final SQLQueryType CALL
public static final SQLQueryType CALL_WITH_RETURN
public static final SQLQueryType DYNAMIC
public static SQLQueryType[] values()
public static SQLQueryType valueOf(java.lang.String name)
public static SQLQueryType determineType(java.lang.String sqlScript)
sqlScript
- sql script holds sql query which type will be determinedNULL
if try failspublic static boolean isCallable(int id)
TRUE
if type by given id is callableid
- type idTRUE
if type by given id is callablepublic static SQLQueryType getTypeById(int id)
id
- type idNULL
if id is incorrectpublic static SQLQueryType getTypeByName(java.lang.String name)
name
- type nameNULL
type not foundpublic int getId()
public java.lang.String getName()
public boolean isCallable()
TRUE
if this type is callableCopyright © 2015-2024 StreamScape Technologies. All rights reserved.