org.h2.command.dml
Class ScriptCommand
java.lang.Object
org.h2.command.Prepared
org.h2.command.dml.ScriptBase
org.h2.command.dml.ScriptCommand
- All Implemented Interfaces:
- DataHandler
public class ScriptCommand
- extends ScriptBase
This class represents the statement
SCRIPT
| 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, 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 |
ScriptCommand
public ScriptCommand(Session session)
isQuery
public boolean isQuery()
- Description copied from class:
Prepared
- Check if this object is a query.
- Overrides:
isQuery in class Prepared
- Returns:
- true if it is
setData
public void setData(boolean data)
setPasswords
public void setPasswords(boolean passwords)
setSettings
public void setSettings(boolean settings)
setLobBlockSize
public void setLobBlockSize(long blockSize)
setDrop
public void setDrop(boolean drop)
queryMeta
public ResultInterface queryMeta()
- Description copied from class:
Prepared
- Get an empty result set containing the meta data.
- Specified by:
queryMeta in class Prepared
- Returns:
- the result set
query
public ResultInterface query(int maxrows)
- Description copied from class:
Prepared
- Execute the query.
- Overrides:
query in class Prepared
- Parameters:
maxrows - the maximum number of rows to return
- Returns:
- the result set
combineBlob
public static java.io.InputStream combineBlob(java.sql.Connection conn,
int id)
throws java.sql.SQLException
- Combine a BLOB.
This method is called from the script.
When calling with id -1, the file is deleted.
- Parameters:
conn - a connectionid - the lob id
- Returns:
- a stream for the combined data
- Throws:
java.sql.SQLException
combineClob
public static java.io.Reader combineClob(java.sql.Connection conn,
int id)
throws java.sql.SQLException
- Combine a CLOB.
This method is called from the script.
- Parameters:
conn - a connectionid - the lob id
- Returns:
- a reader for the combined data
- Throws:
java.sql.SQLException
setSimple
public void setSimple(boolean simple)