|
||||||||
| 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 | |
|---|---|
java.util.ArrayList<? extends ParameterInterface> |
getParameters()
Get the list of parameters. |
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 CommandInterfacegetParameters in class Commandpublic boolean isTransactional()
Command
isTransactional in class Commandpublic boolean isQuery()
Command
isQuery in interface CommandInterfaceisQuery 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 Command
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||