Package org.eclipse.emf.cdo.common.id
Class CDOIDUtil
java.lang.Object
org.eclipse.emf.cdo.common.id.CDOIDUtil
Various static methods that may help with CDO
IDs
.- Since:
- 2.0
- Author:
- Eike Stepper
-
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractCDOID
createCDOIDObject
(CDOID.ObjectType subType) Deprecated.As of 4.2 no longer supported.static CDOIDExternal
createExternal
(String uri) static CDOIDAndBranch
createIDAndBranch
(CDOID id, CDOBranch branch) static CDOIDAndVersion
createIDAndVersion
(CDOID id, int version) static CDOIDAndVersion
createIDAndVersion
(CDOIDAndVersion source) static CDOID
createLong
(long value) static CDOID
createLongWithClassifier
(long value, CDOClassifierRef classifierRef) static CDOID
createLongWithClassifier
(CDOClassifierRef classifierRef, long value) Deprecated.As of 4.2 usecreateLongWithClassifier(long, CDOClassifierRef)
.static CDOID
createString
(String value) static CDOID
createStringWithClassifier
(String value, CDOClassifierRef classifierRef) static CDOID
createStringWithClassifier
(CDOClassifierRef classifierRef, String value) Deprecated.As of 4.2 usecreateStringWithClassifier(String, CDOClassifierRef)
.static CDOIDTemp
createTempObject
(int value) static CDOIDExternal
static CDOID
static CDOID
createUUID
(byte[] value) static byte[]
decodeUUID
(String string) static String
encodeUUID
(byte[] bytes) static boolean
static byte[]
getByteArray
(CDOID id) static CDOID
static CDOClassifierRef
static long
static String
static boolean
static CDOID
Format of the URI fragment.static CDOID
read
(CDODataInput in) static CDOID
read
(org.eclipse.net4j.util.io.ExtendedDataInput in) Deprecated.As of 4.2 useread(CDODataInput)
.static void
write
(StringBuilder builder, Iterable<?> objects) static void
write
(StringBuilder builder, CDOID id) Format of the uri fragment.static void
write
(CDODataOutput out, CDOID id) static void
Deprecated.As of 4.2 usewrite(CDODataOutput, CDOID)
.
-
Method Details
-
createMap
- Since:
- 4.2
-
createMap
- Since:
- 4.5
-
createIDAndVersion
- Since:
- 4.0
-
createIDAndVersion
- Since:
- 4.0
-
createIDAndBranch
- Since:
- 4.0
-
getCDOID
- Since:
- 4.2
-
isNull
- Since:
- 2.0
-
getLong
-
getString
- Since:
- 4.0
-
getByteArray
- Since:
- 4.1
-
getClassifierRef
- Since:
- 3.0
-
createTempObject
-
createTempObjectExternal
- Since:
- 3.0
-
createLong
-
createLongWithClassifier
- Since:
- 4.2
-
createString
- Since:
- 4.0
-
createStringWithClassifier
- Since:
- 4.2
-
createUUID
- Since:
- 4.1
-
createUUID
- Since:
- 4.1
-
encodeUUID
- Since:
- 4.1
-
decodeUUID
- Since:
- 4.1
-
createExternal
- Since:
- 2.0
-
write
- Since:
- 4.5
-
write
Format of the uri fragment.Non-legacy:
<ID TYPE>/<CUSTOM STRING FROM OBJECT FACTORY>
Legacy:
<ID TYPE>/<PACKAGE URI>/<CLASSIFIER ID>/<CUSTOM STRING FROM OBJECT FACTORY>
- Since:
- 2.0
-
read
Format of the URI fragment.Non-legacy:
<ID TYPE>/<CUSTOM STRING FROM OBJECT FACTORY>
Legacy:
<ID TYPE>/<PACKAGE URI>/<CLASSIFIER ID>/<CUSTOM STRING FROM OBJECT FACTORY>
- Since:
- 3.0
-
write
- Throws:
IOException
- Since:
- 4.2
-
read
- Throws:
IOException
- Since:
- 4.2
-
equals
- Since:
- 2.0
-
createLongWithClassifier
@Deprecated public static CDOID createLongWithClassifier(CDOClassifierRef classifierRef, long value) Deprecated.As of 4.2 usecreateLongWithClassifier(long, CDOClassifierRef)
.- Since:
- 3.0
-
createStringWithClassifier
@Deprecated public static CDOID createStringWithClassifier(CDOClassifierRef classifierRef, String value) Deprecated.As of 4.2 usecreateStringWithClassifier(String, CDOClassifierRef)
.- Since:
- 3.0
-
createCDOIDObject
Deprecated.As of 4.2 no longer supported. IDs can't be created without a value anymore.Creates the correct implementation class for the passedCDOID.ObjectType
.- Parameters:
subType
- the subType for which to create an empty CDOID instance- Returns:
- the instance of CDOIDObject which represents the subtype.
- Since:
- 3.0
-
write
@Deprecated public static void write(org.eclipse.net4j.util.io.ExtendedDataOutput out, CDOID id) throws IOException Deprecated.As of 4.2 usewrite(CDODataOutput, CDOID)
.- Throws:
IOException
- Since:
- 4.1
-
read
@Deprecated public static CDOID read(org.eclipse.net4j.util.io.ExtendedDataInput in) throws IOException Deprecated.As of 4.2 useread(CDODataInput)
.- Throws:
IOException
- Since:
- 4.1
-