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.
|
void |
freeUpDiskSpace()
Free up disk space if possible.
|
String |
getDatabasePath()
Get the database path.
|
protected String |
getFileName() |
String |
getLobCompressionAlgorithm(int type)
Get the compression algorithm used for large objects.
|
Connection |
getLobConnection()
Get a database connection to be used for LOB access.
|
SmallLRUCache<String,String[]> |
getLobFileListCache()
Get the lob file list cache if it is used.
|
LobStorage |
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.
|
void |
setCharset(String charset) |
void |
setCipher(String c) |
void |
setCompressionAlgorithm(String algorithm) |
void |
setFileNameExpr(Expression file) |
void |
setPassword(char[] password) |
int |
update()
Execute the statement.
|
checkCanceled, checkParameters, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, isCacheable, isQuery, isReadOnly, prepare, query, setCommand, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toStringprotected OutputStream out
protected InputStream in
public RunScriptCommand(Session session)
public int update()
Preparedpublic void setCharset(String charset)
public ResultInterface queryMeta()
Preparedpublic int getType()
Preparedpublic void setCipher(String c)
public void setPassword(char[] password)
public void setFileNameExpr(Expression file)
protected String getFileName()
public boolean isTransactional()
PreparedisTransactional in class Preparedpublic boolean needRecompile()
PreparedneedRecompile in class Preparedpublic String getDatabasePath()
DataHandlergetDatabasePath in interface DataHandlerpublic FileStore openFile(String name, String mode, boolean mustExist)
DataHandleropenFile in interface DataHandlername - the file namemode - the modemustExist - whether the file must already existpublic void checkPowerOff()
DataHandlercheckPowerOff in interface DataHandlerpublic void checkWritingAllowed()
DataHandlercheckWritingAllowed in interface DataHandlerpublic void freeUpDiskSpace()
DataHandlerfreeUpDiskSpace in interface DataHandlerpublic int getMaxLengthInplaceLob()
DataHandlergetMaxLengthInplaceLob in interface DataHandlerpublic TempFileDeleter getTempFileDeleter()
DataHandlergetTempFileDeleter in interface DataHandlerpublic String getLobCompressionAlgorithm(int type)
DataHandlergetLobCompressionAlgorithm in interface DataHandlertype - the data type (CLOB or BLOB)public void setCompressionAlgorithm(String algorithm)
public Object getLobSyncObject()
DataHandlergetLobSyncObject in interface DataHandlerpublic SmallLRUCache<String,String[]> getLobFileListCache()
DataHandlergetLobFileListCache in interface DataHandlerpublic LobStorage getLobStorage()
DataHandlergetLobStorage in interface DataHandlerpublic Connection getLobConnection()
DataHandlergetLobConnection in interface DataHandlerCopyright © 2012 JBoss by Red Hat. All Rights Reserved.