Package de.bwaldvogel.mongo.backend
Class Utils
java.lang.Object
de.bwaldvogel.mongo.backend.Utils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidchangeSubdocumentValue(Object document, String key, Object newValue) collectCommonPathFragments(String path1, String path2) static voidcopySubdocumentValue(Document input, Document result, String key) static StringdescribeType(Class<?> type) static StringdescribeType(Object value) static StringfirstFragment(String input) static StringgetCollectionNameFromFullName(String fullName) static StringgetDatabaseNameFromFullName(String fullName) static Stringstatic StringgetShorterPathIfPrefix(String path1, String path2) static ObjectgetSubdocumentValue(Document document, String key) static ObjectgetSubdocumentValueCollectionAware(Document document, String key) static booleanstatic Stringstatic Stringstatic voidstatic NumbernormalizeNumber(Number value) static ObjectremoveSubdocumentValue(Object document, String key) static voidvalidateFieldNames(Document document)
-
Field Details
-
PATH_DELIMITER
- See Also:
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getSubdocumentValue
-
getSubdocumentValueCollectionAware
-
getDatabaseNameFromFullName
-
getCollectionNameFromFullName
-
isTrue
-
normalizeNumber
-
markOkay
-
join
-
changeSubdocumentValue
-
validateFieldNames
-
removeSubdocumentValue
-
describeType
-
describeType
-
joinTail
-
firstFragment
-
splitPath
-
getShorterPathIfPrefix
-
collectCommonPathFragments
-
getHostName
-
copySubdocumentValue
-