Enum PostgreSQLCommand
java.lang.Object
java.lang.Enum<PostgreSQLCommand>
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.PostgreSQLCommand
- All Implemented Interfaces:
Serializable,Comparable<PostgreSQLCommand>,java.lang.constant.Constable
PostgreSQL command.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<PostgreSQLCommand>valueOf(Class<? extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement> sqlStatementClass) Value of PostgreSQL command via SQL statement class.static PostgreSQLCommandReturns the enum constant of this type with the specified name.static PostgreSQLCommand[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SELECT
-
INSERT
-
UPDATE
-
DELETE
-
CALL
-
DO
-
ANALYZE
-
VACUUM
-
ALTER_FUNCTION
-
ALTER_INDEX
-
ALTER_PROCEDURE
-
ALTER_SCHEMA
-
ALTER_SEQUENCE
-
ALTER_TABLESPACE
-
ALTER_TABLE
-
ALTER_VIEW
-
CREATE_DATABASE
-
CREATE_FUNCTION
-
CREATE_INDEX
-
CREATE_PROCEDURE
-
CREATE_SCHEMA
-
CREATE_SEQUENCE
-
CREATE_TABLESPACE
-
CREATE_TABLE
-
CREATE_VIEW
-
DROP_DATABASE
-
DROP_FUNCTION
-
DROP_INDEX
-
DROP_PROCEDURE
-
DROP_SCHEMA
-
DROP_SEQUENCE
-
DROP_TABLESPACE
-
DROP_TABLE
-
DROP_VIEW
-
TRUNCATE_TABLE
-
BEGIN
-
START_TRANSACTION
-
COMMIT
-
SAVEPOINT
-
ROLLBACK
-
RELEASE
-
SET
-
RESET
-
DECLARE_CURSOR
-
MOVE
-
CLOSE_CURSOR
-
SUCCESS
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
valueOf
public static Optional<PostgreSQLCommand> valueOf(Class<? extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement> sqlStatementClass) Value of PostgreSQL command via SQL statement class.- Parameters:
sqlStatementClass- SQL statement class- Returns:
- PostgreSQL command
-