Package org.syncany.database

Examples of org.syncany.database.SqlDatabase


  private FileVersionComparator fileVersionComparator;
 
  public FileSystemActionReconciliator(Config config, ChangeSet changeSet) {
    this.config = config;
    this.changeSet = changeSet;
    this.localDatabase = new SqlDatabase(config);
    this.fileVersionComparator = new FileVersionComparator(config.getLocalDir(), config.getChunker().getChecksumAlgorithm());
  }
View Full Code Here


   
  public LsOperation(Config config, LsOperationOptions options) {
    super(config);   
   
    this.options = options;
    this.localDatabase = new SqlDatabase(config);
 
View Full Code Here

    super(config, ACTION_ID);

    this.eventBus = LocalEventBus.getInstance();   
    this.options = options;
    this.result = new UpOperationResult();
    this.localDatabase = new SqlDatabase(config);
    this.remoteTransaction = new RemoteTransaction(config, transferManager);
  }
View Full Code Here

    this.eventBus = LocalEventBus.getInstance();
   
    this.options = options;
    this.result = new DownOperationResult();

    this.localDatabase = new SqlDatabase(config);
    this.databaseReconciliator = new DatabaseReconciliator();
    this.databaseSerializer = new DatabaseXmlSerializer(config.getTransformer());
  }
View Full Code Here

  private LocalEventBus eventBus;

  public Indexer(Config config, Deduper deduper) {
    this.config = config;
    this.deduper = deduper;
    this.localDatabase = new SqlDatabase(config);

    this.eventBus = LocalEventBus.getInstance();
  }
View Full Code Here

 
  public StatusOperation(Config config, StatusOperationOptions options) {
    super(config);   
   
    this.fileVersionComparator = new FileVersionComparator(config.getLocalDir(), config.getChunker().getChecksumAlgorithm());
    this.localDatabase = new SqlDatabase(config);
    this.options = options;   
   
    this.eventBus = LocalEventBus.getInstance();
 
View Full Code Here

  public CleanupOperation(Config config, CleanupOperationOptions options) {
    super(config, ACTION_ID);

    this.options = options;
    this.result = new CleanupOperationResult();
    this.localDatabase = new SqlDatabase(config);
  }
View Full Code Here

  private LocalEventBus eventBus;
 
  public GetFileFolderRequestHandler(Config config) {
    super(config);   
   
    this.localDatabase = new SqlDatabase(config);
    this.eventBus = LocalEventBus.getInstance();
  }
View Full Code Here

    File reconstructedFileInCache = assembleFileToCache(reconstructedFileVersion);   
    moveFileToFinalLocation(reconstructedFileInCache, reconstructedFileVersion)
  }
 
  protected File assembleFileToCache(FileVersion reconstructedFileVersion) throws Exception {
    SqlDatabase localDatabase = new SqlDatabase(config);
    Assembler assembler = new Assembler(config, localDatabase, winningDatabase);

    File reconstructedFileInCache = assembler.assembleToCache(reconstructedFileVersion);
    
    setFileAttributes(reconstructedFileVersion, reconstructedFileInCache);
View Full Code Here

public class GetFileHistoryFolderRequestHandler extends FolderRequestHandler {
  private SqlDatabase localDatabase;

  public GetFileHistoryFolderRequestHandler(Config config) {
    super(config);
    this.localDatabase = new SqlDatabase(config);
  }
View Full Code Here

TOP

Related Classes of org.syncany.database.SqlDatabase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.