public class CommandContainer extends Command
session, startTimeNanosALTER_DOMAIN_ADD_CONSTRAINT, ALTER_DOMAIN_DEFAULT, ALTER_DOMAIN_DROP_CONSTRAINT, ALTER_DOMAIN_ON_UPDATE, ALTER_DOMAIN_RENAME, ALTER_DOMAIN_RENAME_CONSTRAINT, ALTER_INDEX_RENAME, ALTER_SCHEMA_RENAME, ALTER_SEQUENCE, ALTER_TABLE_ADD_COLUMN, ALTER_TABLE_ADD_CONSTRAINT_CHECK, ALTER_TABLE_ADD_CONSTRAINT_PRIMARY_KEY, ALTER_TABLE_ADD_CONSTRAINT_REFERENTIAL, ALTER_TABLE_ADD_CONSTRAINT_UNIQUE, ALTER_TABLE_ALTER_COLUMN_CHANGE_TYPE, ALTER_TABLE_ALTER_COLUMN_DEFAULT, ALTER_TABLE_ALTER_COLUMN_DEFAULT_ON_NULL, ALTER_TABLE_ALTER_COLUMN_DROP_EXPRESSION, ALTER_TABLE_ALTER_COLUMN_DROP_IDENTITY, ALTER_TABLE_ALTER_COLUMN_DROP_NOT_NULL, ALTER_TABLE_ALTER_COLUMN_NOT_NULL, ALTER_TABLE_ALTER_COLUMN_ON_UPDATE, ALTER_TABLE_ALTER_COLUMN_RENAME, ALTER_TABLE_ALTER_COLUMN_SELECTIVITY, ALTER_TABLE_ALTER_COLUMN_VISIBILITY, ALTER_TABLE_DROP_COLUMN, ALTER_TABLE_DROP_CONSTRAINT, ALTER_TABLE_RENAME, ALTER_TABLE_RENAME_CONSTRAINT, ALTER_TABLE_SET_REFERENTIAL_INTEGRITY, ALTER_USER_ADMIN, ALTER_USER_RENAME, ALTER_USER_SET_PASSWORD, ALTER_VIEW, ANALYZE, BACKUP, BEGIN, CALL, CHECKPOINT, CHECKPOINT_SYNC, COMMENT, COMMIT, COMMIT_TRANSACTION, CREATE_AGGREGATE, CREATE_ALIAS, CREATE_CONSTANT, CREATE_DOMAIN, CREATE_INDEX, CREATE_LINKED_TABLE, CREATE_ROLE, CREATE_SCHEMA, CREATE_SEQUENCE, CREATE_SYNONYM, CREATE_TABLE, CREATE_TRIGGER, CREATE_USER, CREATE_VIEW, DEALLOCATE, DELETE, DROP_AGGREGATE, DROP_ALIAS, DROP_ALL_OBJECTS, DROP_CONSTANT, DROP_DOMAIN, DROP_INDEX, DROP_ROLE, DROP_SCHEMA, DROP_SEQUENCE, DROP_SYNONYM, DROP_TABLE, DROP_TRIGGER, DROP_USER, DROP_VIEW, EXECUTE, EXECUTE_IMMEDIATELY, EXPLAIN, EXPLAIN_ANALYZE, GRANT, HELP, INSERT, MERGE, NO_OPERATION, PREPARE, PREPARE_COMMIT, REPLACE, REVOKE, ROLLBACK, ROLLBACK_TO_SAVEPOINT, ROLLBACK_TRANSACTION, RUNSCRIPT, SAVEPOINT, SCRIPT, SELECT, SET, SET_AUTOCOMMIT_FALSE, SET_AUTOCOMMIT_TRUE, SHUTDOWN, SHUTDOWN_COMPACT, SHUTDOWN_DEFRAG, SHUTDOWN_IMMEDIATELY, TRUNCATE_TABLE, UNKNOWN, UPDATE| 构造器和说明 |
|---|
CommandContainer(SessionLocal session,
String sql,
Prepared prepared) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canReuse()
Whether the command is already closed (in which case it can be re-used).
|
int |
getCommandType()
Get command type.
|
Set<DbObject> |
getDependencies() |
ArrayList<? extends ParameterInterface> |
getParameters()
Get the list of parameters.
|
boolean |
isCacheable() |
protected boolean |
isCurrentCommandADefineCommand()
Is the command we just tried to execute a DefineCommand (i.e.
|
boolean |
isQuery()
Check if this command is a query.
|
boolean |
isReadOnly()
Check if this command is read only.
|
boolean |
isTransactional()
Check if this command is transactional.
|
ResultInterface |
query(long maxrows)
Execute a query statement, if this is possible.
|
ResultInterface |
queryMeta()
Get an empty result set containing the meta data.
|
void |
stop()
Stop the command execution, release all locks and resources
|
ResultWithGeneratedKeys |
update(Object generatedKeysRequest)
Execute an updating statement (for example insert, delete, or update), if
this is possible.
|
cancel, checkCanceled, close, executeQuery, executeUpdate, getMetaData, reuse, setCanReuse, toStringpublic CommandContainer(SessionLocal session, String sql, Prepared prepared)
public ArrayList<? extends ParameterInterface> getParameters()
CommandgetParameters 在接口中 CommandInterfacegetParameters 在类中 Commandpublic boolean isTransactional()
CommandisTransactional 在类中 Commandpublic boolean isQuery()
CommandisQuery 在接口中 CommandInterfaceisQuery 在类中 Commandpublic ResultWithGeneratedKeys update(Object generatedKeysRequest)
Commandupdate 在类中 CommandgeneratedKeysRequest - 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
frompublic ResultInterface query(long maxrows)
Commandpublic void stop()
CommandInterfacestop 在接口中 CommandInterfacestop 在类中 Commandpublic boolean canReuse()
Commandpublic boolean isReadOnly()
CommandisReadOnly 在类中 Commandpublic ResultInterface queryMeta()
Commandpublic boolean isCacheable()
isCacheable 在类中 Commandpublic int getCommandType()
CommandInterfacepublic Set<DbObject> getDependencies()
getDependencies 在类中 Commandprotected boolean isCurrentCommandADefineCommand()
CommandisCurrentCommandADefineCommand 在类中 CommandCopyright © 2022. All rights reserved.