- java.lang.Object
-
- java.lang.Enum<DbStatementType>
-
- io.helidon.dbclient.DbStatementType
-
- All Implemented Interfaces:
Serializable
,Comparable<DbStatementType>
public enum DbStatementType extends Enum<DbStatementType>
Usual supported statement types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMAND
Database command not related to a specific collection.DELETE
Delete is a statement that deletes existing records.DML
Generic DML statement.GET
Get is a statement that returns zero or one results.INSERT
Insert is a statements that creates new records.QUERY
Query is statement that returns zero or more results.UPDATE
Update is a statement that updates existing records.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
prefix()
Short prefix of this type.static DbStatementType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DbStatementType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUERY
public static final DbStatementType QUERY
Query is statement that returns zero or more results.
-
GET
public static final DbStatementType GET
Get is a statement that returns zero or one results.
-
INSERT
public static final DbStatementType INSERT
Insert is a statements that creates new records.
-
UPDATE
public static final DbStatementType UPDATE
Update is a statement that updates existing records.
-
DELETE
public static final DbStatementType DELETE
Delete is a statement that deletes existing records.
-
DML
public static final DbStatementType DML
Generic DML statement.
-
COMMAND
public static final DbStatementType COMMAND
Database command not related to a specific collection.
-
-
Method Detail
-
values
public static DbStatementType[] 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 (DbStatementType c : DbStatementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DbStatementType 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
-
prefix
public String prefix()
Short prefix of this type. This is used when generating a name for an unnamed statement.- Returns:
- short prefix defining this type (should be very short)
-
-