public class CopyCommand extends SQLCommand
COPY global_keyUsage
/* creates a new object that is a copy of an existing one */ COPY 1@1~1@1THREAD MODE: SINGLE THREADED command
CURSOR_SIZE
Constructor and Description |
---|
CopyCommand(Connection connection,
Pattern pattern)
Creates a new CopyCommand
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(Parser parser)
Executes the command.
|
java.lang.String |
getColumnName(int col)
Gets the name of the given column
|
java.lang.String |
getColumnType(int col)
Gets the data type for the given column
|
java.lang.String |
getRecordID(int row)
Get the record ID used in the result
|
java.lang.Object |
getValue(int row,
int col)
Gets the value for the cell indexed by row and column
|
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 CopyCommand(Connection connection, Pattern pattern)
connection
- the connection executing the commandpattern
- the command patternprotected void execute(Parser parser) throws java.lang.Exception
public java.lang.Object getValue(int row, int col) throws java.lang.Exception
row
- the cell row indexcol
- the cell column indexjava.lang.Exception
- a failure to the get the cell valuepublic java.lang.String getColumnType(int col) throws java.lang.Exception
col
- the column indexjava.lang.Exception
- column type errorpublic java.lang.String getColumnName(int col)
col
- the column to namepublic java.lang.String getRecordID(int row)
row
- the record to IDstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.