/*
 * Copyright 2016-2022 the original author.All rights reserved.
 * Kingstar(honeysoft@126.com)
 * 
 * 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 org.teasoft.bee.sharding;

/**
 * DataSource and Table struct.
 * tabName,tabSuffix will not be set at the same time; 
 * <br>When only the tabSuffix is set, the basic name of the table is converted from the Entity name.
 * @author Kingstar
 * @since  1.11
 */
public class DsTabStruct {

	/**
	 * dataSource name
	 */
	private String dsName;

	/**
	 * table name
	 */
	private String tabName;

	/**
	 * table name Suffix
	 * can set when tabName use Entity name transfer
	 */
	private String tabSuffix;

	/**
	 * get dataSource name
	 * @return dataSource name
	 */
	public String getDsName() {
		return dsName;
	}

	/**
	 * set dataSource name
	 * @param dsName dataSource name
	 */
	public void setDsName(String dsName) {
		this.dsName = dsName;
	}

	/**
	 * get table name
	 * @return table name
	 */
	public String getTabName() {
		return tabName;
	}

	/**
	 * set table name
	 * @param tabName table name
	 */
	public void setTabName(String tabName) {
		this.tabName = tabName;
	}

	/**
	 * return table name suffix
	 * @return table name suffix
	 */
	public String getTabSuffix() {
		return tabSuffix;
	}

	/**
	 * set table name suffix
	 * can set when tabName use Entity name transfer
	 */
	public void setTabSuffix(String tabSuffix) {
		this.tabSuffix = tabSuffix;
	}

}
