This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nms-nmsweb/src/com/nms/objectSnmp/util/FormatUtil.java
2018-09-27 16:21:05 +08:00

26 lines
532 B
Java

package com.nms.objectSnmp.util;
public class FormatUtil {
public static String changType(String type){
String resu="";
if(type.equals("int") || type.equals("long")){
resu="NUMBER";
}else if(type.equals("String")){
resu="VARCHAR2(400)";
}
return resu;
}
public static String formatBeanName(String oldName){
String resu="";
if(oldName!=null && !"".equals(oldName)){
if(oldName.startsWith("DI_")){
resu = oldName.substring(3,oldName.length());
}else{
resu=oldName;
}
}
return resu;
}
}