|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.command.Command
org.h2.command.CommandContainer
public class CommandContainer
Represents a single SQL statements. It wraps a prepared statement.
Field Summary |
---|
Fields inherited from class org.h2.command.Command |
---|
session, startTime, trace |
Method Summary | |
---|---|
int |
getCommandType()
Get command type. |
java.util.ArrayList<? extends ParameterInterface> |
getParameters()
Get the list of parameters. |
boolean |
isCacheable()
|
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(int maxrows)
Execute a query statement, if this is possible. |
ResultInterface |
queryMeta()
Get an empty result set containing the meta data. |
int |
update()
Execute an updating statement, if this is possible. |
Methods inherited from class org.h2.command.Command |
---|
cancel, checkCanceled, close, executeQuery, executeUpdate, getMetaData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.util.ArrayList<? extends ParameterInterface> getParameters()
Command
getParameters
in interface CommandInterface
getParameters
in class Command
public boolean isTransactional()
Command
isTransactional
in class Command
public boolean isQuery()
Command
isQuery
in interface CommandInterface
isQuery
in class Command
public int update()
Command
update
in class Command
public ResultInterface query(int maxrows)
Command
query
in class Command
maxrows
- the maximum number of rows returned
public boolean isReadOnly()
Command
isReadOnly
in class Command
public ResultInterface queryMeta()
Command
queryMeta
in class Command
public boolean isCacheable()
isCacheable
in class Command
public int getCommandType()
CommandInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |