DBResources.java [src/java/svap/utils] Revision: default Date:
/*
* $Id$
*
* This file is part of the Cloud Services Integration Platform (CSIP),
* a Model-as-a-Service framework, API, and application suite.
*
* 2012-2017, OMSLab, Colorado State University.
*
* OMSLab licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
*/
package svap.utils;
import csip.annotations.Resource;
import static csip.annotations.ResourceType.JDBC;
import static svap.utils.DBResources.*;
/**
*
* @author od
*/
@Resource(type = JDBC, file = "${conservation_resources.db}", id = CRDB, env = {
"removeAbandoned=false", "defaultReadOnly=true", "defaultAutoCommit=false",
"jdbcInterceptors=org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;"
+ "org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer;"
+ "org.apache.tomcat.jdbc.pool.interceptor.ResetAbandonedTimer"
})
@Resource(type = JDBC, file = "${svap_rw.db}", id = SVAP_RW, env = {
"removeAbandoned=false", "defaultReadOnly=false", "defaultAutoCommit=false",
"jdbcInterceptors=org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;"
+ "org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer;"
+ "org.apache.tomcat.jdbc.pool.interceptor.ResetAbandonedTimer"
})
@Resource(type = JDBC, file = "${svap_delete.db}", id = SVAP_DELETE, env = {
"removeAbandoned=false", "defaultReadOnly=false", "defaultAutoCommit=false",
"jdbcInterceptors=org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;"
+ "org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer;"
+ "org.apache.tomcat.jdbc.pool.interceptor.ResetAbandonedTimer"
})
@Resource(type = JDBC, file = "${nrt.db}", id = NRTDB, env = {
"removeAbandoned=false", "defaultReadOnly=true", "defaultAutoCommit=false",
"jdbcInterceptors=org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;"
+ "org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer;"
+ "org.apache.tomcat.jdbc.pool.interceptor.ResetAbandonedTimer"
})
public interface DBResources {
static final String CRDB = "crdb";
static final String SVAP_RW = "svap_rw";
static final String SVAP_DELETE = "svap_delete";
static final String NRTDB = "nrtdb";
}