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 SynchronizationSupportSQLException - if database error occursSynchronizationSupport.dropForeignKeys()public void restoreForeignKeys() throws SQLException
restoreForeignKeys in interface SynchronizationSupportSQLException - if database error occursSynchronizationSupport.restoreForeignKeys()public void synchronizeSequences() throws SQLException
synchronizeSequences in interface SynchronizationSupportSQLException - if database error occursSynchronizationSupport.synchronizeSequences()public void synchronizeIdentityColumns() throws SQLException
synchronizeIdentityColumns in interface SynchronizationSupportSQLExceptionSynchronizationSupport.synchronizeIdentityColumns()public void dropUniqueConstraints() throws SQLException
dropUniqueConstraints in interface SynchronizationSupportSQLExceptionSynchronizationSupport.dropUniqueConstraints()public void restoreUniqueConstraints() throws SQLException
restoreUniqueConstraints in interface SynchronizationSupportSQLExceptionSynchronizationSupport.restoreUniqueConstraints()public void rollback(Connection connection)
rollback in interface SynchronizationSupportSynchronizationSupport.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 SynchronizationSupportSQLExceptionSynchronizationSupport.getObject(java.sql.ResultSet, int, int)Copyright © 2004–2014 Paul Ferraro. All rights reserved.