public class DeleteCommand extends SQLCommand
DELETE FROM table [ WHERE condition ]Usage
/* Delete all the answers for the questionaire 'TEST' */ DELETE FROM Answer WHERE questionaire.code = 'TEST'THREAD MODE: SINGLE THREADED command
CURSOR_SIZE
Constructor and Description |
---|
DeleteCommand(Connection connection,
Pattern pattern)
std.
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(Parser p)
execute the command.
|
java.lang.String |
getColumnName(int col)
implements getColumnName of interface CommandBuildResultsPlugin.
|
java.lang.String |
getColumnType(int col)
Gets the column type for the given column index, starting at one
|
java.lang.String |
getRecordID(int row)
the record ID
|
java.lang.Object |
getValue(int row,
int col)
the value for this row, column
|
boolean |
isExecuteOnly()
is this defined ( JDBC spec) to be execute only
|
appendResult, appendResult, getCursorName, getRecordKey
execute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRawTitle
public DeleteCommand(Connection connection, Pattern pattern)
connection
- the connectionpattern
- the patternprotected void execute(Parser p) throws java.lang.Exception
public boolean isExecuteOnly()
isExecuteOnly
in interface CommandBuildResultsPlugin
isExecuteOnly
in class SQLCommand
public java.lang.String getColumnName(int col)
col
- the column number to namepublic java.lang.String getColumnType(int col)
col
- the column indexpublic java.lang.String getRecordID(int row)
row
- the row indexpublic java.lang.Object getValue(int row, int col)
row
- the row indexcol
- the columnstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.