Examples of toObjectId()


Examples of org.apache.cayenne.lifecycle.uuid.UuidCoder.toObjectId()

        ObjectId id = new ObjectId("x", "ID", 3l);

        UuidCoder coder = new UuidCoder(entity);
        assertEquals("x:3", coder.toUuid(id));

        ObjectId parsedId = coder.toObjectId("x:3");
        assertEquals(id, parsedId);
    }

    public void testSingleStringPk() {
        DbEntity dbEntity = new DbEntity("X");
View Full Code Here

Examples of org.apache.cayenne.lifecycle.uuid.UuidCoder.toObjectId()

        UuidCoder coder = new UuidCoder(entity);

        ObjectId id = new ObjectId("x", "ID", "AbC");
        assertEquals("x:AbC", coder.toUuid(id));

        ObjectId parsedId = coder.toObjectId("x:AbC");
        assertEquals(id, parsedId);
    }

    public void testIdEncoding() {
        DbEntity dbEntity = new DbEntity("X");
View Full Code Here

Examples of org.apache.cayenne.lifecycle.uuid.UuidCoder.toObjectId()

        UuidCoder coder = new UuidCoder(entity);

        ObjectId id = new ObjectId("x", "ID", "Ab:C");
        assertEquals("x:Ab%3AC", coder.toUuid(id));

        ObjectId parsedId = coder.toObjectId("x:Ab%3AC");
        assertEquals(id, parsedId);
    }

    public void testMixedCompoundPk() {
        DbEntity dbEntity = new DbEntity("X");
View Full Code Here

Examples of org.apache.cayenne.lifecycle.uuid.UuidCoder.toObjectId()

        idMap.put("ABC", 6783463l);
        idMap.put("ZZZ", "'_'");
        ObjectId id = new ObjectId("x", idMap);
        assertEquals("x:6783463:X%3BY:%27_%27", coder.toUuid(id));

        ObjectId parsedId = coder.toObjectId("x:6783463:X%3BY:%27_%27");
        assertEquals(id, parsedId);
    }
}
View Full Code Here

Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

    } catch (LargeObjectException.OutOfMemory tooBig) {
      return BINARY;

    } catch (LargeObjectException tooBig) {
      tooBig.setObjectId(id.toObjectId());
      throw tooBig;
    }
  }

  private boolean isBinary(String path) {
View Full Code Here

Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

    } catch (LargeObjectException.OutOfMemory tooBig) {
      return BINARY;

    } catch (LargeObjectException tooBig) {
      tooBig.setObjectId(id.toObjectId());
      throw tooBig;
    }
  }

  private boolean isBinary(String path) {
View Full Code Here

Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

    } catch (LargeObjectException.OutOfMemory tooBig) {
      return BINARY;

    } catch (LargeObjectException tooBig) {
      tooBig.setObjectId(id.toObjectId());
      throw tooBig;
    }
  }

  private boolean isBinary(String path) {
View Full Code Here

Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

      if (!isFileDiff(diff))
        continue;
      final AbbreviatedObjectId oldId = diff.getOldId();
      if (oldId == null)
        continue;
      include(commit, diff, BlobUtils.diff(reader, oldId.toObjectId(),
          diff.getNewId().toObjectId()));
      if (count >= total)
        break;
    }
    return count >= total ? true : include(false);
View Full Code Here

Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

      final Collection<DiffEntry> diffs) throws IOException {
    for (DiffEntry diff : diffs) {
      final AbbreviatedObjectId oldId = diff.getOldId();
      if (oldId == null)
        continue;
      if (!EMPTY_BLOB_ID.equals(oldId.toObjectId())
          && EMPTY_BLOB_ID.equals(diff.getNewId().toObjectId()))
        return true;
    }
    return false;
  }
View Full Code Here

Examples of org.eclipse.jgit.lib.AbbreviatedObjectId.toObjectId()

        continue;
      final AbbreviatedObjectId oldId = diff.getOldId();
      if (oldId == null)
        continue;
      if (!include(commit, diff, BlobUtils.diff(reader,
          oldId.toObjectId(), diff.getNewId().toObjectId())))
        return markEnd(commit).include(false);
    }
    markEnd(commit);
    return true;
  }
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.