ReplicateDataBase constructor

ReplicateDataBase(
  1. WardenType localWardenType,
  2. WardenType remoteWardenType,
  3. SchemaMetaData smd,
  4. SchemaMetaData smdSys,
  5. DbTransaction importTransaction,
  6. DbTransaction exportTransaction,
  7. bool initializeTables,
)

Implementation

ReplicateDataBase(
    this.localWardenType,
    this.remoteWardenType,
    this.smd,
    this.smdSys,
    this.importTransaction,
    this.exportTransaction,
    this.initializeTables) {
  userTools = UserTools();
  AbstractWarden abstractWarden = WardenFactory.getAbstractWarden(
      localWardenType, remoteWardenType);
  remoteDtoDbHelper = RemoteDtoDbHelper(localWardenType, remoteWardenType,
      smd, smdSys, exportTransaction, abstractWarden);
  importWaterLineDao = WaterLineDao.sep(smdSys, importTransaction);

  serverWarden = ServerWarden(localWardenType, importWaterLineDao);
  remoteDtoFactory = RemoteDtoFactory();
  exportWaterLineDao = WaterLineDao.sep(smdSys, exportTransaction);
  transactionsFactory = TransactionsFactory(
      localWardenType, remoteWardenType, smd, smdSys, exportTransaction);
  minimalSet = false;
  minimalEnumSet = null;
}