Package org.h2.command.dml
Class RunScriptCommand
java.lang.Object
org.h2.command.Prepared
org.h2.command.dml.RunScriptCommand
This class represents the statement
RUNSCRIPT
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OutputStreamThe output stream.protected BufferedReaderThe input reader.Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringintgetType()Get the command type as defined in CommandInterfacebooleanCheck if this command is transactional.booleanCheck if the statement needs to be re-compiled.Get an empty result set containing the meta data.voidsetCharset(Charset charset) voidvoidsetCompressionAlgorithm(String algorithm) voidsetFileNameExpr(Expression file) voidEnables quirks for parsing scripts from H2 1.*.*.voidsetPassword(Expression password) voidsetQuirksMode(boolean quirksMode) Enables or disables the quirks mode.voidsetVariableBinary(boolean variableBinary) Changes parsing of a BINARY data type.longupdate()Execute the statement.Methods inherited from class org.h2.command.Prepared
checkCanceled, checkParameters, collectDependencies, getCurrentRowNumber, getDatabase, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isQuery, isReadOnly, isRetryable, isWithParamValues, prepare, query, setCommand, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toString
-
Field Details
-
out
The output stream. -
reader
The input reader.
-
-
Constructor Details
-
RunScriptCommand
-
-
Method Details
-
update
public long update()Description copied from class:PreparedExecute the statement. -
setCharset
-
setQuirksMode
public void setQuirksMode(boolean quirksMode) Enables or disables the quirks mode.- Parameters:
quirksMode- whether quirks mode should be enabled
-
setVariableBinary
public void setVariableBinary(boolean variableBinary) Changes parsing of a BINARY data type.- Parameters:
variableBinary-trueto parse BINARY as VARBINARY,falseto parse it as is
-
setFrom1X
public void setFrom1X()Enables quirks for parsing scripts from H2 1.*.*. -
queryMeta
Description copied from class:PreparedGet an empty result set containing the meta data. -
getType
public int getType()Description copied from class:PreparedGet the command type as defined in CommandInterface -
setCipher
-
setPassword
-
setFileNameExpr
-
getFileName
-
isTransactional
public boolean isTransactional()Description copied from class:PreparedCheck if this command is transactional. If it is not, then it forces the current transaction to commit.- Specified by:
isTransactionalin classPrepared- Returns:
- true if it is
-
needRecompile
public boolean needRecompile()Description copied from class:PreparedCheck if the statement needs to be re-compiled.- Overrides:
needRecompilein classPrepared- Returns:
- true if it must
-
setCompressionAlgorithm
-