001 /**
002 * Copyright 2010-2013 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.common.jdbc;
017
018 import java.util.ArrayList;
019 import java.util.List;
020
021 /**
022 * @deprecated
023 */
024 @Deprecated
025 public class JdbcProjectContext extends org.kuali.common.util.DefaultProjectContext {
026
027 private static final List<String> LOCATIONS = getLocations();
028 private static final String ARTIFACT_ID = org.kuali.common.util.KualiProjectConstants.JDBC_ARTIFACT_ID;
029
030 public JdbcProjectContext() {
031 super(ARTIFACT_ID, LOCATIONS);
032 }
033
034 private static final List<String> getLocations() {
035 List<String> locations = new ArrayList<String>();
036
037 // Add JDBC properties
038 locations.add(org.kuali.common.util.ProjectUtils.getCommonClassPathPrefix(ARTIFACT_ID) + "/jdbc.properties");
039
040 // Add SQL properties
041 String prefix = org.kuali.common.util.ProjectUtils.getCommonClassPathPrefix(org.kuali.common.util.KualiProjectConstants.SQL_ARTIFACT_ID);
042 locations.add(prefix + "/sql.xml");
043 locations.add(prefix + "/mysql.xml");
044 locations.add(prefix + "/oracle.xml");
045 locations.add(prefix + "/h2.xml");
046 locations.add(prefix + "/derby.xml");
047 return locations;
048 }
049
050 }