| java.lang.Object org.h2.command.Command
All known Subclasses: org.h2.command.CommandList, org.h2.command.CommandContainer,
Command | abstract public class Command implements CommandInterface(Code) | | Represents a SQL statement. This object is only used on the server side.
|
startTime | protected long startTime(Code) | | The last start time.
|
trace | final protected Trace trace(Code) | | The trace module.
|
cancel | public void cancel()(Code) | | |
checkCancelled | public void checkCancelled() throws SQLException(Code) | | Check if this command has been cancelled, and throw an exception if yes.
throws: SQLException - if the statement has been cancelled |
close | public void close()(Code) | | |
executeQueryLocal | public LocalResult executeQueryLocal(int maxrows) throws SQLException(Code) | | Execute a query and return a local result set.
This method prepares everything and calls
Command.query(int) finally.
Parameters: maxrows - the maximum number of rows to return the local result set |
getParameters | abstract public ObjectArray getParameters()(Code) | | Get the list of parameters.
the list of parameters |
isQuery | abstract public boolean isQuery()(Code) | | Check if this command is a query.
true if it is |
isReadOnly | abstract public boolean isReadOnly()(Code) | | Check if this command is read only.
true if it is |
isTransactional | abstract public boolean isTransactional()(Code) | | Check if this command is transactional.
If it is not, then it forces the current transaction to commit.
true if it is |
query | public LocalResult query(int maxrows) throws SQLException(Code) | | Execute a query statement, if this is possible.
Parameters: maxrows - the maximum number of rows returned the local result set throws: SQLException - if the command is not a query |
start | protected void start()(Code) | | |
update | public int update() throws SQLException(Code) | | Execute an updating statement, if this is possible.
the update count throws: SQLException - if the command is not an updating statement |
|
|