net.ymate.platform.persistence.jdbc.IJdbcConfig Maven / Gradle / Ivy
/*
* Copyright 2007-2107 the original author or authors.
*
* 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 net.ymate.platform.persistence.jdbc;
import java.util.Set;
import net.ymate.platform.persistence.jdbc.support.JdbcDataSourceCfgMeta;
/**
*
* IJdbcConfig
*
*
* JDBC持久化框架初始化配置接口;
*
*
* @author 刘镇([email protected])
* @version 0.0.0
*
*
* 版本号 动作 修改人 修改时间
*
*
*
* 0.0.0
* 创建类
* 刘镇
* 2012-12-29下午2:15:21
*
*
*/
public interface IJdbcConfig {
/**
* @return 是否显示执行的SQL语句
*/
public boolean isShowSql();
/**
* @return 数据库表前缀(主要适应多应用共用同一数据库,采用前缀区分),如:"ym_",默认为""
*/
public String getTablePrefix();
/**
* @return 返回默认数据源名称
*/
public String getDefaultDataSourceName();
/**
* @return 返回自动扫描的存储器包名称集合
*/
public String[] getRepositoryPackages();
/**
* @return 返回数据源配置对象集合
*/
public Set getDataSourceCfgMetas();
}