|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.command.Prepared
org.h2.command.dml.ScriptBase
public abstract class ScriptBase
This class is the base for RunScriptCommand and ScriptCommand.
| Field Summary | |
|---|---|
protected java.io.InputStream |
in
The input stream. |
protected java.io.OutputStream |
out
The output stream. |
| Fields inherited from class org.h2.command.Prepared |
|---|
create, parameters, prepareAlways, session, sqlStatement |
| Constructor Summary | |
|---|---|
ScriptBase(Session session)
|
|
| Method Summary | |
|---|---|
void |
checkPowerOff()
Check if the simulated power failure occurred. |
void |
checkWritingAllowed()
Check if writing is allowed. |
void |
freeUpDiskSpace()
Free up disk space if possible. |
java.lang.String |
getDatabasePath()
Get the database path. |
protected java.lang.String |
getFileName()
|
java.lang.String |
getLobCompressionAlgorithm(int type)
Get the compression algorithm used for large objects. |
java.sql.Connection |
getLobConnection()
Get a database connection to be used for LOB access. |
SmallLRUCache<java.lang.String,java.lang.String[]> |
getLobFileListCache()
Get the lob file list cache if it is used. |
LobStorage |
getLobStorage()
Get the lob storage mechanism to use. |
java.lang.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. |
boolean |
isTransactional()
Check if this command is transactional. |
boolean |
needRecompile()
Check if the statement needs to be re-compiled. |
FileStore |
openFile(java.lang.String name,
java.lang.String mode,
boolean mustExist)
Open a file at the given location. |
void |
setCipher(java.lang.String c)
|
void |
setCompressionAlgorithm(java.lang.String algorithm)
|
void |
setFileNameExpr(Expression file)
|
void |
setPassword(char[] password)
|
| Methods inherited from class org.h2.command.Prepared |
|---|
checkCanceled, checkParameters, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, isQuery, isReadOnly, prepare, query, queryMeta, setCommand, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.io.OutputStream out
protected java.io.InputStream in
| Constructor Detail |
|---|
public ScriptBase(Session session)
| Method Detail |
|---|
public void setCipher(java.lang.String c)
public void setPassword(char[] password)
public void setFileNameExpr(Expression file)
protected java.lang.String getFileName()
public boolean isTransactional()
Prepared
isTransactional in class Preparedpublic boolean needRecompile()
Prepared
needRecompile in class Preparedpublic java.lang.String getDatabasePath()
DataHandler
getDatabasePath in interface DataHandler
public FileStore openFile(java.lang.String name,
java.lang.String mode,
boolean mustExist)
DataHandler
openFile in interface DataHandlername - the file namemode - the modemustExist - whether the file must already exist
public void checkPowerOff()
DataHandler
checkPowerOff in interface DataHandlerpublic void checkWritingAllowed()
DataHandler
checkWritingAllowed in interface DataHandlerpublic void freeUpDiskSpace()
DataHandler
freeUpDiskSpace in interface DataHandlerpublic int getMaxLengthInplaceLob()
DataHandler
getMaxLengthInplaceLob in interface DataHandlerpublic TempFileDeleter getTempFileDeleter()
DataHandler
getTempFileDeleter in interface DataHandlerpublic java.lang.String getLobCompressionAlgorithm(int type)
DataHandler
getLobCompressionAlgorithm in interface DataHandlertype - the data type (CLOB or BLOB)
public void setCompressionAlgorithm(java.lang.String algorithm)
public java.lang.Object getLobSyncObject()
DataHandler
getLobSyncObject in interface DataHandlerpublic SmallLRUCache<java.lang.String,java.lang.String[]> getLobFileListCache()
DataHandler
getLobFileListCache in interface DataHandlerpublic LobStorage getLobStorage()
DataHandler
getLobStorage in interface DataHandlerpublic java.sql.Connection getLobConnection()
DataHandler
getLobConnection in interface DataHandler
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||