Enum QueryKind
- java.lang.Object
-
- java.lang.Enum<QueryKind>
-
- jetbrains.buildServer.serverSide.db.QueryKind
-
- All Implemented Interfaces:
Serializable
,Comparable<QueryKind>
public enum QueryKind extends Enum<QueryKind>
Kind of a SQL query.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DDL
Data definition language query - create/drop tables, columns, etc.DML
Data manipulation language query - insert, update, delete.NONE
This query is a comment or an empty space, so we even will not attempt to run it.SELECT
Read-only select query.TRAN
Transaction control commands.UNKNOWN
We could not determin the kind of the query.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueryKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final QueryKind NONE
This query is a comment or an empty space, so we even will not attempt to run it.
-
SELECT
public static final QueryKind SELECT
Read-only select query.
-
DML
public static final QueryKind DML
Data manipulation language query - insert, update, delete.
-
DDL
public static final QueryKind DDL
Data definition language query - create/drop tables, columns, etc.
-
TRAN
public static final QueryKind TRAN
Transaction control commands.
-
UNKNOWN
public static final QueryKind UNKNOWN
We could not determin the kind of the query. Sorry, baby
-
-
Method Detail
-
values
public static QueryKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QueryKind c : QueryKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-