public class ScriptCommand extends Prepared
| Modifier and Type | Field and Description |
|---|---|
protected java.io.OutputStream |
out
The output stream.
|
protected java.io.BufferedReader |
reader
The input reader.
|
create, parameters, prepareAlways, session, sqlStatement, sqlTokens| Constructor and Description |
|---|
ScriptCommand(SessionLocal session) |
| Modifier and Type | Method and Description |
|---|---|
static java.io.InputStream |
combineBlob(java.sql.Connection conn,
int id)
Combine a BLOB.
|
static java.io.Reader |
combineClob(java.sql.Connection conn,
int id)
Combine a CLOB.
|
protected java.lang.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(java.nio.charset.Charset charset) |
void |
setCipher(java.lang.String c) |
void |
setCompressionAlgorithm(java.lang.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(java.util.Set<java.lang.String> schemaNames) |
void |
setSettings(boolean settings) |
void |
setSimple(boolean simple) |
void |
setTables(java.util.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 java.io.OutputStream out
protected java.io.BufferedReader reader
public ScriptCommand(SessionLocal session)
public boolean isQuery()
Preparedpublic void setSchemaNames(java.util.Set<java.lang.String> schemaNames)
public void setTables(java.util.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 java.io.InputStream combineBlob(java.sql.Connection conn,
int id)
throws java.sql.SQLException
conn - a connectionid - the lob idjava.sql.SQLException - on failurepublic static java.io.Reader combineClob(java.sql.Connection conn,
int id)
throws java.sql.SQLException
conn - a connectionid - the lob idjava.sql.SQLException - on failurepublic void setSimple(boolean simple)
public void setWithColumns(boolean withColumns)
public void setVersion(boolean version)
public void setCharset(java.nio.charset.Charset charset)
public int getType()
Preparedpublic void setCipher(java.lang.String c)
public void setPassword(Expression password)
public void setFileNameExpr(Expression file)
protected java.lang.String getFileName()
public boolean isTransactional()
PreparedisTransactional in class Preparedpublic boolean needRecompile()
PreparedneedRecompile in class Preparedpublic void setCompressionAlgorithm(java.lang.String algorithm)