|
||||||||
| 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.CommandList
public class CommandList
Represents a list of SQL statements.
| Field Summary |
|---|
| Fields inherited from class org.h2.command.Command |
|---|
session, startTime, trace |
| Constructor Summary | |
|---|---|
CommandList(Parser parser,
java.lang.String sql,
Command c,
java.lang.String remaining)
|
|
| 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 |
| Constructor Detail |
|---|
public CommandList(Parser parser,
java.lang.String sql,
Command c,
java.lang.String remaining)
| Method Detail |
|---|
public ObjectArray<? extends ParameterInterface> getParameters()
Command
getParameters in interface CommandInterfacegetParameters 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 isQuery()
Command
isQuery in interface CommandInterfaceisQuery in class Commandpublic boolean isTransactional()
Command
isTransactional in class Commandpublic 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 | |||||||