|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.command.Prepared
org.h2.command.dml.ScriptBase
org.h2.command.dml.ScriptCommand
public class ScriptCommand
This class represents the statement SCRIPT
| Field Summary |
|---|
| Fields inherited from class org.h2.command.dml.ScriptBase |
|---|
in, out |
| Fields inherited from class org.h2.command.Prepared |
|---|
headPos, parameters, prepareAlways, session, sqlStatement |
| Constructor Summary | |
|---|---|
ScriptCommand(Session session)
|
|
| Method Summary | |
|---|---|
static java.io.InputStream |
combineBlob(java.sql.Connection conn,
int id)
Combine a BLOB. |
static java.io.Reader |
combineClob(java.sql.Connection conn,
int id)
Combine a CLOB. |
boolean |
isQuery()
Check if this object is a query. |
LocalResult |
query(int maxrows)
Execute the query. |
LocalResult |
queryMeta()
Get an empty result set containing the meta data. |
void |
setData(boolean data)
|
void |
setDrop(boolean drop)
|
void |
setLobBlockSize(long blockSize)
|
void |
setPasswords(boolean passwords)
|
void |
setSettings(boolean settings)
|
void |
setSimple(boolean simple)
|
| Methods inherited from class org.h2.command.Prepared |
|---|
checkCanceled, checkParameters, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, isReadOnly, prepare, setCommand, setCurrentRowNumber, setHeadPos, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptCommand(Session session)
| Method Detail |
|---|
public boolean isQuery()
Prepared
isQuery in class Preparedpublic void setData(boolean data)
public void setPasswords(boolean passwords)
public void setSettings(boolean settings)
public void setLobBlockSize(long blockSize)
public void setDrop(boolean drop)
public LocalResult queryMeta()
throws java.sql.SQLException
Prepared
queryMeta in class Preparedjava.sql.SQLException
public LocalResult query(int maxrows)
throws java.sql.SQLException
Prepared
query in class Preparedmaxrows - the maximum number of rows to return
java.sql.SQLException - if it is not a query
public static java.io.InputStream combineBlob(java.sql.Connection conn,
int id)
throws java.sql.SQLException
conn - a connectionid - the lob id
java.sql.SQLException
public static java.io.Reader combineClob(java.sql.Connection conn,
int id)
throws java.sql.SQLException
conn - a connectionid - the lob id
java.sql.SQLExceptionpublic void setSimple(boolean simple)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||