Top Description Fields Methods
org.h2.command

public Interface CommandInterface

extends AutoCloseable
Known Direct Implementers
org.h2.command.CommandRemote, org.h2.command.Command
Imports
java.util.ArrayList, org.h2.expression.ParameterInterface, org.h2.result.BatchResult, .ResultInterface, .ResultWithGeneratedKeys, org.h2.value.Value

Represents a SQL statement.

Field Summary

Modifier and TypeField and Description
public static final int
ALTER_DOMAIN_ADD_CONSTRAINT

The type of ALTER DOMAIN ADD CONSTRAINT statement.

public static final int
ALTER_DOMAIN_DEFAULT

The type of an ALTER DOMAIN SET DEFAULT and ALTER DOMAIN DROP DEFAULT statements.

public static final int
ALTER_DOMAIN_DROP_CONSTRAINT

The type of ALTER DOMAIN DROP CONSTRAINT statement.

public static final int
ALTER_DOMAIN_ON_UPDATE

The type of an ALTER DOMAIN SET ON UPDATE and ALTER DOMAIN DROP ON UPDATE statements.

public static final int
ALTER_DOMAIN_RENAME

The type of an ALTER DOMAIN RENAME statement.

public static final int
ALTER_DOMAIN_RENAME_CONSTRAINT

The type of an ALTER DOMAIN RENAME CONSTRAINT statement.

public static final int
ALTER_INDEX_RENAME

The type of a ALTER INDEX RENAME statement.

public static final int
ALTER_SCHEMA_RENAME

The type of an ALTER SCHEMA RENAME statement.

public static final int
ALTER_SEQUENCE

The type of an ALTER SEQUENCE statement.

public static final int
ALTER_TABLE_ADD_COLUMN

The type of an ALTER TABLE ADD statement.

public static final int
ALTER_TABLE_ADD_CONSTRAINT_CHECK

The type of an ALTER TABLE ADD CHECK statement.

public static final int
ALTER_TABLE_ADD_CONSTRAINT_PRIMARY_KEY

The type of an ALTER TABLE ADD PRIMARY KEY statement.

public static final int
ALTER_TABLE_ADD_CONSTRAINT_REFERENTIAL

The type of an ALTER TABLE ADD FOREIGN KEY statement.

public static final int
ALTER_TABLE_ADD_CONSTRAINT_UNIQUE

The type of an ALTER TABLE ADD UNIQUE statement.

public static final int
ALTER_TABLE_ALTER_COLUMN_CHANGE_TYPE

The type of an ALTER TABLE ALTER COLUMN statement that changes the column data type.

public static final int
ALTER_TABLE_ALTER_COLUMN_DEFAULT

The type of an ALTER TABLE ALTER COLUMN SET DEFAULT and ALTER TABLE ALTER COLUMN DROP DEFAULT statements.

public static final int
ALTER_TABLE_ALTER_COLUMN_DEFAULT_ON_NULL

The type of ALTER TABLE ALTER COLUMN SET DEFAULT ON NULL and ALTER TABLE ALTER COLUMN DROP DEFAULT ON NULL statements.

public static final int
ALTER_TABLE_ALTER_COLUMN_DROP_EXPRESSION

The type of an ALTER TABLE ALTER COLUMN DROP EXPRESSION statement.

public static final int
ALTER_TABLE_ALTER_COLUMN_DROP_IDENTITY

The type of an ALTER TABLE ALTER COLUMN DROP IDENTITY statement.

public static final int
ALTER_TABLE_ALTER_COLUMN_DROP_NOT_NULL

The type of an ALTER TABLE ALTER COLUMN DROP NOT NULL statement.

public static final int
ALTER_TABLE_ALTER_COLUMN_NOT_NULL

The type of an ALTER TABLE ALTER COLUMN SET NOT NULL statement.

public static final int
ALTER_TABLE_ALTER_COLUMN_ON_UPDATE

The type of an ALTER TABLE ALTER COLUMN SET ON UPDATE statement.

public static final int
ALTER_TABLE_ALTER_COLUMN_RENAME

The type of an ALTER TABLE ALTER COLUMN RENAME statement.

public static final int
ALTER_TABLE_ALTER_COLUMN_SELECTIVITY

The type of an ALTER TABLE ALTER COLUMN SELECTIVITY statement.

public static final int
ALTER_TABLE_ALTER_COLUMN_VISIBILITY

