@Title(value="Persistence") public enum PersistenceConf extends Enum<PersistenceConf>
| Enum Constant and Description |
|---|
DATASOURCE |
DBCP_MAX_IDLE |
DBCP_MAX_TOTAL |
DBCP_VALIDATION_QUERY |
DRIVER_CLASS |
DRIVER_PATH |
JDBC_CONNECTION_URI |
JDBC_PASSWORD |
JDBC_USERNAME |
JNDI_RESOURCE |
| Modifier and Type | Method and Description |
|---|---|
static PersistenceConf |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistenceConf[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Path(value="oxalis.database.datasource") @DefaultValue(value="dbcp") public static final PersistenceConf DATASOURCE
@Path(value="oxalis.database.driver.class") @DefaultValue(value="org.h2.Driver") public static final PersistenceConf DRIVER_CLASS
@Path(value="oxalis.database.driver.path") @Nullable public static final PersistenceConf DRIVER_PATH
@Path(value="oxalis.database.jdbc.connection") @DefaultValue(value="jdbc:h2:file:./data/oxalis") public static final PersistenceConf JDBC_CONNECTION_URI
@Path(value="oxalis.database.jdbc.username") @DefaultValue(value="sa") public static final PersistenceConf JDBC_USERNAME
@Path(value="oxalis.database.jdbc.password") @DefaultValue(value="") @Secret public static final PersistenceConf JDBC_PASSWORD
@Path(value="oxalis.database.jndi.resource") @DefaultValue(value="jdbc/oxalis") public static final PersistenceConf JNDI_RESOURCE
@Path(value="oxalis.database.dbcp.max.idle") @DefaultValue(value="30") public static final PersistenceConf DBCP_MAX_IDLE
@Path(value="oxalis.database.dbcp.max.total") @DefaultValue(value="100") public static final PersistenceConf DBCP_MAX_TOTAL
@Path(value="oxalis.database.dbcp.validation") @DefaultValue(value="select 1") public static final PersistenceConf DBCP_VALIDATION_QUERY
public static PersistenceConf[] values()
for (PersistenceConf c : PersistenceConf.values()) System.out.println(c);
public static PersistenceConf valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021 NorStella. All rights reserved.