对比新文件 |
| | |
| | | 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.stereotype.Component; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * Description: oracle鐨勬暟鎹簱鎿嶄綔 |
| | | * |
| | | * @author LiHang |
| | | * @date 2023/4/24 |
| | | */ |
| | | @Component |
| | | 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鏁版嵁搴揇DL鎿嶄綔鏈嶅姟鎴愬姛"); |
| | | }else { |
| | | System.out.println("[fail]::鍔犺浇Oracle鏁版嵁搴揇DL鎿嶄綔鏈嶅姟澶辫触"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | boolean support(String url) { |
| | | return "oracle.jdbc.OracleDriver".equals(url); |
| | | } |
| | | |
| | | @Override |
| | | public void modifyTableBySqlBase(String tableName, String attributeSql) { |
| | | modifyTableBySql(tableName,attributeSql); |
| | | } |
| | | } |