package com.vci.ubcs.ddl.processor.ddl; import com.vci.ubcs.ddl.mapper.DdlMapper; import com.vci.ubcs.ddl.mapper.DdlOracleMapper; import com.vci.ubcs.starter.util.VciSpringUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.DependsOn; import org.springframework.stereotype.Component; import javax.annotation.PostConstruct; import javax.annotation.Resource; /** * Description: oracle的数据库操作 * * @author LiHang * @date 2023/4/24 */ @Component @DependsOn("vciSpringUtil") public class DdlOracleMapperProcessor extends DdlMapperProcessor{ private static DdlMapper mapper = VciSpringUtil.getBean(DdlOracleMapper.class); public DdlOracleMapperProcessor() { super(mapper); System.out.println("-----------------"); if (mapper != null){ System.out.println("[success]::加载Oracle数据库DDL操作服务成功"); }else { System.out.println("[fail]::加载Oracle数据库DDL操作服务失败"); } } @Override boolean support(String url) { return "oracle.jdbc.OracleDriver".equals(url); } @Override public void modifyTableBySqlBase(String tableName, String attributeSql) { modifyTableBySql(tableName,attributeSql); } }