public class PerTableSynchronizationStrategy extends Object implements SynchronizationStrategy
Constructor and Description |
---|
PerTableSynchronizationStrategy(TableSynchronizationStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
<Z,D extends Database<Z>> |
destroy(DatabaseCluster<Z,D> cluster) |
String |
getId() |
<Z,D extends Database<Z>> |
init(DatabaseCluster<Z,D> cluster) |
<Z,D extends Database<Z>> |
synchronize(SynchronizationContext<Z,D> context)
Synchronizes a target database with a source database as defined by the synchronization context.
|
public PerTableSynchronizationStrategy(TableSynchronizationStrategy strategy)
public String getId()
getId
in interface Identifiable
public <Z,D extends Database<Z>> void init(DatabaseCluster<Z,D> cluster)
init
in interface SynchronizationStrategy
public <Z,D extends Database<Z>> void destroy(DatabaseCluster<Z,D> cluster)
destroy
in interface SynchronizationStrategy
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 failsCopyright © 2004–2014 Paul Ferraro. All rights reserved.