|
||||||||
| 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 |
| 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. |
void |
prepareJoinBatch()
Prepare join batching. |
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 (for example insert, delete, or update), if this is possible. |
| Methods inherited from class org.h2.command.Command |
|---|
cancel, canReuse, checkCanceled, close, executeQuery, executeUpdate, getMetaData, reuse, 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 CommandInterfacegetParameters in class Commandpublic boolean isTransactional()
Command
isTransactional in class Commandpublic boolean isQuery()
Command
isQuery in interface CommandInterfaceisQuery in class Commandpublic void prepareJoinBatch()
Command
prepareJoinBatch in class Commandpublic int update()
Command
update in class Commandpublic ResultInterface query(int maxrows)
Command
query in class Commandmaxrows - the maximum number of rows returned
public boolean isReadOnly()
Command
isReadOnly in class Commandpublic ResultInterface queryMeta()
Command
queryMeta in class Commandpublic boolean isCacheable()
isCacheable in class Commandpublic int getCommandType()
CommandInterface
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||