DBResources.java [src/java/nmpt/utils] Revision: default  Date:
/*
 * To change this license header, choose License Headers in Project Properties.
/*
 * $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 nmpt.utils;

import csip.annotations.Resource;
import static csip.annotations.ResourceType.JDBC;
import static nmpt.utils.DBResources.*;

/**
 *
 * @author od
 */
@Resource(from = soils.db.DBResources.class)
@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"
})

public interface DBResources {

    static final String CRDB = "crdb";
}