public static enum Constant.JdbcProperty extends java.lang.Enum<Constant.JdbcProperty>
| Enum Constant and Description |
|---|
ALIAS
alias name of connection
|
C3P0_IDLECONNECTIONTESTPERIOD
c3p0 property
|
C3P0_MAXIDLETIME
c3p0 property
|
C3P0_MAXPOOLSIZE
c3p0 property
|
C3P0_MINPOOLSIZE
c3p0 property
|
DATASOURCE
data source type, C3P0,SQLITE supported only now
|
DEBUG
debug status
|
GENERATEDKEY_RETRIEVE
Retrieval type of auto generated key:auto,before,after
|
GENERATEDKEY_STATEMENT
Retrieval statement of auto generated key
|
JDBC_DRIVER
JDBC driver class name
|
JDBC_PASSWORD
JDBC password
|
JDBC_URL
JDBC connection url
|
JDBC_USERNAME
JDBC user name
|
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
key
JDBC property name
|
| Modifier and Type | Method and Description |
|---|---|
static Constant.JdbcProperty |
fromKey(java.lang.String key)
cast
key to Constant.JdbcProperty instance if key field equal the argument key,
otherwise return null |
static Constant.JdbcProperty |
fromKey(java.lang.String key,
java.lang.String prefix)
cast
key to Constant.JdbcProperty instance if key field equal the argument key,
otherwise return null be equivalent to fromKey(String) if prefix be null |
boolean |
isGlobal()
return true if global property
|
static Constant.JdbcProperty |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constant.JdbcProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
java.lang.String |
withPrefix(java.lang.String prefix)
return
key with prefix |
public static final Constant.JdbcProperty ALIAS
public static final Constant.JdbcProperty DEBUG
public static final Constant.JdbcProperty JDBC_DRIVER
public static final Constant.JdbcProperty JDBC_URL
public static final Constant.JdbcProperty JDBC_USERNAME
public static final Constant.JdbcProperty JDBC_PASSWORD
public static final Constant.JdbcProperty GENERATEDKEY_RETRIEVE
public static final Constant.JdbcProperty GENERATEDKEY_STATEMENT
public static final Constant.JdbcProperty DATASOURCE
public static final Constant.JdbcProperty C3P0_MINPOOLSIZE
public static final Constant.JdbcProperty C3P0_MAXPOOLSIZE
public static final Constant.JdbcProperty C3P0_MAXIDLETIME
public static final Constant.JdbcProperty C3P0_IDLECONNECTIONTESTPERIOD
public static Constant.JdbcProperty[] values()
for (Constant.JdbcProperty c : Constant.JdbcProperty.values()) System.out.println(c);
public static Constant.JdbcProperty valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String withPrefix(java.lang.String prefix)
key with prefixpublic boolean isGlobal()
public static final Constant.JdbcProperty fromKey(java.lang.String key)
key to Constant.JdbcProperty instance if key field equal the argument key,
otherwise return nullkey - JDBC property namepublic static final Constant.JdbcProperty fromKey(java.lang.String key, java.lang.String prefix)
key to Constant.JdbcProperty instance if key field equal the argument key,
otherwise return null fromKey(String) if prefix be nullkey - JDBC property nameprefix - the prefix of key,that will be stripedCopyright © 2021. All Rights Reserved.