@Service(value="dataSynchroService") @Lazy public class DataSynchroServiceImpl extends DataSynchroServiceImpl implements DataSynchroService
Constructor and Description |
---|
DataSynchroServiceImpl() |
DataSynchroServiceImpl(DataSource dataSource,
SynchroConfiguration config) |
Modifier and Type | Method and Description |
---|---|
DataSynchroContext |
createSynchroContext(File sourceDbDirectory,
int personId)
Create a synchro context, from a source database directory (HSQLDB only).
|
DataSynchroContext |
createSynchroContext(Properties sourceConnectionProperties,
int personId)
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.
|
@Autowired public DataSynchroServiceImpl(DataSource dataSource, SynchroConfiguration config)
public DataSynchroServiceImpl()
public DataSynchroContext createSynchroContext(File sourceDbDirectory, int personId)
DataSynchroService
sourceDbDirectory
- a directory with a HSQLDB directory.public DataSynchroContext createSynchroContext(Properties sourceConnectionProperties, int personId)
DataSynchroService
sourceConnectionProperties
- Properties to use as source connection (could be Oracle, HSQLDB...)public void prepare(SynchroContext synchroContext)
DataSynchroService
prepare
in interface DataSynchroService
prepare
in class DataSynchroServiceImpl
synchroContext
- Context of synchronizationpublic void synchronize(SynchroContext synchroContext)
DataSynchroService
synchronize
in interface DataSynchroService
synchronize
in class DataSynchroServiceImpl
synchroContext
- Context of synchronizationCopyright © 2012–2014 IFREMER. All rights reserved.