public class SyncCommand extends SQLCommand
SYNC CLASS class_name
URL url
[WHERE condition]
[PLUGIN java_class]
[ASSOCIATE associated_path[,...]]
[LINKED linked_path[,...]]
[CONFIG xml]
Usage/* synchronize Person from test database */ SYNC CLASS Person URL user:password@localhost/test_layer /* Synchronize a Questionaire and include all Questions */ SYNC CLASS Questionaire URL user:password@hostname:port/database WHERE code = 'TEST' ASSOCIATE [Question:questionaire]THREAD MODE: SINGLE THREADED command
CURSOR_SIZE| Constructor and Description |
|---|
SyncCommand(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)
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
|
appendResult, appendResult, getCursorName, getRecordKey, isExecuteOnlyexecute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRawTitlepublic SyncCommand(Connection connection, Pattern pattern)
connection - the connectionpattern - the patternprotected void execute(Parser p) throws java.lang.Exception
public java.lang.String getColumnName(int col)
col - the columnpublic java.lang.String getRecordID(int row)
row - the row indexpublic java.lang.String getColumnType(int col)
col - the column indexpublic java.lang.Object getValue(int row,
int col)
row - the row indexcol - the columnstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.