public abstract class SQLCommand extends Command implements CommandBuildResultsPlugin
| Modifier and Type | Field and Description |
|---|---|
static int |
CURSOR_SIZE
The default cursor size
|
| Constructor and Description |
|---|
SQLCommand(Connection connection,
Pattern pattern)
The base class for all commands that return a record set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendResult(org.w3c.dom.Element group,
int seq)
append the result set to a result group.
|
void |
appendResult(org.w3c.dom.Element group,
int offset,
int size,
java.lang.String cursorName,
int seq)
Append a result set to a result group for a cursor.
|
java.lang.String |
getCursorName()
Returns the name for the current cursor
|
java.lang.String |
getRecordKey(int row)
Not mandatory to supply a key for the row as well.
|
boolean |
isExecuteOnly()
is this defined ( JDBC spec) to be execute only
|
execute, execute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnName, getColumnType, getRawTitle, getRecordID, getValuepublic static final int CURSOR_SIZE
public SQLCommand(@Nonnull
Connection connection,
@Nonnull
Pattern pattern)
connection - The current connectionpattern - The command patternpublic void appendResult(org.w3c.dom.Element group,
int seq)
throws java.lang.Exception
appendResult in class Commandgroup - The XML Element for the result groupseq - The sequence in the result group.java.lang.Exception - A serious problem.public final void appendResult(org.w3c.dom.Element group,
int offset,
int size,
java.lang.String cursorName,
int seq)
throws java.lang.Exception
group - The XML Element for the result groupoffset - The row offsetsize - The number of rows to appendcursorName - The cursor name to useseq - The sequence number in the result group.java.lang.Exception - A serious problem.public java.lang.String getRecordKey(int row)
getRecordKey in interface CommandBuildResultsPluginrow - The row number ( offset from 1)public java.lang.String getCursorName()
throws java.lang.Exception
getCursorName in interface CommandBuildResultsPluginjava.lang.Exception - A serious problempublic boolean isExecuteOnly()
isExecuteOnly in interface CommandBuildResultsPluginstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.