The type of an ALTER TABLE ALTER COLUMN SET INVISIBLE statement.

public static final int
ALTER_TABLE_DROP_COLUMN

The type of an ALTER TABLE DROP COLUMN statement.

public static final int
ALTER_TABLE_DROP_CONSTRAINT

The type of an ALTER TABLE DROP CONSTRAINT statement.

public static final int
ALTER_TABLE_RENAME

The type of an ALTER TABLE RENAME statement.

public static final int
ALTER_TABLE_RENAME_CONSTRAINT

The type of an ALTER TABLE RENAME CONSTRAINT statement.

public static final int
ALTER_TABLE_SET_REFERENTIAL_INTEGRITY

The type of an ALTER TABLE SET REFERENTIAL_INTEGRITY statement.

public static final int
ALTER_USER_ADMIN

The type of an ALTER USER ADMIN statement.

public static final int
ALTER_USER_RENAME

The type of an ALTER USER RENAME statement.

public static final int
ALTER_USER_SET_PASSWORD

The type of an ALTER USER SET PASSWORD statement.

public static final int
ALTER_VIEW

The type of an ALTER VIEW statement.

public static final int
ANALYZE

The type of an ANALYZE statement.

public static final int
BACKUP

The type of a BACKUP statement.

public static final int
BEGIN

The type of a BEGIN {WORK|TRANSACTION} statement.

public static final int
CALL

The type of a CALL statement.

public static final int
CHECKPOINT

The type of a CHECKPOINT statement.

public static final int
CHECKPOINT_SYNC

The type of a CHECKPOINT SYNC statement.

public static final int
COMMENT

The type of a COMMENT statement.

public static final int
COMMIT

The type of a COMMIT statement.

public static final int
COMMIT_TRANSACTION

The type of a COMMIT TRANSACTION statement.

public static final int
CREATE_AGGREGATE

The type of a CREATE AGGREGATE statement.

public static final int
CREATE_ALIAS

The type of a CREATE ALIAS statement.

public static final int
CREATE_CONSTANT

The type of a CREATE CONSTANT statement.

public static final int
CREATE_DOMAIN

The type of a CREATE DOMAIN statement.

public static final int
CREATE_INDEX

The type of a CREATE INDEX statement.

public static final int
CREATE_LINKED_TABLE

The type of a CREATE LINKED TABLE statement.

public static final int
CREATE_MATERIALIZED_VIEW

The type of a CREATE MATERIALIZED VIEW statement.

public static final int
CREATE_ROLE

The type of a CREATE ROLE statement.

public static final int
CREATE_SCHEMA

The type of a CREATE SCHEMA statement.

public static final int
CREATE_SEQUENCE

The type of a CREATE SEQUENCE statement.

public static final int
CREATE_SYNONYM

The type of a CREATE SYNONYM statement.

public static final int
CREATE_TABLE

The type of a CREATE TABLE statement.

public static final int
CREATE_TRIGGER

The type of a CREATE TRIGGER statement.

public static final int
CREATE_USER

The type of a CREATE USER statement.

public static final int
CREATE_VIEW

The type of a CREATE VIEW statement.

public static final int
DEALLOCATE

The type of a DEALLOCATE statement.

public static final int
DELETE

The type of a DELETE statement.

public static final int
DROP_AGGREGATE

The type of a DROP AGGREGATE statement.

public static final int
DROP_ALIAS

The type of a DROP ALIAS statement.

public static final int
DROP_ALL_OBJECTS

The type of a DROP ALL OBJECTS statement.

public static final int
DROP_CONSTANT

The type of a DROP CONSTANT statement.

public static final int
DROP_DOMAIN

The type of a DROP DOMAIN statement.

public static final int
DROP_INDEX

The type of a DROP INDEX statement.

public static final int
DROP_MATERIALIZED_VIEW

The type of a DROP MATERIALIZED VIEW statement.

public static final int
DROP_ROLE

The type of a DROP ROLE statement.

public static final int
DROP_SCHEMA

The type of a DROP SCHEMA statement.

public static final int
DROP_SEQUENCE

The type of a DROP SEQUENCE statement.

public static final int
DROP_SYNONYM

The type of a DROP SYNONYM statement.

public static final int
DROP_TABLE

The type of a DROP TABLE statement.

public static final int
DROP_TRIGGER

The type of a DROP TRIGGER statement.

public static final int
DROP_USER

The type of a DROP USER statement.

