All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavemaker.runtime.data.util.DataServiceConstants Maven / Gradle / Ivy

/**
 * Copyright (C) 2020 WaveMaker, Inc.
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *

* http://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.wavemaker.runtime.data.util; /** * @author Simon Toens */ public class DataServiceConstants { public static final String SPRING_CFG_EXT = ".spring.xml"; public static final String CONNECTION_URL = ".url"; public static final String DATA_PACKAGE_NAME = "data"; public static final String WEB_ROOT_TOKEN = "{WebAppRoot}"; public static final String TENANT_FIELD_PROPERTY_NAME = "tenantIdField"; public static final String TENANT_COLUMN_PROPERTY_NAME = "tenantIdColumn"; public static final String DEFAULT_TENANT_ID_PROPERTY_NAME = "defTenantId"; public static final String QUERY_EXECUTION_CONTROLLER_JAVA = "QueryExecutionController.java"; public static final String PROCEDURE_EXECUTION_CONTROLLER_JAVA = "ProcedureExecutionController.java"; public static final String CONTROLLER_DIR = "controller/"; public static final String WM_MY_SQL_CLOUD_HOST_TOKEN = "{WM_CLOUD_MYSQL_HOST}"; public static final String WM_MY_SQL_CLOUD_USER_NAME_TOKEN = "{WM_CLOUD_MYSQL_USER_NAME}"; public static final String WM_MY_SQL_CLOUD_PASSWORD_TOKEN = "{WM_CLOUD_MYSQL_PASSWORD}"; public static final String WM_MY_SQL_CLOUD_HOST; public static final String WM_MY_SQL_CLOUD_USER_NAME; public static final String WM_MY_SQL_CLOUD_PASSWORD; public static final String QUERY_EXECUTION_CONTROLLER = "QueryExecutionController"; public static final String PROCEDURE_EXECUTION_CONTROLLER = "ProcedureExecutionController"; static { final String mySqlCloudHost = "wm.mysqlCloudHost"; final String mySqlCloudUsername = "wm.mysqlCloudUsername"; final String mySqlCloudPassword = "wm.mysqlCloudPassword"; WM_MY_SQL_CLOUD_HOST = (System.getenv(mySqlCloudHost) != null) ? System.getenv(mySqlCloudHost) : System.getProperty(mySqlCloudHost, "localhost:3306"); WM_MY_SQL_CLOUD_USER_NAME = (System.getenv(mySqlCloudUsername) != null) ? System.getenv(mySqlCloudUsername) : System.getProperty(mySqlCloudUsername, "root"); WM_MY_SQL_CLOUD_PASSWORD = (System.getenv(mySqlCloudPassword) != null) ? System.getenv(mySqlCloudPassword) : System.getProperty(mySqlCloudPassword, "cloudjee123"); } private DataServiceConstants() { } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy