public class SynchronizationSupportImpl<Z,D extends Database<Z>> extends Object implements SynchronizationSupport
SynchronizationSupport
implementation.Constructor and Description |
---|
SynchronizationSupportImpl(SynchronizationContext<Z,D> context) |
Modifier and Type | Method and Description |
---|---|
void |
dropForeignKeys()
Drop all foreign key constraints on the target database
|
void |
dropUniqueConstraints() |
Object |
getObject(ResultSet resultSet,
int index,
int type)
Helper method for
ResultSet.getObject(int) with special handling for large objects. |
void |
restoreForeignKeys()
Restores all foreign key constraints on the target database
|
void |
restoreUniqueConstraints() |
void |
rollback(Connection connection) |
void |
synchronizeIdentityColumns() |
void |
synchronizeSequences()
Synchronizes the sequences on the target database with the source database.
|
public SynchronizationSupportImpl(SynchronizationContext<Z,D> context)
public void dropForeignKeys() throws SQLException
dropForeignKeys
in interface SynchronizationSupport
SQLException
- if database error occursSynchronizationSupport.dropForeignKeys()
public void restoreForeignKeys() throws SQLException
restoreForeignKeys
in interface SynchronizationSupport
SQLException
- if database error occursSynchronizationSupport.restoreForeignKeys()
public void synchronizeSequences() throws SQLException
synchronizeSequences
in interface SynchronizationSupport
SQLException
- if database error occursSynchronizationSupport.synchronizeSequences()
public void synchronizeIdentityColumns() throws SQLException
synchronizeIdentityColumns
in interface SynchronizationSupport
SQLException
SynchronizationSupport.synchronizeIdentityColumns()
public void dropUniqueConstraints() throws SQLException
dropUniqueConstraints
in interface SynchronizationSupport
SQLException
SynchronizationSupport.dropUniqueConstraints()
public void restoreUniqueConstraints() throws SQLException
restoreUniqueConstraints
in interface SynchronizationSupport
SQLException
SynchronizationSupport.restoreUniqueConstraints()
public void rollback(Connection connection)
rollback
in interface SynchronizationSupport
SynchronizationSupport.rollback(java.sql.Connection)
public Object getObject(ResultSet resultSet, int index, int type) throws SQLException
ResultSet.getObject(int)
with special handling for large objects.getObject
in interface SynchronizationSupport
SQLException
SynchronizationSupport.getObject(java.sql.ResultSet, int, int)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.