public class SavePointCommand extends SQLCommand
SAVEPOINT text_identifierUsage
UPDATE employees SET salary = 95000 WHERE last_name = 'Smith'; SAVEPOINT justsmith; UPDATE employees SET salary = 1000000; SAVEPOINT everyone; SELECT SUM(salary) FROM employees; ROLLBACK TO SAVEPOINT justsmith; COMMIT;THREAD MODE: SINGLE THREADED command
CURSOR_SIZE
Constructor and Description |
---|
SavePointCommand(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)
the column name
|
java.lang.String |
getColumnType(int col)
get the column type
|
java.lang.String |
getRecordID(int row)
the record ID
|
java.lang.Object |
getValue(int row,
int col)
get the value
|
appendResult, appendResult, getCursorName, getRecordKey, isExecuteOnly
execute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRawTitle
public SavePointCommand(Connection connection, Pattern pattern)
connection
- the user connectionpattern
- the command patternprotected void execute(Parser p) throws java.lang.Exception
public java.lang.String getColumnName(int col)
col
- the columnpublic java.lang.String getColumnType(int col)
col
- the columnpublic java.lang.String getRecordID(int row)
row
- the rowpublic java.lang.Object getValue(int row, int col)
row
- the rowcol
- the colstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.