|
||||||||||
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 |
---|
create, 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. |
int |
getType()
Get the command type as defined in CommandInterface |
boolean |
isQuery()
Check if this object is a query. |
ResultInterface |
query(int maxrows)
Execute the query. |
ResultInterface |
queryMeta()
Get an empty result set containing the meta data. |
void |
setCharset(java.lang.String charset)
|
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.dml.ScriptBase |
---|
checkPowerOff, checkWritingAllowed, freeUpDiskSpace, getDatabasePath, getFileName, getLobCompressionAlgorithm, getLobConnection, getLobFileListCache, getLobStorage, getLobSyncObject, getMaxLengthInplaceLob, getTempFileDeleter, isTransactional, needRecompile, openFile, setCipher, setCompressionAlgorithm, setFileNameExpr, setPassword |
Methods inherited from class org.h2.command.Prepared |
---|
checkCanceled, checkParameters, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, isCacheable, isReadOnly, prepare, setCommand, setCurrentRowNumber, 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 Prepared
public 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 ResultInterface queryMeta()
Prepared
queryMeta
in class Prepared
public ResultInterface query(int maxrows)
Prepared
query
in class Prepared
maxrows
- the maximum number of rows to return
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.SQLException
public void setSimple(boolean simple)
public void setCharset(java.lang.String charset)
public int getType()
Prepared
getType
in class Prepared
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |