Community
Participate
Working Groups
In CDO the URI fragments represent the CDOIDs of CDOObjects. The current format of the fragment is: CDOID.getType().ordinal() "/" CDOID.value // If CDOID.getType() != Type.OBJECT -InternalCDOIDObject.getSubType().ordinal() "/" CDOID.value // Otherwise That's hard to read, to parse and to use as a key in many environments (e.g. file system). Come up with a better format.
Created attachment 180568 [details] Patch v1 - for future reference
The new format involves a single character as a type/subtype prefix for the id value (no slash anymore!): public enum Type { NULL('N'), OBJECT(' '), // Superceded by ObjectType.getID() EXTERNAL_OBJECT('E'), DANGLING_OBJECT('D'), EXTERNAL_TEMP_OBJECT('e'), TEMP_OBJECT('t'), META('M'), TEMP_META('m') } public enum ObjectType { LONG('L'), STRING('S'), LONG_WITH_CLASSIFIER('l'), STRING_WITH_CLASSIFIER('s'), UUID('U') } The following methods have been updated accordingly: CDOIDUtil.write(StringBuilder, CDOID) CDOIDUtil.read(String)
Committed to HEAD
Available in R20110608-1407