public class RunScriptCommand extends Prepared
| Modifier and Type | Field and Description |
|---|---|
protected java.io.OutputStream |
out
The output stream.
|
protected java.io.BufferedReader |
reader
The input reader.
|
create, parameters, prepareAlways, session, sqlStatement, sqlTokens| Constructor and Description |
|---|
RunScriptCommand(SessionLocal session) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getFileName() |
int |
getType()
Get the command type as defined in CommandInterface
|
boolean |
isTransactional()
Check if this command is transactional.
|
boolean |
needRecompile()
Check if the statement needs to be re-compiled.
|
ResultInterface |
queryMeta()
Get an empty result set containing the meta data.
|
void |
setCharset(java.nio.charset.Charset charset) |
void |
setCipher(java.lang.String c) |
void |
setCompressionAlgorithm(java.lang.String algorithm) |
void |
setFileNameExpr(Expression file) |
void |
setFrom1X()
Enables quirks for parsing scripts from H2 1.*.*.
|
void |
setPassword(Expression password) |
void |
setQuirksMode(boolean quirksMode)
Enables or disables the quirks mode.
|
void |
setVariableBinary(boolean variableBinary)
Changes parsing of a BINARY data type.
|
long |
update()
Execute the statement.
|
checkCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isQuery, isReadOnly, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toStringprotected java.io.OutputStream out
protected java.io.BufferedReader reader
public RunScriptCommand(SessionLocal session)
public long update()
Preparedpublic void setCharset(java.nio.charset.Charset charset)
public void setQuirksMode(boolean quirksMode)
quirksMode - whether quirks mode should be enabledpublic void setVariableBinary(boolean variableBinary)
variableBinary - true to parse BINARY as VARBINARY, false to
parse it as ispublic void setFrom1X()
public ResultInterface queryMeta()
Preparedpublic int getType()
Preparedpublic void setCipher(java.lang.String c)
public void setPassword(Expression password)
public void setFileNameExpr(Expression file)
protected java.lang.String getFileName()
public boolean isTransactional()
PreparedisTransactional in class Preparedpublic boolean needRecompile()
PreparedneedRecompile in class Preparedpublic void setCompressionAlgorithm(java.lang.String algorithm)