public class DifferentialSynchronizationStrategy extends Object implements SynchronizationStrategy, TableSynchronizationStrategy
Constructor and Description |
---|
DifferentialSynchronizationStrategy() |
Modifier and Type | Method and Description |
---|---|
<Z,D extends Database<Z>> |
destroy(DatabaseCluster<Z,D> cluster) |
<Z,D extends Database<Z>> |
dropConstraints(SynchronizationContext<Z,D> context) |
int |
getFetchSize() |
String |
getId() |
int |
getMaxBatchSize() |
String |
getVersionPattern() |
<Z,D extends Database<Z>> |
init(DatabaseCluster<Z,D> cluster) |
<Z,D extends Database<Z>> |
restoreConstraints(SynchronizationContext<Z,D> context) |
void |
setFetchSize(int fetchSize) |
void |
setMaxBatchSize(int maxBatchSize) |
void |
setVersionPattern(String versionPattern) |
<Z,D extends Database<Z>> |
synchronize(SynchronizationContext<Z,D> context)
Synchronizes a target database with a source database as defined by the synchronization context.
|
<Z,D extends Database<Z>> |
synchronize(SynchronizationContext<Z,D> context,
TableProperties table) |
public DifferentialSynchronizationStrategy()
public String getId()
getId
in interface Identifiable
public <Z,D extends Database<Z>> void synchronize(SynchronizationContext<Z,D> context) throws SQLException
SynchronizationStrategy
synchronize
in interface SynchronizationStrategy
context
- a synchronization contextSQLException
- if synchronization failspublic <Z,D extends Database<Z>> void init(DatabaseCluster<Z,D> cluster)
init
in interface SynchronizationStrategy
SynchronizationStrategy.init(net.sf.hajdbc.DatabaseCluster)
public <Z,D extends Database<Z>> void destroy(DatabaseCluster<Z,D> cluster)
destroy
in interface SynchronizationStrategy
SynchronizationStrategy.destroy(net.sf.hajdbc.DatabaseCluster)
public <Z,D extends Database<Z>> void dropConstraints(SynchronizationContext<Z,D> context) throws SQLException
dropConstraints
in interface TableSynchronizationStrategy
SQLException
public <Z,D extends Database<Z>> void restoreConstraints(SynchronizationContext<Z,D> context) throws SQLException
restoreConstraints
in interface TableSynchronizationStrategy
SQLException
public <Z,D extends Database<Z>> void synchronize(SynchronizationContext<Z,D> context, TableProperties table) throws SQLException
synchronize
in interface TableSynchronizationStrategy
SQLException
SynchronizationStrategy.synchronize(net.sf.hajdbc.sync.SynchronizationContext)
public int getFetchSize()
public void setFetchSize(int fetchSize)
fetchSize
- the fetchSize to set.public int getMaxBatchSize()
public void setMaxBatchSize(int maxBatchSize)
maxBatchSize
- The maxBatchSize to set.public String getVersionPattern()
public void setVersionPattern(String versionPattern)
versionPattern
- the versionPattern to setCopyright © 2004–2014 Paul Ferraro. All rights reserved.