public static final int
DROP_VIEW

The type of a DROP VIEW statement.

public static final int
EXECUTE

The type of an EXECUTE statement.

public static final int
EXECUTE_IMMEDIATELY

The type of an EXECUTE IMMEDIATELY statement.

public static final int
EXPLAIN

The type of an EXPLAIN statement.

public static final int
EXPLAIN_ANALYZE

The type of an EXPLAIN ANALYZE statement.

public static final int
GRANT

The type of a GRANT statement.

public static final int
HELP

The type of a HELP statement.

public static final int
INSERT

The type of an INSERT statement.

public static final int
MERGE

The type of a MERGE statement.

public static final int
NO_OPERATION

The type of a no operation statement.

public static final int
PREPARE

The type of a PREPARE statement.

public static final int
PREPARE_COMMIT

The type of a PREPARE COMMIT statement.

public static final int
REFRESH_MATERIALIZED_VIEW

The type of a REFRESH MATERIALIZED VIEW statement.

public static final int
REPLACE

The type of a REPLACE statement.

public static final int
REVOKE

The type of a REVOKE statement.

public static final int
ROLLBACK

The type of a ROLLBACK statement.

public static final int
ROLLBACK_TO_SAVEPOINT

The type of a ROLLBACK TO SAVEPOINT statement.

public static final int
ROLLBACK_TRANSACTION

The type of a ROLLBACK TRANSACTION statement.

public static final int
RUNSCRIPT

The type of a RUNSCRIPT statement.

public static final int
SAVEPOINT

The type of a SAVEPOINT statement.

public static final int
SCRIPT

The type of a SCRIPT statement.

public static final int
SELECT

The type of a SELECT statement.

public static final int
SET

The type of a SET statement.

public static final int
SET_AUTOCOMMIT_FALSE

The type of a SET AUTOCOMMIT statement.

public static final int
SET_AUTOCOMMIT_TRUE

The type of a SET AUTOCOMMIT statement.

public static final int
SHUTDOWN

The type of a SHUTDOWN statement.

public static final int
SHUTDOWN_COMPACT

The type of a SHUTDOWN COMPACT statement.

public static final int
SHUTDOWN_DEFRAG

The type of a SHUTDOWN DEFRAG statement.

public static final int
SHUTDOWN_IMMEDIATELY

The type of a SHUTDOWN IMMEDIATELY statement.

public static final int
TRUNCATE_TABLE

The type of a TRUNCATE TABLE statement.

public static final int
UNKNOWN

The type for unknown statement.

public static final int
UPDATE

The type of an UPDATE statement.

Method Summary

Modifier and TypeMethod and Description
public void
cancel()

Cancel the statement if it is still processing.

public void
close()

Redeclares java.lang.AutoCloseable.close.

Close the statement.

public BatchResult

Returns:

result of batch execution
executeBatchUpdate
(ArrayList<Value[]>
batch parameters
batchParameters
,
Object
null or false if generated keys are not needed, true if generated keys should be configured automatically, int[] to specify column indices to return generated keys from, or String[] to specify column names to return generated keys from
generatedKeysRequest
)

Executes the statement with multiple sets of parameters.

public ResultInterface

Returns:

the result
executeQuery
(long
the maximum number of rows returned
maxRows
,
boolean
if the result set must be scrollable
scrollable
)

Execute the query.

public ResultWithGeneratedKeys

Returns:

the update count and generated keys, if any
executeUpdate
(Object
null or false if generated keys are not needed, true if generated keys should be configured automatically, int[] to specify column indices to return generated keys from, or String[] to specify column names to return generated keys from
generatedKeysRequest
)

Execute the statement

public int

Returns:

one of the constants above
getCommandType
()

Get command type.

public ResultInterface

Returns:

the empty result
getMetaData
()

Get an empty result set containing the meta data of the result.

public ArrayList<? extends ParameterInterface>

Returns:

the parameters
getParameters
()

Get the parameters (if any).

public boolean

Returns:

true if it is a query
isQuery
()

Check if this is a query.

public void
stop(boolean
commit the session if auto-commit is enabled
commitIfAutoCommit
)

Stop the command execution, release all locks and resources.

Field Detail

ALTER_DOMAIN_ADD_CONSTRAINTback to summary
public static final int ALTER_DOMAIN_ADD_CONSTRAINT

The type of ALTER DOMAIN ADD CONSTRAINT statement.

