Class RunScriptCommand
java.lang.Object
org.h2.command.Prepared
org.h2.command.dml.ScriptBase
org.h2.command.dml.RunScriptCommand
This class represents the statement
RUNSCRIPT
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Charsetprivate booleanprivate booleanprivate static final charThe byte order mark.private booleanFields inherited from class ScriptBase
out, readerFields inherited from class Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidintgetType()Get the command type as defined in CommandInterfaceGet an empty result set containing the meta data.voidsetCharset(Charset charset) voidEnables quirks for parsing scripts from H2 1.*.*.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 ScriptBase
closeIO, deleteStore, getFileName, isTransactional, needRecompile, openInput, openOutput, setCipher, setCompressionAlgorithm, setFileNameExpr, setPasswordMethods inherited from class Prepared
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, toString
-
Field Details
-
UTF8_BOM
private static final char UTF8_BOMThe byte order mark. 0xfeff because this is the Unicode char represented by the UTF-8 byte order mark (EF BB BF).- See Also:
-
charset
-
quirksMode
private boolean quirksMode -
variableBinary
private boolean variableBinary -
from1X
private boolean from1X
-
-
Constructor Details
-
RunScriptCommand
-
-
Method Details
-
update
-
execute
-
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
-