public class DumpRestoreSynchronizationStrategy extends Object implements SynchronizationStrategy
Constructor and Description |
---|
DumpRestoreSynchronizationStrategy() |
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) |
boolean |
isDataOnly() |
void |
setDataOnly(boolean dataOnly) |
<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 DumpRestoreSynchronizationStrategy()
public String getId()
getId
in interface Identifiable
public boolean isDataOnly()
public void setDataOnly(boolean dataOnly)
public <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 synchronize(SynchronizationContext<Z,D> context) throws SQLException
synchronize
in interface SynchronizationStrategy
context
- a synchronization contextSQLException
- if synchronization failsSynchronizationStrategy.synchronize(net.sf.hajdbc.sync.SynchronizationContext)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.