ALTER_DOMAIN_DEFAULTback to summary
public static final int ALTER_DOMAIN_DEFAULT

The type of an ALTER DOMAIN SET DEFAULT and ALTER DOMAIN DROP DEFAULT statements.

ALTER_DOMAIN_DROP_CONSTRAINTback to summary
public static final int ALTER_DOMAIN_DROP_CONSTRAINT

The type of ALTER DOMAIN DROP CONSTRAINT statement.

ALTER_DOMAIN_ON_UPDATEback to summary
public static final int ALTER_DOMAIN_ON_UPDATE

The type of an ALTER DOMAIN SET ON UPDATE and ALTER DOMAIN DROP ON UPDATE statements.

ALTER_DOMAIN_RENAMEback to summary
public static final int ALTER_DOMAIN_RENAME

The type of an ALTER DOMAIN RENAME statement.

ALTER_DOMAIN_RENAME_CONSTRAINTback to summary
public static final int ALTER_DOMAIN_RENAME_CONSTRAINT

The type of an ALTER DOMAIN RENAME CONSTRAINT statement.

ALTER_INDEX_RENAMEback to summary
public static final int ALTER_INDEX_RENAME

The type of a ALTER INDEX RENAME statement.

ALTER_SCHEMA_RENAMEback to summary
public static final int ALTER_SCHEMA_RENAME

The type of an ALTER SCHEMA RENAME statement.

ALTER_SEQUENCEback to summary
public static final int ALTER_SEQUENCE

The type of an ALTER SEQUENCE statement.

ALTER_TABLE_ADD_COLUMNback to summary
public static final int ALTER_TABLE_ADD_COLUMN

The type of an ALTER TABLE ADD statement.

ALTER_TABLE_ADD_CONSTRAINT_CHECKback to summary
public static final int ALTER_TABLE_ADD_CONSTRAINT_CHECK

The type of an ALTER TABLE ADD CHECK statement.

ALTER_TABLE_ADD_CONSTRAINT_PRIMARY_KEYback to summary
public static final int ALTER_TABLE_ADD_CONSTRAINT_PRIMARY_KEY

The type of an ALTER TABLE ADD PRIMARY KEY statement.

ALTER_TABLE_ADD_CONSTRAINT_REFERENTIALback to summary
public static final int ALTER_TABLE_ADD_CONSTRAINT_REFERENTIAL

The type of an ALTER TABLE ADD FOREIGN KEY statement.

ALTER_TABLE_ADD_CONSTRAINT_UNIQUEback to summary
public static final int ALTER_TABLE_ADD_CONSTRAINT_UNIQUE

The type of an ALTER TABLE ADD UNIQUE statement.

ALTER_TABLE_ALTER_COLUMN_CHANGE_TYPEback to summary
public static final int ALTER_TABLE_ALTER_COLUMN_CHANGE_TYPE

The type of an ALTER TABLE ALTER COLUMN statement that changes the column data type.

ALTER_TABLE_ALTER_COLUMN_DEFAULTback to summary
public static final int ALTER_TABLE_ALTER_COLUMN_DEFAULT

The type of an ALTER TABLE ALTER COLUMN SET DEFAULT and ALTER TABLE ALTER COLUMN DROP DEFAULT statements.

ALTER_TABLE_ALTER_COLUMN_DEFAULT_ON_NULLback to summary
public static final int ALTER_TABLE_ALTER_COLUMN_DEFAULT_ON_NULL

The type of ALTER TABLE ALTER COLUMN SET DEFAULT ON NULL and ALTER TABLE ALTER COLUMN DROP DEFAULT ON NULL statements.

ALTER_TABLE_ALTER_COLUMN_DROP_EXPRESSIONback to summary
public static final int ALTER_TABLE_ALTER_COLUMN_DROP_EXPRESSION

The type of an ALTER TABLE ALTER COLUMN DROP EXPRESSION statement.

ALTER_TABLE_ALTER_COLUMN_DROP_IDENTITYback to summary
public static final int ALTER_TABLE_ALTER_COLUMN_DROP_IDENTITY

The type of an ALTER TABLE ALTER COLUMN DROP IDENTITY statement.

ALTER_TABLE_ALTER_COLUMN_DROP_NOT_NULLback to summary
public static final int ALTER_TABLE_ALTER_COLUMN_DROP_NOT_NULL

The type of an ALTER TABLE ALTER COLUMN DROP NOT NULL statement.

