Class MetadataUtils
java.lang.Object
com.arangodb.springframework.core.util.MetadataUtils
Generic utilities for metadata, such as records' _keys.
- Author:
- Reşat SABIQ, Christian Lechner
-
Field Details
-
KEY_DELIMITER
public static final char KEY_DELIMITER- See Also:
-
-
Method Details
-
determineDocumentKeyFromId
Provides a substring with _key.- Parameters:
id
- string consisting of concatenation of collection name, /, & _key.- Returns:
- _key
-
determineCollectionFromId
Provides a substring with collection name.- Parameters:
id
- string consisting of concatenation of collection name, /, & _key.- Returns:
- collection name (or null if no key delimiter is present)
-
createIdFromCollectionAndKey
Creates an _id from collection name and _key.- Parameters:
collectionName
- the name of a collectionkey
- the _key of a document- Returns:
- _id
-