Enum PersistenceUnit

    • Enum Constant Detail

      • SCRIPT_RUNNER

        public static final PersistenceUnit SCRIPT_RUNNER
        Persistence unit used for SQL scripts execution.
      • DB_TESTING_VALIDATE

        public static final PersistenceUnit DB_TESTING_VALIDATE
        Persistence unit used for test cases validation. Uses Hibernate's 'validate'.
      • DB_TESTING_UPDATE

        public static final PersistenceUnit DB_TESTING_UPDATE
        Persistence unit used for test cases validation. Uses 'Hibernate's update' instead of 'validate'
      • CLEAR_SCHEMA

        public static final PersistenceUnit CLEAR_SCHEMA
        Persistence unit used for clearing the database schema.
      • DB_QUARTZ_VALIDATE

        public static final PersistenceUnit DB_QUARTZ_VALIDATE
        Persistence unit used for clearing the database schema.
    • Method Detail

      • values

        public static PersistenceUnit[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PersistenceUnit c : PersistenceUnit.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PersistenceUnit valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getName

        public String getName()
      • getDataSourceName

        public String getDataSourceName()