ALTER_TABLE_ALTER_COLUMN_NOT_NULLback to summary
public static final int ALTER_TABLE_ALTER_COLUMN_NOT_NULL

The type of an ALTER TABLE ALTER COLUMN SET NOT NULL statement.

ALTER_TABLE_ALTER_COLUMN_ON_UPDATEback to summary
public static final int ALTER_TABLE_ALTER_COLUMN_ON_UPDATE

The type of an ALTER TABLE ALTER COLUMN SET ON UPDATE statement.

ALTER_TABLE_ALTER_COLUMN_RENAMEback to summary
public static final int ALTER_TABLE_ALTER_COLUMN_RENAME

The type of an ALTER TABLE ALTER COLUMN RENAME statement.

ALTER_TABLE_ALTER_COLUMN_SELECTIVITYback to summary
public static final int ALTER_TABLE_ALTER_COLUMN_SELECTIVITY

The type of an ALTER TABLE ALTER COLUMN SELECTIVITY statement.

ALTER_TABLE_ALTER_COLUMN_VISIBILITYback to summary
public static final int ALTER_TABLE_ALTER_COLUMN_VISIBILITY

The type of an ALTER TABLE ALTER COLUMN SET INVISIBLE statement.

ALTER_TABLE_DROP_COLUMNback to summary
public static final int ALTER_TABLE_DROP_COLUMN

The type of an ALTER TABLE DROP COLUMN statement.

ALTER_TABLE_DROP_CONSTRAINTback to summary
public static final int ALTER_TABLE_DROP_CONSTRAINT

The type of an ALTER TABLE DROP CONSTRAINT statement.

ALTER_TABLE_RENAMEback to summary
public static final int ALTER_TABLE_RENAME

The type of an ALTER TABLE RENAME statement.

ALTER_TABLE_RENAME_CONSTRAINTback to summary
public static final int ALTER_TABLE_RENAME_CONSTRAINT

The type of an ALTER TABLE RENAME CONSTRAINT statement.

ALTER_TABLE_SET_REFERENTIAL_INTEGRITYback to summary
public static final int ALTER_TABLE_SET_REFERENTIAL_INTEGRITY

The type of an ALTER TABLE SET REFERENTIAL_INTEGRITY statement.

ALTER_USER_ADMINback to summary
public static final int ALTER_USER_ADMIN

The type of an ALTER USER ADMIN statement.

ALTER_USER_RENAMEback to summary
public static final int ALTER_USER_RENAME

The type of an ALTER USER RENAME statement.

ALTER_USER_SET_PASSWORDback to summary
public static final int ALTER_USER_SET_PASSWORD

The type of an ALTER USER SET PASSWORD statement.

ALTER_VIEWback to summary
public static final int ALTER_VIEW

The type of an ALTER VIEW statement.

ANALYZEback to summary
public static final int ANALYZE

The type of an ANALYZE statement.

BACKUPback to summary
public static final int BACKUP

The type of a BACKUP statement.

BEGINback to summary
public static final int BEGIN

The type of a BEGIN {WORK|TRANSACTION} statement.

CALLback to summary
public static final int CALL

The type of a CALL statement.

CHECKPOINTback to summary
public static final int CHECKPOINT

The type of a CHECKPOINT statement.

CHECKPOINT_SYNCback to summary
public static final int CHECKPOINT_SYNC

The type of a CHECKPOINT SYNC statement.

COMMENTback to summary
public static final int COMMENT

The type of a COMMENT statement.

COMMITback to summary
public static final int COMMIT

The type of a COMMIT statement.

COMMIT_TRANSACTIONback to summary
public static final int COMMIT_TRANSACTION

The type of a COMMIT TRANSACTION statement.

CREATE_AGGREGATEback to summary
public static final int CREATE_AGGREGATE

The type of a CREATE AGGREGATE statement.

CREATE_ALIASback to summary
public static final int CREATE_ALIAS

The type of a CREATE ALIAS statement.

CREATE_CONSTANTback to summary
public static final int CREATE_CONSTANT

The type of a CREATE CONSTANT statement.

CREATE_DOMAINback to summary
public static final int CREATE_DOMAIN

The type of a CREATE DOMAIN statement.

CREATE_INDEXback to summary
public static final int CREATE_INDEX

The type of a CREATE INDEX statement.

CREATE_LINKED_TABLEback to summary
public static final int CREATE_LINKED_TABLE

