Package org.h2.command.dml
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 Charset
private boolean
private boolean
private static final char
The byte order mark.private boolean
Fields inherited from class org.h2.command.dml.ScriptBase
out, reader
Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
int
getType()
Get the command type as defined in CommandInterfaceGet an empty result set containing the meta data.void
setCharset
(Charset charset) void
Enables quirks for parsing scripts from H2 1.*.*.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.Methods inherited from class org.h2.command.dml.ScriptBase
closeIO, deleteStore, getFileName, isTransactional, needRecompile, openInput, openOutput, setCipher, setCompressionAlgorithm, setFileNameExpr, setPassword
Methods inherited from class org.h2.command.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
public long update()Description copied from class:Prepared
Execute the statement. -
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
-true
to parse BINARY as VARBINARY,false
to parse it as is
-
setFrom1X
public void setFrom1X()Enables quirks for parsing scripts from H2 1.*.*. -
queryMeta
Description copied from class:Prepared
Get an empty result set containing the meta data. -
getType
public int getType()Description copied from class:Prepared
Get the command type as defined in CommandInterface
-