Class DatabaseUtil


  • public class DatabaseUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      DatabaseUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean checkDatabaseType​(java.lang.String... databaseTypes)
      Checks if the currently used database is of a given database type.
      static boolean checkDatabaseType​(ProcessEngineConfigurationImpl configuration, java.lang.String... databaseTypes)
      Checks if the currently used database is of a given database type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DatabaseUtil

        public DatabaseUtil()
    • Method Detail

      • checkDatabaseType

        public static boolean checkDatabaseType​(java.lang.String... databaseTypes)
        Checks if the currently used database is of a given database type.
        Parameters:
        databaseTypes - to check for
        Returns:
        true if any of the provided types match the used one. Otherwise false.
      • checkDatabaseType

        public static boolean checkDatabaseType​(ProcessEngineConfigurationImpl configuration,
                                                java.lang.String... databaseTypes)
        Checks if the currently used database is of a given database type.
        Parameters:
        configuration - for the Process Engine, when a Context is not available
        databaseTypes - to check for
        Returns:
        true if any of the provided types match the used one. Otherwise false.