The type of a CREATE LINKED TABLE statement.

CREATE_MATERIALIZED_VIEWback to summary
public static final int CREATE_MATERIALIZED_VIEW

The type of a CREATE MATERIALIZED VIEW statement.

CREATE_ROLEback to summary
public static final int CREATE_ROLE

The type of a CREATE ROLE statement.

CREATE_SCHEMAback to summary
public static final int CREATE_SCHEMA

The type of a CREATE SCHEMA statement.

CREATE_SEQUENCEback to summary
public static final int CREATE_SEQUENCE

The type of a CREATE SEQUENCE statement.

CREATE_SYNONYMback to summary
public static final int CREATE_SYNONYM

The type of a CREATE SYNONYM statement.

CREATE_TABLEback to summary
public static final int CREATE_TABLE

The type of a CREATE TABLE statement.

CREATE_TRIGGERback to summary
public static final int CREATE_TRIGGER

The type of a CREATE TRIGGER statement.

CREATE_USERback to summary
public static final int CREATE_USER

The type of a CREATE USER statement.

CREATE_VIEWback to summary
public static final int CREATE_VIEW

The type of a CREATE VIEW statement.

DEALLOCATEback to summary
public static final int DEALLOCATE

The type of a DEALLOCATE statement.

DELETEback to summary
public static final int DELETE

The type of a DELETE statement.

DROP_AGGREGATEback to summary
public static final int DROP_AGGREGATE

The type of a DROP AGGREGATE statement.

DROP_ALIASback to summary
public static final int DROP_ALIAS

The type of a DROP ALIAS statement.

DROP_ALL_OBJECTSback to summary
public static final int DROP_ALL_OBJECTS

The type of a DROP ALL OBJECTS statement.

DROP_CONSTANTback to summary
public static final int DROP_CONSTANT

The type of a DROP CONSTANT statement.

DROP_DOMAINback to summary
public static final int DROP_DOMAIN

The type of a DROP DOMAIN statement.

DROP_INDEXback to summary
public static final int DROP_INDEX

The type of a DROP INDEX statement.

DROP_MATERIALIZED_VIEWback to summary
public static final int DROP_MATERIALIZED_VIEW

The type of a DROP MATERIALIZED VIEW statement.

DROP_ROLEback to summary
public static final int DROP_ROLE

The type of a DROP ROLE statement.

DROP_SCHEMAback to summary
public static final int DROP_SCHEMA

The type of a DROP SCHEMA statement.

DROP_SEQUENCEback to summary
public static final int DROP_SEQUENCE

The type of a DROP SEQUENCE statement.

DROP_SYNONYMback to summary
public static final int DROP_SYNONYM

The type of a DROP SYNONYM statement.

DROP_TABLEback to summary
public static final int DROP_TABLE

The type of a DROP TABLE statement.

DROP_TRIGGERback to summary
public static final int DROP_TRIGGER

The type of a DROP TRIGGER statement.

DROP_USERback to summary
public static final int DROP_USER

The type of a DROP USER statement.

DROP_VIEWback to summary
public static final int DROP_VIEW

The type of a DROP VIEW statement.

EXECUTEback to summary
public static final int EXECUTE

The type of an EXECUTE statement.

EXECUTE_IMMEDIATELYback to summary
public static final int EXECUTE_IMMEDIATELY

The type of an EXECUTE IMMEDIATELY statement.

EXPLAINback to summary
public static final int EXPLAIN

The type of an EXPLAIN statement.

EXPLAIN_ANALYZEback to summary
public static final int EXPLAIN_ANALYZE

The type of an EXPLAIN ANALYZE statement.

GRANTback to summary
public static final int GRANT

The type of a GRANT statement.

HELPback to summary
public static final int HELP

The type of a HELP statement.

INSERTback to summary
public static final int INSERT

The type of an INSERT statement.

MERGEback to summary
public static final int MERGE

The type of a MERGE statement.

NO_OPERATIONback to summary
public static final int NO_OPERATION

The type of a no operation statement.

PREPAREback to summary
public static final int PREPARE

The type of a PREPARE statement.

PREPARE_COMMITback to summary
public static final int PREPARE_COMMIT

The type of a PREPARE COMMIT statement.

REFRESH_MATERIALIZED_VIEWback to summary
public static final int REFRESH_MATERIALIZED_VIEW

The type of a REFRESH MATERIALIZED VIEW statement.

