Enum PersistenceConf

    • Enum Constant Detail

      • DATASOURCE

        @Path("oxalis.database.datasource")
        @DefaultValue("dbcp")
        public static final PersistenceConf DATASOURCE
      • DRIVER_CLASS

        @Path("oxalis.database.driver.class")
        @DefaultValue("org.h2.Driver")
        public static final PersistenceConf DRIVER_CLASS
      • DRIVER_PATH

        @Path("oxalis.database.driver.path")
        @Nullable
        public static final PersistenceConf DRIVER_PATH
      • JDBC_CONNECTION_URI

        @Path("oxalis.database.jdbc.connection")
        @DefaultValue("jdbc:h2:file:./data/oxalis")
        public static final PersistenceConf JDBC_CONNECTION_URI
      • JDBC_USERNAME

        @Path("oxalis.database.jdbc.username")
        @DefaultValue("sa")
        public static final PersistenceConf JDBC_USERNAME
      • JDBC_PASSWORD

        @Path("oxalis.database.jdbc.password")
        @DefaultValue("")
        @Secret
        public static final PersistenceConf JDBC_PASSWORD
      • JNDI_RESOURCE

        @Path("oxalis.database.jndi.resource")
        @DefaultValue("jdbc/oxalis")
        public static final PersistenceConf JNDI_RESOURCE
      • DBCP_MAX_IDLE

        @Path("oxalis.database.dbcp.max.idle")
        @DefaultValue("30")
        public static final PersistenceConf DBCP_MAX_IDLE
      • DBCP_MAX_TOTAL

        @Path("oxalis.database.dbcp.max.total")
        @DefaultValue("100")
        public static final PersistenceConf DBCP_MAX_TOTAL
      • DBCP_VALIDATION_QUERY

        @Path("oxalis.database.dbcp.validation")
        @DefaultValue("select 1")
        public static final PersistenceConf DBCP_VALIDATION_QUERY
    • Method Detail

      • values

        public static PersistenceConf[] 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 (PersistenceConf c : PersistenceConf.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PersistenceConf 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