package OSV.ESD.standard; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; //import OSI.AOP.MEC.SIQ.plorm.PLORMImpl; //import OSI.AOP.MEC.SIQ.plorm.PLORMInterf; //import OSI.OPE.SI.SD.SU.SQ.ASU.OSU.PSU.MSU.AVQ.ASQ.ASU.MPE.procedure.pde.FullDNATokenPDI; //OSV PLSQL 研发, 思想, 设计: 罗瑶光 20210511 //表删除操作的例子. //作者,著作权人: 罗瑶光,浏阳 public class D_CellStandard{ public List txtToList() throws IOException{ List dic_list= new ArrayList<>(); return dic_list; } // delete samples // tableName:test:delete; // condition:or:testCulumn1|<|20:testCulumn2|==|fire; // condition:and:testCulumn1|>|100:testCulumn2|==|fire; public static Map DeleteCellORM(String rootPath, String baseName , String tabKey , Map rowCells, Boolean initonEncrypt) throws IOException{ // PLORMInterf orm= new PLORMImpl(); // orm= orm.startAtRootDir(rootPath) // .withBaseName(baseName) // .withTableInsert(tabKey); // condition 不好规范, 稍后. 建议写针对性delete语句 // condition:or:testCulumn1|<|20:testCulumn2|==|fire; // condition:and:testCulumn1|>|100:testCulumn2|==|fire; return null; } public static Map DeleteCellPLSQL(String rootPath, String baseName , String tabKey , Map rowCells, Boolean initonEncrypt) throws IOException{ Map map= null; try { // String plsql= "setRoot:"+ rootPath+ ";"; // plsql+= "baseName:"+ baseName+ ";"; // plsql+= "tableName:"+ tabKey+ ":delete;"; // condition 不好规范, 稍后. 建议写针对性delete语句 // condition:or:testCulumn1|<|20:testCulumn2|==|fire; // condition:and:testCulumn1|>|100:testCulumn2|==|fire; // map= OSI.OPE.ME.SM.OP.SM.AOP.MEC.SIQ.imp.E_PLSQLImp.E_PLSQL(plsql, true); }catch(Exception e1) { //准备写回滚 e1.printStackTrace(); } return map; } }