public enum SFStatementType extends Enum<SFStatementType>
| Enum Constant and Description |
|---|
ALTER_SESSION |
COPY |
DDL
Data Definition Language
|
DELETE |
DESCRIBE |
DML
Data Manipulation Language
|
GET
Stage-related commands (other than LIST)
|
INSERT |
LIST |
MERGE |
MULTI_INSERT |
PUT |
RECLUSTER |
REMOVE |
SCL
System Command Language (USE, DESCRIBE etc)
|
SELECT |
SHOW |
TCL
Transaction Command Language (COMMIT, ROLLBACK)
|
UNKNOWN
By default we set query will generate result set, which means executeUpdate will throw
exception.
|
UNLOAD |
UPDATE |
USE |
USE_DATABASE |
USE_SCHEMA |
USE_WAREHOUSE |
| Modifier and Type | Method and Description |
|---|---|
long |
getStatementTypeId() |
boolean |
isDDL() |
boolean |
isDML() |
boolean |
isGenerateResultSet() |
boolean |
isSCL() |
boolean |
isSelect() |
boolean |
isTCL() |
static SFStatementType |
lookUpTypeById(long id) |
static SFStatementType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SFStatementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SFStatementType UNKNOWN
public static final SFStatementType SELECT
public static final SFStatementType DML
public static final SFStatementType INSERT
public static final SFStatementType UPDATE
public static final SFStatementType DELETE
public static final SFStatementType MERGE
public static final SFStatementType MULTI_INSERT
public static final SFStatementType COPY
public static final SFStatementType UNLOAD
public static final SFStatementType RECLUSTER
public static final SFStatementType SCL
public static final SFStatementType ALTER_SESSION
public static final SFStatementType USE
public static final SFStatementType USE_DATABASE
public static final SFStatementType USE_SCHEMA
public static final SFStatementType USE_WAREHOUSE
public static final SFStatementType SHOW
public static final SFStatementType DESCRIBE
public static final SFStatementType LIST
public static final SFStatementType TCL
public static final SFStatementType DDL
public static final SFStatementType GET
public static final SFStatementType PUT
public static final SFStatementType REMOVE
public static SFStatementType[] values()
for (SFStatementType c : SFStatementType.values()) System.out.println(c);
public static SFStatementType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static SFStatementType lookUpTypeById(long id)
public long getStatementTypeId()
public boolean isDDL()
public boolean isDML()
public boolean isTCL()
public boolean isSCL()
public boolean isGenerateResultSet()
public boolean isSelect()
Copyright © 2022. All rights reserved.