| |
|
| java.lang.Object net.sf.hajdbc.sync.FullSynchronizationStrategy
FullSynchronizationStrategy | public class FullSynchronizationStrategy implements SynchronizationStrategy(Code) | | Database-independent synchronization strategy that only updates differences between two databases.
This strategy is best used when there are many differences between the active database and the inactive database (i.e. very much out of sync).
The following algorithm is used:
- Drop the foreign keys on the inactive database (to avoid integrity constraint violations)
- For each database table:
- Delete all rows in the inactive database table
- Query all rows on the active database table
- For each row in active database table:
- Insert new row into inactive database table
- Re-create the foreign keys on the inactive database
- Synchronize sequences
author: Paul Ferraro version: $Revision: 2012 $ since: 1.0 |
getFetchSize | public int getFetchSize()(Code) | | the fetchSize. |
getMaxBatchSize | public int getMaxBatchSize()(Code) | | the maxBatchSize. |
setFetchSize | public void setFetchSize(int fetchSize)(Code) | | Parameters: fetchSize - the fetchSize to set. |
setMaxBatchSize | public void setMaxBatchSize(int maxBatchSize)(Code) | | Parameters: maxBatchSize - the maxBatchSize to set. |
|
|
|