package com.product.data.sync.service.ide;
|
|
import com.product.core.entity.DataTableEntity;
|
import com.product.core.entity.FieldSetEntity;
|
import com.product.core.exception.BaseException;
|
|
import java.sql.SQLException;
|
|
/**
|
* Copyright LX-BASE
|
*
|
* @Title: IConnectionConfigurationService
|
* @Project: LX-BASE-SERVER
|
* @Date: 2021-08-18 11:30:48
|
* @Author: luoxin
|
* @Description: 数据源连接接口
|
*/
|
public interface IConnectionConfigurationService {
|
|
|
/**
|
* 保存数据库配置连接
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
String saveConnectionConfiguration(FieldSetEntity fieldSetEntity) throws BaseException, SQLException, ClassNotFoundException;
|
|
/**
|
* 获取数据库配置连接列表
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
DataTableEntity listConnectionConfiguration(FieldSetEntity fieldSetEntity) throws BaseException;
|
|
/**
|
* 获取数据库配置连接详情
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
FieldSetEntity getConnectionConfiguration(FieldSetEntity fieldSetEntity) throws BaseException;
|
|
/**
|
* 删除数据库配置连接详情
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
boolean delConnectionConfiguration(FieldSetEntity fieldSetEntity) throws BaseException;
|
|
/**
|
* 通过表名或者字段,再保存为参照
|
* @param
|
* @return
|
* @throws BaseException
|
*/
|
Boolean saveField(FieldSetEntity fieldSetEntity) throws BaseException, SQLException, ClassNotFoundException;
|
}
|