public class DatabaseConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DATABASE_BONECP_PARTITION_CONNECTIONS_MAX
Maximum amount of connections that are allowed to use in bonecp partition
|
static int |
DATABASE_BONECP_PARTITION_CONNECTIONS_MIN
Minimum amount of connections that are always active in bonecp partition
|
static int |
DATABASE_BONECP_PARTITION_COUNT
Amount of partitions used by BoneCP
|
static Class<?> |
DATABASE_DRIVER
Name of database Driver
|
static String |
DATABASE_PASSWORD
Default database password
|
static File |
DATABASE_SCRIPTCONTEXT_DESCRIPTOR
Location of database script context descriptor
|
static String |
DATABASE_URL
Default database url.
|
static String |
DATABASE_USER
Default database user
|
| Constructor and Description |
|---|
DatabaseConfig() |
@Property(key="chrl.database.url",
defaultValue="jdbc:mysql://localhost:3306/aion_uni")
public static String DATABASE_URL
@Property(key="chrl.database.driver",
defaultValue="com.mysql.jdbc.Driver")
public static Class<?> DATABASE_DRIVER
@Property(key="chrl.database.user",
defaultValue="root")
public static String DATABASE_USER
@Property(key="chrl.database.password",
defaultValue="root")
public static String DATABASE_PASSWORD
@Property(key="chrl.database.bonecp.partition.count",
defaultValue="2")
public static int DATABASE_BONECP_PARTITION_COUNT
@Property(key="chrl.database.bonecp.partition.connections.min",
defaultValue="2")
public static int DATABASE_BONECP_PARTITION_CONNECTIONS_MIN
@Property(key="chrl.database.bonecp.partition.connections.max",
defaultValue="5")
public static int DATABASE_BONECP_PARTITION_CONNECTIONS_MAX
@Property(key="chrl.database.scriptcontext.descriptor",
defaultValue="./data/scripts/system/database/database.xml")
public static File DATABASE_SCRIPTCONTEXT_DESCRIPTOR
Copyright © 2014–2015. All rights reserved.