001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.etl.utils;
043:
044: /**
045: * Holder class for all constants used in Activation and Deployment
046: *
047: * @author Sudhi seshachala
048: * @version $Revision$
049: */
050:
051: //TODO: XXXX Need to clean this XXXX
052: public class ETLDeploymentConstants {
053:
054: public static String AXION_URL_PREFIX = "jdbc:axiondb:";
055: public static String ORACLE_URL_PREFIX = "jdbc:oracle:thin:@";
056: public static String SQL_SERVER_URL_PREFIX = "jdbc:SeeBeyond:sqlserver://";
057: public static String DB2_URL_PREFIX = "jdbc:Seebeyond:db2://";
058: public static String SYBASE_URL_PREFIX = "jdbc:SeeBeyond:sybase://";
059:
060: // Used in ETLCodelet for DeploymentProfileGenerator.addEnv() entry datatype
061: public static final String STRING = "java.lang.String";
062:
063: public static final String STC_NAME_SPACE = "stc/EAR_NAMESPACE";
064:
065: public static final String COLLAB_NAME = "COLLAB_NAME";
066: public static final String PROJECT_NAME = "PROJECT_NAME";
067: public static final String CLASS_NAME = "CLASS_NAME"; // of ETLRuntimeHandler
068: public static final String ENGINE_ROOT_DIR = "ENGINE_ROOT_DIR";
069: public static final String RUNTIME_SERVER_WORKSPACE_DIR = "RUNTIME_SERVER_WORKSPACE_DIR";
070:
071: public static final String ETL_ENGINE_INSTANCE_DB_DIR = "ETL_ENGINE_INSTANCE_DB_DIR";
072: public static final String ETL_MONITOR_DB_DIR = "ETL_MONITOR_DB_DIR";
073:
074: public static final String PARAM_APP_DATAROOT = "{APP_DATAROOT}";
075: public static final String PARAM_MONITOR_DB_NAME = "{MONITOR_DB_NAME}";
076: public static final String PARAM_INSTANCE_DB_NAME = "{INSTANCE_DB_NAME}";
077:
078: public static final String OPERATION_NAME_TAG = "OPERATION_NAME";
079: public static final String OPERATION_NAME = "execute";
080:
081: public static final String LH = "LH";
082: public static final String IS = "IS";
083: public static final String DEPLOYMENT_NAME = "DEPLOYMENT_NAME";
084: public static final String ENVIRONMENT_NAME = "ENVIRONMENT_NAME";
085:
086: public static final String DIRECTORY = "Directory";
087: public static final String ORACLE = "oracle";
088: public static final String SQL_SERVER = "sqlserver";
089: public static final String DB2 = "db2";
090: public static final String SYBASE = "sybase";
091: public static final String INTERNAL = "internal";
092:
093: public static final String DRIVER_PROPERTIES = "DriverProperties";
094: public static final String DATABASE_NAME = "DatabaseName";
095: public static final String SERVER_NAME = "ServerName";
096: public static final String PORT_NUMBER = "PortNumber";
097: public static final String USER = "User";
098: public static final String PASSWORD = "Password";
099: public static final String LOCATION_NAME = "LocationName";
100: public static final String COLLECTION_ID = "CollectionID";
101: public static final String PACKAGE_COLLECTION = "PackageCollection";
102: public static final String EWAYS_PROP_DELIMITER = "Delimiter";
103:
104: public static final String ENV_NAME_PREFIX = "java:comp/env/";
105: public static final String ETL_ENGINE_FILE = "ETL_ENGINE_FILE";
106: public static final String DEPLOY_PARTNERS = "com.sun.jbi.ui.devtool.codegen.frameworkImpl.runtime.DeployedServicePartners";
107:
108: public static final String STATUS = "STATUS";
109: public static final String FAILURE = "Failure";
110: public static final String SUCCESS = "Success";
111: public static final String ENDTIME = "ENDTIME";
112: public static final String STARTTIME = "STARTTIME";
113:
114: public static final String WSDL_TARGET_NAMESPACE_PREFIX = "urn:stc:egate:eTL";
115: public static final String WSDL_URN_PREFIX = "{"
116: + WSDL_TARGET_NAMESPACE_PREFIX + ":";
117: public static final String WSDL_URN_SUFFIX = "}";
118: public static final String ETL_GLOBAL_FAULT = "ETLFault";
119: }
|