只能判断String类型是否为空(org.springframework.util包下的Empty可判断其他类型),源码如下
字母转大写xx.toLowerCase()
字母转小写xx.substring()
返回字符串的子字符串
indexOf("_")定位第一次出现下划线的索引位置,substring截取后面的字符串。processFiled(String,Boolean)
自定义方法,用于将表名或字段名转换为Java中的类名或属性名,如aa_bb__cc-->AaBbCc || aa_bb_cc-->aaBbCcprocessFiled(String,Boolean)中的String[] fields=field.split("_")
xx.split("_")是将xx字符串按照下划线进行分割。processFiled(String,Boolean)中的append()
StringBuffer类包含append()方法,相当于“+”,将指定的字符串追加到此字符序列。processJavaType(String)
自定义方法,用于做数据库字段类型与Java属性类型之间的匹配。processJavaType(String)中的ArrayUtils.contains(A,B)
判断B是否在A中出现过。
欢迎光临 IT评测·应用市场-qidao123.com (https://dis.qidao123.com/) | Powered by Discuz! X3.4 |