|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| DatabaseConstant.java | - | - | - | - |
|
||||||||||||||
| 1 |
/**
|
|
| 2 |
* JFoxSOAF, Service-Oriented Application Framework
|
|
| 3 |
*
|
|
| 4 |
* Copyright (C) www.huihoo.org
|
|
| 5 |
*
|
|
| 6 |
* Distributable under GNU LGPL
|
|
| 7 |
*
|
|
| 8 |
* For more information, please visit: http://www.huihoo.org/jfox/jfoxsoaf
|
|
| 9 |
*/
|
|
| 10 |
|
|
| 11 |
package org.huihoo.jfox.soaf.services.jdbc;
|
|
| 12 |
|
|
| 13 |
/**
|
|
| 14 |
* <p>
|
|
| 15 |
* DataSource configuration definition.
|
|
| 16 |
* </p>
|
|
| 17 |
*
|
|
| 18 |
* @author <a href="mailto:founder_chen@yahoo.com.cn">Peter Cheng </a>
|
|
| 19 |
* @version $Revision: 1.1 $ $Date: 2004/10/28 15:12:16 $
|
|
| 20 |
* @version Revision: 1.0
|
|
| 21 |
*/
|
|
| 22 |
|
|
| 23 |
public class DatabaseConstant { |
|
| 24 |
|
|
| 25 |
// Database Factory Configration
|
|
| 26 |
|
|
| 27 |
/**
|
|
| 28 |
* The name of the property used to identify the LogFactory implementation
|
|
| 29 |
* class name.
|
|
| 30 |
*/
|
|
| 31 |
public static final String JDBC_DATABASE_FACTORY = "jdbc.databaseFactory"; |
|
| 32 |
|
|
| 33 |
/**
|
|
| 34 |
* The fully qualified class name of the fallback <code>LogFactory</code>
|
|
| 35 |
* implementation class to use, if no other can be found.
|
|
| 36 |
*/
|
|
| 37 |
public static final String JDBC_DEFAULT_FACTORY = "org.huihoo.jfox.soaf.services.jdbc.C3P0DataSourceFactory"; |
|
| 38 |
|
|
| 39 |
/**
|
|
| 40 |
* The name of the properties file to search for.
|
|
| 41 |
*/
|
|
| 42 |
public static final String JDBC_FACTORY_PROPERTIES = "database.properties"; |
|
| 43 |
|
|
| 44 |
|
|
| 45 |
// Common Database Configuration
|
|
| 46 |
|
|
| 47 |
public static final String JDBC_DRIVER_CLASS_NAME = "jdbc.driverClassName"; |
|
| 48 |
|
|
| 49 |
public static final String JDBC_URL = "jdbc.url"; |
|
| 50 |
|
|
| 51 |
public static final String JDBC_USERNAME = "jdbc.username"; |
|
| 52 |
|
|
| 53 |
public static final String JDBC_PASSWORD = "jdbc.password"; |
|
| 54 |
|
|
| 55 |
|
|
| 56 |
// Database Connection Pool Configuration
|
|
| 57 |
|
|
| 58 |
public static final String JDBC_INIT_POOL_SIZE = "jdbc.initialPoolSize"; |
|
| 59 |
|
|
| 60 |
public static final String JDBC_MIN_POOL_SIZE = "jdbc.minPoolSize"; |
|
| 61 |
|
|
| 62 |
public static final String JDBC_MAX_POOL_SIZE = "jdbc.maxPoolSize"; |
|
| 63 |
|
|
| 64 |
public static final String JDBC_MAX_IDLE_TIME = "jdbc.maxIdleTime"; |
|
| 65 |
|
|
| 66 |
// C3P0 Database Connection Pool Configuration
|
|
| 67 |
|
|
| 68 |
public static final String C3P0_JDBC_IDLE_CONN_TEST_PERIOD = "c3p0.jdbc.idleConnectionTestPeriod"; |
|
| 69 |
|
|
| 70 |
public static final String C3P0_JDBC_MAX_STATEMENTS = "c3p0.jdbc.maxStatements"; |
|
| 71 |
|
|
| 72 |
public static final String C3P0_JDBC_PROPERTY_CYCLE = "c3p0.jdbc.propertyCycle"; |
|
| 73 |
|
|
| 74 |
public static final String C3P0_JDBC_ACQUIRE_INCREMENT = "c3p0.jdbc.acquireIncrement"; |
|
| 75 |
|
|
| 76 |
public static final String C3P0_JDBC_ACQUIRE_RETRY_ATTEMPTS = "c3p0.jdbc.acquireRetryAttempts"; |
|
| 77 |
|
|
| 78 |
public static final String C3P0_JDBC_ACQUIRE_RETRY_DELAY = "c3p0.jdbc.acquireRetryDelay"; |
|
| 79 |
|
|
| 80 |
public static final String C3P0_JDBC_BREAK_AFTER_ACQUIRE_FAILURE = "c3p0.jdbc.breakAfterAcquireFailure"; |
|
| 81 |
|
|
| 82 |
public static final String C3P0_JDBC_TEST_CONN_ON_CHECKOUT = "c3p0.jdbc.testConnectionOnCheckout"; |
|
| 83 |
|
|
| 84 |
public static final String C3P0_JDBC_AUTO_COMMIT_ON_CLOSE = "c3p0.jdbc.autoCommitOnClose"; |
|
| 85 |
|
|
| 86 |
public static final String C3P0_JDBC_FORCE_IGNORE_UNRESOLVED_TRANS = "c3p0.jdbc.forceIgnoreUnresolvedTransactions"; |
|
| 87 |
|
|
| 88 |
public static final String C3P0_JDBC_NUM_HELPER_THREADS = "c3p0.jdbc.numHelperThreads"; |
|
| 89 |
|
|
| 90 |
public static final String C3P0_JDBC_USES_TRADITIONAL_REFELECTIVE_PROXIES = "c3p0.jdbc.usesTraditionalReflectiveProxies"; |
|
| 91 |
|
|
| 92 |
public static final String C3P0_JDBC_FACTORY_CLASS_LOCATION = "c3p0.jdbc.factoryClassLocation"; |
|
| 93 |
|
|
| 94 |
} |
|
||||||||||