@Override public UID root() { return objectID(); }
@Override public UID root() { return objectID(); }
/** * Unique identifier of the owning version container. * * @return uid of owning version container */ public HierObjectID ownerID() { //TODO check if correct, the extension bit at the back? return new HierObjectID(uid.objectID(), null); }
/** * Unique identifier of the owning version container. * * @return uid of owning version container */ public HierObjectID ownerID() { //TODO check if correct, the extension bit at the back? return new HierObjectID(uid.objectID(), null); }
private void commitVersionCheck(ObjectVersionID vUid, ObjectVersionID precedingVUid) { if (versionCount() > 0 && !hasVersionID(precedingVUid)) { throw new IllegalArgumentException("precedingVersionID not found"); } if(!vUid.objectID().equals(this.uid.root())) { throw new IllegalArgumentException("ownerID different from versionedObject"); } }
private void commitVersionCheck(ObjectVersionID vUid, ObjectVersionID precedingVUid) { if (versionCount() > 0 && !hasVersionID(precedingVUid)) { throw new IllegalArgumentException("precedingVersionID not found"); } if(!vUid.objectID().equals(this.uid.root())) { throw new IllegalArgumentException("ownerID different from versionedObject"); } }