public class ScriptCommand extends Prepared
| 限定符和类型 | 字段和说明 |
|---|---|
protected OutputStream |
out
The output stream.
|
protected BufferedReader |
reader
The input reader.
|
create, parameters, prepareAlways, session, sqlStatement, sqlTokens| 构造器和说明 |
|---|
ScriptCommand(SessionLocal session) |
| 限定符和类型 | 方法和说明 |
|---|---|
static InputStream |
combineBlob(Connection conn,
int id)
Combine a BLOB.
|
static Reader |
combineClob(Connection conn,
int id)
Combine a CLOB.
|
protected String |
getFileName() |
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.
|
ResultInterface |
query(long maxrows)
Execute the query.
|
ResultInterface |
queryMeta()
Get an empty result set containing the meta data.
|
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) |
void |
setVersion(boolean version) |
void |
setWithColumns(boolean withColumns) |
checkCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isReadOnly, isWithParamValues, prepare, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toString, updateprotected OutputStream out
protected BufferedReader reader
public ScriptCommand(SessionLocal 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(long maxrows)
Preparedpublic static InputStream combineBlob(Connection conn, int id) throws SQLException
conn - a connectionid - the lob idSQLException - on failurepublic static Reader combineClob(Connection conn, int id) throws SQLException
conn - a connectionid - the lob idSQLException - on failurepublic void setSimple(boolean simple)
public void setWithColumns(boolean withColumns)
public void setVersion(boolean version)
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 void setCompressionAlgorithm(String algorithm)
Copyright © 2022. All rights reserved.