@Transactional(readOnly=true, propagation=NOT_SUPPORTED) public interface DataSynchroService
Modifier and Type | Method and Description |
---|---|
SynchroContext |
createSynchroContext(File sourceDbDirectory)
Create a synchro context, from a source database directory (HSQLDB only).
|
SynchroContext |
createSynchroContext(Properties sourceConnectionProperties)
Create a synchro context, using configuration properties for target and source properties.
|
void |
prepare(SynchroContext synchroContext)
Prepare the synchronize operation from the target data database supported
by this service, says just compute nb rows to update for each table and
update the result model.
|
void |
synchronize(SynchroContext synchroContext)
Launch the synchronize operation from the target data database supported
by this service.
|
SynchroContext createSynchroContext(File sourceDbDirectory)
sourceDbDirectory
- a directory with a HSQLDB directory.SynchroContext createSynchroContext(Properties sourceConnectionProperties)
sourceConnectionProperties
- Properties to use as source connection (could be Oracle, HSQLDB...)void prepare(SynchroContext synchroContext)
synchroContext
- Context of synchronization@Transactional(readOnly=false, propagation=REQUIRED) void synchronize(SynchroContext synchroContext)
synchroContext
- Context of synchronizationCopyright © 2012–2014 IFREMER. All rights reserved.