public class ScriptCommand extends Prepared
| 限定符和类型 | 字段和说明 |
|---|---|
protected InputStream |
in
The input stream.
|
protected OutputStream |
out
The output stream.
|
create, parameters, prepareAlways, session, sqlStatement| 构造器和说明 |
|---|
ScriptCommand(Session session) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkPowerOff()
Check if the simulated power failure occurred.
|
void |
checkWritingAllowed()
Check if writing is allowed.
|
static InputStream |
combineBlob(Connection conn,
int id)
Combine a BLOB.
|
static Reader |
combineClob(Connection conn,
int id)
Combine a CLOB.
|
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 |
isQuery()
Check if this object is a query.
|
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 |
query(int maxrows)
Execute the query.
|
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 |
setData(boolean data) |
void |
setDrop(boolean drop) |
void |
setFileNameExpr(Expression file) |
void |
setLobBlockSize(long blockSize) |
void |
setPassword(Expression password) |
void |
setPasswords(boolean passwords) |
void |
setSchemaNames(Set<String> schemaNames) |
void |
setSettings(boolean settings) |
void |
setSimple(boolean simple) |
void |
setTables(Collection<Table> tables) |
checkCanceled, checkParameters, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, isCacheable, isReadOnly, prepare, setCommand, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString, updateprotected OutputStream out
protected InputStream in
public ScriptCommand(Session session)
public boolean isQuery()
Preparedpublic void setTables(Collection<Table> tables)
public void setData(boolean data)
public void setPasswords(boolean passwords)
public void setSettings(boolean settings)
public void setLobBlockSize(long blockSize)
public void setDrop(boolean drop)
public ResultInterface queryMeta()
Preparedpublic ResultInterface query(int maxrows)
Preparedpublic static InputStream combineBlob(Connection conn, int id) throws SQLException
conn - a connectionid - the lob idSQLExceptionpublic static Reader combineClob(Connection conn, int id) throws SQLException
conn - a connectionid - the lob idSQLExceptionpublic void setSimple(boolean simple)
public void setCharset(Charset charset)
public int getType()
Preparedpublic void setCipher(String c)
public void setPassword(Expression password)
public void setFileNameExpr(Expression file)
protected String getFileName()
public boolean isTransactional()
PreparedisTransactional 在类中 Preparedpublic boolean needRecompile()
PreparedneedRecompile 在类中 Preparedpublic String getDatabasePath()
DataHandlergetDatabasePath 在接口中 DataHandlerpublic FileStore openFile(String name, String mode, boolean mustExist)
DataHandleropenFile 在接口中 DataHandlername - the file namemode - the modemustExist - whether the file must already existpublic void checkPowerOff()
DataHandlercheckPowerOff 在接口中 DataHandlerpublic void checkWritingAllowed()
DataHandlercheckWritingAllowed 在接口中 DataHandlerpublic int getMaxLengthInplaceLob()
DataHandlergetMaxLengthInplaceLob 在接口中 DataHandlerpublic TempFileDeleter getTempFileDeleter()
DataHandlergetTempFileDeleter 在接口中 DataHandlerpublic String getLobCompressionAlgorithm(int type)
DataHandlergetLobCompressionAlgorithm 在接口中 DataHandlertype - the data type (CLOB or BLOB)public void setCompressionAlgorithm(String algorithm)
public Object getLobSyncObject()
DataHandlergetLobSyncObject 在接口中 DataHandlerpublic SmallLRUCache<String,String[]> getLobFileListCache()
DataHandlergetLobFileListCache 在接口中 DataHandlerpublic LobStorageBackend getLobStorage()
DataHandlergetLobStorage 在接口中 DataHandlerpublic int readLob(long lobId,
byte[] hmac,
long offset,
byte[] buff,
int off,
int length)
DataHandlerreadLob 在接口中 DataHandlerlobId - 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()
DataHandlergetJavaObjectSerializer 在接口中 DataHandlerpublic CompareMode getCompareMode()
DataHandlergetCompareMode 在接口中 DataHandlerCopyright © 2017. All rights reserved.