public class RunScriptCommand extends Prepared
| 限定符和类型 | 字段和说明 |
|---|---|
protected OutputStream |
out
The output stream.
|
protected BufferedReader |
reader
The input reader.
|
create, parameters, prepareAlways, session, sqlStatement, sqlTokens| 构造器和说明 |
|---|
RunScriptCommand(SessionLocal session) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected 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(Charset charset) |
void |
setCipher(String c) |
void |
setCompressionAlgorithm(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, isWithParamValues, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toStringprotected OutputStream out
protected BufferedReader reader
public RunScriptCommand(SessionLocal session)
public long update()
Preparedpublic void setCharset(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(String c)
public void setPassword(Expression password)
public void setFileNameExpr(Expression file)
protected String getFileName()
public boolean isTransactional()
PreparedisTransactional 在类中 Preparedpublic boolean needRecompile()
PreparedneedRecompile 在类中 Preparedpublic void setCompressionAlgorithm(String algorithm)
Copyright © 2022. All rights reserved.