|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.command.CommandRemote
public class CommandRemote
Represents the client-side part of a SQL statement. This class is not used in embedded mode.
Field Summary |
---|
Constructor Summary | |
---|---|
CommandRemote(SessionRemote session,
java.util.ArrayList<Transfer> transferList,
java.lang.String sql,
int fetchSize)
|
Method Summary | |
---|---|
void |
cancel()
Cancel this current statement. |
void |
close()
Close the statement. |
ResultInterface |
executeQuery(int maxRows,
boolean scrollable)
Execute the query. |
int |
executeUpdate()
Execute the statement |
int |
getCommandType()
Get command type. |
ResultInterface |
getMetaData()
Get an empty result set containing the meta data of the result. |
java.util.ArrayList<ParameterInterface> |
getParameters()
Get the parameters (if any). |
boolean |
isQuery()
Check if this is a query. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommandRemote(SessionRemote session, java.util.ArrayList<Transfer> transferList, java.lang.String sql, int fetchSize)
Method Detail |
---|
public boolean isQuery()
CommandInterface
isQuery
in interface CommandInterface
public java.util.ArrayList<ParameterInterface> getParameters()
CommandInterface
getParameters
in interface CommandInterface
public ResultInterface getMetaData()
CommandInterface
getMetaData
in interface CommandInterface
public ResultInterface executeQuery(int maxRows, boolean scrollable)
CommandInterface
executeQuery
in interface CommandInterface
maxRows
- the maximum number of rows returnedscrollable
- if the result set must be scrollable
public int executeUpdate()
CommandInterface
executeUpdate
in interface CommandInterface
public void close()
CommandInterface
close
in interface CommandInterface
public void cancel()
cancel
in interface CommandInterface
public java.lang.String toString()
toString
in class java.lang.Object
public int getCommandType()
CommandInterface
getCommandType
in interface CommandInterface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |