|
||||||||||
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.
Constructor Summary | |
---|---|
CommandRemote(SessionRemote session,
ObjectArray<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 |
ResultInterface |
getMetaData()
Get an empty result set containing the meta data of the result. |
ObjectArray<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, ObjectArray<Transfer> transferList, java.lang.String sql, int fetchSize) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public boolean isQuery()
CommandInterface
isQuery
in interface CommandInterface
public ObjectArray<ParameterInterface> getParameters()
CommandInterface
getParameters
in interface CommandInterface
public ResultInterface getMetaData() throws java.sql.SQLException
CommandInterface
getMetaData
in interface CommandInterface
java.sql.SQLException
public ResultInterface executeQuery(int maxRows, boolean scrollable) throws java.sql.SQLException
CommandInterface
executeQuery
in interface CommandInterface
maxRows
- the maximum number of rows returnedscrollable
- if the result set must be scrollable
java.sql.SQLException
public int executeUpdate() throws java.sql.SQLException
CommandInterface
executeUpdate
in interface CommandInterface
java.sql.SQLException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |