public class FileSyncCommand extends SQLCommand
FILE_SYNC [file_key LOCATION file_server] | [PURGE [LOCATION file_server] [FROM modifyFrom] [TO modifyTo]]Usage
/* Sync file to another location */ FILE_SYNC file_key location /* Purge the duplicated file in DEFAULT filestore in given date period */ FILE_SYNC PURGE FROM '1 Jan 2006' TO '1 Jan 2007' /* Purge the duplicated file in NAM filestore */ FILE_SYNC PURGE LOCATION 'NAM'THREAD MODE: SINGLE THREADED command
CURSOR_SIZE
Constructor and Description |
---|
FileSyncCommand(Connection connection,
Pattern pattern)
Creates a new FileCommand object.
|
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)
Implements getColumnType of interface CommandBuildResultsPlugin.
|
java.lang.String |
getRecordID(int row)
Implements getRecordID of interface CommandBuildResultsPlugin.
|
java.lang.Object |
getValue(int row,
int col)
Implements getValue method of interface CommandBuildResultsPlugin.
|
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 FileSyncCommand(Connection connection, Pattern pattern)
connection
- the connection the command was issued frompattern
- the command patternprotected void execute(Parser p) throws java.lang.Exception
public java.lang.Object getValue(int row, int col) throws java.lang.Exception
row
- the index of the rowcol
- the index of the columnjava.lang.Exception
- a serious problempublic java.lang.String getColumnType(int col) throws java.lang.Exception
col
- the column number to get type ofjava.lang.Exception
- Serious Errorpublic java.lang.String getColumnName(int col)
col
- the column number to namepublic java.lang.String getRecordID(int row)
row
- the index of the row to identifystSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.