REPLACEback to summary
public static final int REPLACE

The type of a REPLACE statement.

REVOKEback to summary
public static final int REVOKE

The type of a REVOKE statement.

ROLLBACKback to summary
public static final int ROLLBACK

The type of a ROLLBACK statement.

ROLLBACK_TO_SAVEPOINTback to summary
public static final int ROLLBACK_TO_SAVEPOINT

The type of a ROLLBACK TO SAVEPOINT statement.

ROLLBACK_TRANSACTIONback to summary
public static final int ROLLBACK_TRANSACTION

The type of a ROLLBACK TRANSACTION statement.

RUNSCRIPTback to summary
public static final int RUNSCRIPT

The type of a RUNSCRIPT statement.

SAVEPOINTback to summary
public static final int SAVEPOINT

The type of a SAVEPOINT statement.

SCRIPTback to summary
public static final int SCRIPT

The type of a SCRIPT statement.

SELECTback to summary
public static final int SELECT

The type of a SELECT statement.

SETback to summary
public static final int SET

The type of a SET statement.

SET_AUTOCOMMIT_FALSEback to summary
public static final int SET_AUTOCOMMIT_FALSE

The type of a SET AUTOCOMMIT statement.

SET_AUTOCOMMIT_TRUEback to summary
public static final int SET_AUTOCOMMIT_TRUE

The type of a SET AUTOCOMMIT statement.

SHUTDOWNback to summary
public static final int SHUTDOWN

The type of a SHUTDOWN statement.

SHUTDOWN_COMPACTback to summary
public static final int SHUTDOWN_COMPACT

The type of a SHUTDOWN COMPACT statement.

SHUTDOWN_DEFRAGback to summary
public static final int SHUTDOWN_DEFRAG

The type of a SHUTDOWN DEFRAG statement.

SHUTDOWN_IMMEDIATELYback to summary
public static final int SHUTDOWN_IMMEDIATELY

The type of a SHUTDOWN IMMEDIATELY statement.

TRUNCATE_TABLEback to summary
public static final int TRUNCATE_TABLE

The type of a TRUNCATE TABLE statement.

UNKNOWNback to summary
public static final int UNKNOWN

The type for unknown statement.

UPDATEback to summary
public static final int UPDATE

The type of an UPDATE statement.

Method Detail

cancelback to summary
public void cancel()

Cancel the statement if it is still processing.

closeback to summary
public void close()

Redeclares java.lang.AutoCloseable.close.

Close the statement.

Annotations
@Override
executeBatchUpdateback to summary
public BatchResult executeBatchUpdate(ArrayList<Value[]> batchParameters, Object generatedKeysRequest)

Executes the statement with multiple sets of parameters.

Parameters
batchParameters:ArrayList<Value[]>

batch parameters

generatedKeysRequest:Object

null or false if generated keys are not needed, true if generated keys should be configured automatically, int[] to specify column indices to return generated keys from, or String[] to specify column names to return generated keys from

Returns:BatchResult

result of batch execution

executeQueryback to summary
public ResultInterface executeQuery(long maxRows, boolean scrollable)

Execute the query.

Parameters
maxRows:long

the maximum number of rows returned

scrollable:boolean

if the result set must be scrollable

Returns:ResultInterface

the result

executeUpdateback to summary
public ResultWithGeneratedKeys executeUpdate(Object generatedKeysRequest)

Execute the statement

Parameters
generatedKeysRequest:Object

null or false if generated keys are not needed, true if generated keys should be configured automatically, int[] to specify column indices to return generated keys from, or String[] to specify column names to return generated keys from

Returns:ResultWithGeneratedKeys

the update count and generated keys, if any

getCommandTypeback to summary
public int getCommandType()

Get command type.

Returns:int

one of the constants above

getMetaDataback to summary
public ResultInterface getMetaData()

Get an empty result set containing the meta data of the result.

Returns:ResultInterface

the empty result

getParametersback to summary
public ArrayList<? extends ParameterInterface> getParameters()

Get the parameters (if any).

Returns:ArrayList<? extends ParameterInterface>

the parameters

isQueryback to summary
public boolean isQuery()

Check if this is a query.

Returns:boolean

true if it is a query

stopback to summary
public void stop(boolean commitIfAutoCommit)

Stop the command execution, release all locks and resources.

Parameters
commitIfAutoCommit:boolean

commit the session if auto-commit is enabled