Package org.syncany.database.FileContent

Examples of org.syncany.database.FileContent.FileChecksum


  }
 
  public static FileVersion createFileVersion(String path) {
    FileVersion fileVersion = new FileVersion();
   
    fileVersion.setChecksum(new FileChecksum(TestFileUtil.createRandomArray(20)));
    fileVersion.setLastModified(new Date());
    fileVersion.setPath(path);
    fileVersion.setStatus(FileStatus.NEW);
    fileVersion.setType(FileType.FILE);
    fileVersion.setUpdated(new Date());
View Full Code Here


    if (resultSet.getString("linktarget") != null) {
      fileVersion.setLinkTarget(resultSet.getString("linktarget"));
    }

    if (resultSet.getString("filecontent_checksum") != null) {
      FileChecksum fileChecksum = FileChecksum.parseFileChecksum(resultSet.getString("filecontent_checksum"));
      fileVersion.setChecksum(fileChecksum);
    }

    if (resultSet.getString("updated") != null) {
      fileVersion.setUpdated(new Date(resultSet.getTimestamp("updated").getTime()));
View Full Code Here

TOP

Related Classes of org.syncany.database.FileContent.FileChecksum

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.