|
||||||||
| 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 | |
|---|---|
ObjectArray<? 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. |
LocalResult |
query(int maxrows)
Execute a query statement, if this is possible. |
LocalResult |
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, executeQueryLocal, executeUpdate, getMetaData, getMetaDataLocal, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public ObjectArray<? 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 Command
public int update()
throws java.sql.SQLException
Command
update in class Commandjava.sql.SQLException - if the command is not an updating statement
public LocalResult query(int maxrows)
throws java.sql.SQLException
Command
query in class Commandmaxrows - the maximum number of rows returned
java.sql.SQLException - if the command is not a querypublic boolean isReadOnly()
Command
isReadOnly in class Command
public LocalResult queryMeta()
throws java.sql.SQLException
Command
queryMeta in class Commandjava.sql.SQLException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||