Class Utils

java.lang.Object
de.bwaldvogel.mongo.backend.Utils

public class Utils extends Object
  • Field Details

  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • getSubdocumentValue

      public static Object getSubdocumentValue(Document document, String key)
    • getSubdocumentValueCollectionAware

      public static Object getSubdocumentValueCollectionAware(Document document, String key)
    • getDatabaseNameFromFullName

      public static String getDatabaseNameFromFullName(String fullName)
    • getCollectionNameFromFullName

      public static String getCollectionNameFromFullName(String fullName)
    • isTrue

      public static boolean isTrue(Object value)
    • normalizeNumber

      public static Number normalizeNumber(Number value)
    • markOkay

      public static void markOkay(Document result)
    • join

      public static String join(List<?> values, String delimiter)
    • changeSubdocumentValue

      public static void changeSubdocumentValue(Object document, String key, Object newValue)
    • validateFieldNames

      public static void validateFieldNames(Document document)
    • removeSubdocumentValue

      public static Object removeSubdocumentValue(Object document, String key)
    • describeType

      public static String describeType(Object value)
    • describeType

      public static String describeType(Class<?> type)
    • joinTail

      public static String joinTail(List<String> pathFragments)
    • firstFragment

      public static String firstFragment(String input)
    • splitPath

      public static List<String> splitPath(String input)
    • getShorterPathIfPrefix

      public static String getShorterPathIfPrefix(String path1, String path2)
    • collectCommonPathFragments

      public static List<String> collectCommonPathFragments(String path1, String path2)
    • getHostName

      public static String getHostName()
    • copySubdocumentValue

      public static void copySubdocumentValue(Document input, Document result, String key)