Examples of FileKey


Examples of org.eclipse.jgit.lib.RepositoryCache.FileKey

  }

  private AlternateHandle openAlternate(File objdir) throws IOException {
    final File parent = objdir.getParentFile();
    if (FileKey.isGitRepository(parent, fs)) {
      FileKey key = FileKey.exact(parent, fs);
      FileRepository db = (FileRepository) RepositoryCache.open(key);
      return new AlternateRepository(db);
    }

    ObjectDirectory db = new ObjectDirectory(config, objdir, null, fs);
View Full Code Here

Examples of org.eclipse.jgit.lib.RepositoryCache.FileKey

  }

  private AlternateHandle openAlternate(File objdir) throws IOException {
    final File parent = objdir.getParentFile();
    if (FileKey.isGitRepository(parent, fs)) {
      FileKey key = FileKey.exact(parent, fs);
      FileRepository db = (FileRepository) RepositoryCache.open(key);
      return new AlternateRepository(db);
    }

    ObjectDirectory db = new ObjectDirectory(config, objdir, null, fs, null);
View Full Code Here

Examples of org.eclipse.jgit.lib.RepositoryCache.FileKey

  }

  private AlternateHandle openAlternate(File objdir) throws IOException {
    final File parent = objdir.getParentFile();
    if (FileKey.isGitRepository(parent, fs)) {
      FileKey key = FileKey.exact(parent, fs);
      FileRepository db = (FileRepository) RepositoryCache.open(key);
      return new AlternateRepository(db);
    }

    ObjectDirectory db = new ObjectDirectory(config, objdir, null, fs, null);
View Full Code Here

Examples of org.eclipse.jgit.lib.RepositoryCache.FileKey

    if (isUnreasonableName(name)) {
      throw new RepositoryNotFoundException("Invalid name: " + name);
    }

    try {
      final FileKey loc = FileKey.lenient(gitDirOf(name), FS.DETECTED);
      return RepositoryCache.open(loc);
    } catch (IOException e1) {
      final RepositoryNotFoundException e2;
      e2 = new RepositoryNotFoundException("Cannot open repository " + name);
      e2.initCause(e1);
View Full Code Here

Examples of org.eclipse.jgit.lib.RepositoryCache.FileKey

      throw new RepositoryNotFoundException("Invalid name: " + name);
    }

    try {
      File dir = FileKey.resolve(gitDirOf(name), FS.DETECTED);
      FileKey loc;
      if (dir != null) {
        // Already exists on disk, use the repository we found.
        //
        loc = FileKey.exact(dir, FS.DETECTED);
      } else {
View Full Code Here

Examples of org.openqreg.bean.FileKey

    Long fileId = fetch.getValueAsLong("fileId");

    FileBean fileToGet = null;
    try {
      fileToGet = (FileBean) FileFinder.findByPrimaryKey(new FileKey(
          fileId));
    } catch (SQLException e) {
      log.log(Level.ERROR, "giveService() error finding file:", e);

    }
View Full Code Here

Examples of org.openqreg.bean.FileKey

* @return The primaryKey
*
*/
@JsonIgnore
public PrimaryKey getPrimaryKey() {
return new FileKey(getId());
}
View Full Code Here

Examples of org.openqreg.bean.FileKey

*/
public static Object findByPrimaryKey(Connection con, PrimaryKey key) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
FileBean valueObject = null;
FileKey primaryKey = (FileKey) key;
try{
pStmt = con.prepareStatement(FileBeanBase.SELECT_STATEMENT);
pStmt.setObject(1, primaryKey.getId());
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
}
View Full Code Here

Examples of org.openqreg.bean.FileKey

    Connection con = null;
    try {
      con = DbHandler.getConnection();
      con.setAutoCommit(false);
      FileBean fileBean = (FileBean) FileFinder.findByPrimaryKey(con,
          new FileKey(fileId));

      // service groups
      Collection<FileshareuserBean> col = FileshareuserFinder
          .findByFileid(con, fileBean.getId());
      // loop exsisting FileshareuserBean update or remove based on
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.