| java.lang.Object com.xoetrope.service.XReplicationEngine
All known Subclasses: com.xoetrope.service.replication.hsqldb.XHsqlReplicationEngine, com.xoetrope.service.replication.derby.XDerbyReplicationEngine, com.xoetrope.service.replication.mssql.XMsSqlReplicationEngine,
XReplicationEngine | abstract public class XReplicationEngine implements net.xoetrope.optional.data.sql.XReplicationEngine(Code) | | |
currentProject | protected XProject currentProject(Code) | | |
dataConnection | protected DataConnection dataConnection(Code) | | |
hasTimeStamps | protected static boolean hasTimeStamps(Code) | | |
lookupRemoteDataService | protected static boolean lookupRemoteDataService(Code) | | |
remoteService | protected ServiceProxy remoteService(Code) | | |
replicationStatementCount | protected static int replicationStatementCount(Code) | | |
XReplicationEngine | public XReplicationEngine(XProject project, DataConnection dataConn)(Code) | | Creates a new instance of XReplicationEngine
Parameters: project - the current project Parameters: dataConnection - DataConnection object to be used |
createTimestampTables | abstract protected void createTimestampTables()(Code) | | Creates the timestamp tables.
|
getNextId | public long getNextId(String tableName)(Code) | | Get the next ID for the named table, assuming one of the table's fields is
a managed field.
Parameters: tableName - the table name whose ID is to be inspected the next ID or a negative value if invalid |
getNextPseudoId | public long getNextPseudoId(String tableName)(Code) | | Get the next PSUEDOID for the names table
Parameters: tableName - the table name whose ID is to be inspected the next ID or a negative value if invalid |
getReplicationStatementCount | public static int getReplicationStatementCount()(Code) | | |
isSysTable | protected boolean isSysTable(String tableName)(Code) | | Indicates whether the specified table is a system table
Parameters: table - the name of the table to be queried true if the table is a system table, false otherwise |
removeDeleteRecords | protected void removeDeleteRecords(String tableName, String[] ids)(Code) | | |
requiresUpdate | protected boolean requiresUpdate(String tableName)(Code) | | Indicates whether the specified table should be updated
Parameters: tableName - the name of the table to be queried true if the table requires an udpate, false otherwise |
resetReplicationStatementCount | public static void resetReplicationStatementCount()(Code) | | |
synchronizeTable | public ResultSet synchronizeTable(String tableName, int updateStrategy)(Code) | | Synchronizes the specified local database table.
Parameters: tableName - the name of the table Parameters: connName - the connection name Parameters: updateStrategy - the strategory used to udpate the database. a result set for a non cachable query or if the data has beencached and the result set contains the subset of data matches the query.Null is returned if the the server returns the full dataset and the queryneeds to be run against the local copy. |
tableExists | protected boolean tableExists(String tableName)(Code) | | Tests whether the specified table exists locally.
Parameters: tablenName - the name of the table to be queried ture if the table exists, false otherwise |
tagLocalTable | abstract protected void tagLocalTable(String tableName)(Code) | | |
|
|