public class RunScriptCommand extends Prepared
Modifier and Type | Field and Description |
---|---|
protected InputStream |
in
The input stream.
|
protected OutputStream |
out
The output stream.
|
create, parameters, prepareAlways, session, sqlStatement
Constructor and Description |
---|
RunScriptCommand(Session session) |
Modifier and Type | Method and Description |
---|---|
void |
checkPowerOff()
Check if the simulated power failure occurred.
|
void |
checkWritingAllowed()
Check if writing is allowed.
|
CompareMode |
getCompareMode()
Return compare mode.
|
String |
getDatabasePath()
Get the database path.
|
protected String |
getFileName() |
JavaObjectSerializer |
getJavaObjectSerializer()
Return the serializer to be used for java objects being stored in
column of type OTHER.
|
String |
getLobCompressionAlgorithm(int type)
Get the compression algorithm used for large objects.
|
SmallLRUCache<String,String[]> |
getLobFileListCache()
Get the lob file list cache if it is used.
|
LobStorageBackend |
getLobStorage()
Get the lob storage mechanism to use.
|
Object |
getLobSyncObject()
Get the synchronization object for lob operations.
|
int |
getMaxLengthInplaceLob()
Get the maximum length of a in-place large object
|
TempFileDeleter |
getTempFileDeleter()
Get the temp file deleter mechanism.
|
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.
|
FileStore |
openFile(String name,
String mode,
boolean mustExist)
Open a file at the given location.
|
ResultInterface |
queryMeta()
Get an empty result set containing the meta data.
|
int |
readLob(long lobId,
byte[] hmac,
long offset,
byte[] buff,
int off,
int length)
Read from a lob.
|
void |
setCharset(Charset charset) |
void |
setCipher(String c) |
void |
setCompressionAlgorithm(String algorithm) |
void |
setFileNameExpr(Expression file) |
void |
setPassword(Expression password) |
int |
update()
Execute the statement.
|
checkCanceled, checkParameters, getCteCleanups, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSession, getSQL, getSQL, getSQL, isCacheable, isQuery, isReadOnly, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString
protected OutputStream out
protected InputStream in
public RunScriptCommand(Session session)
public int update()
Prepared
public void setCharset(Charset charset)
public ResultInterface queryMeta()
Prepared
public int getType()
Prepared
public void setCipher(String c)
public void setPassword(Expression password)
public void setFileNameExpr(Expression file)
protected String getFileName()
public boolean isTransactional()
Prepared
isTransactional
in class Prepared
public boolean needRecompile()
Prepared
needRecompile
in class Prepared
public String getDatabasePath()
DataHandler
getDatabasePath
in interface DataHandler
public FileStore openFile(String name, String mode, boolean mustExist)
DataHandler
openFile
in interface DataHandler
name
- the file namemode
- the modemustExist
- whether the file must already existpublic void checkPowerOff()
DataHandler
checkPowerOff
in interface DataHandler
public void checkWritingAllowed()
DataHandler
checkWritingAllowed
in interface DataHandler
public int getMaxLengthInplaceLob()
DataHandler
getMaxLengthInplaceLob
in interface DataHandler
public TempFileDeleter getTempFileDeleter()
DataHandler
getTempFileDeleter
in interface DataHandler
public String getLobCompressionAlgorithm(int type)
DataHandler
getLobCompressionAlgorithm
in interface DataHandler
type
- the data type (CLOB or BLOB)public void setCompressionAlgorithm(String algorithm)
public Object getLobSyncObject()
DataHandler
getLobSyncObject
in interface DataHandler
public SmallLRUCache<String,String[]> getLobFileListCache()
DataHandler
getLobFileListCache
in interface DataHandler
public LobStorageBackend getLobStorage()
DataHandler
getLobStorage
in interface DataHandler
public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length)
DataHandler
readLob
in interface DataHandler
lobId
- the lob idhmac
- the message authentication codeoffset
- the offset within the lobbuff
- the target bufferoff
- the offset within the target bufferlength
- the number of bytes to readpublic JavaObjectSerializer getJavaObjectSerializer()
DataHandler
getJavaObjectSerializer
in interface DataHandler
public CompareMode getCompareMode()
DataHandler
getCompareMode
in interface DataHandler
Copyright © 2020 JBoss by Red Hat. All rights reserved.