// -----------------------------------------------------
 //                                         Setup Element
 //                                         -------------
 protected void setupColumnName(String columnName, final Column col) {
   if (needsConvertToJavaName(columnName)) {
     col.setName(columnName);
   } else {
     col.setupNeedsJavaNameConvertFalse();
     col.setName(Srl.initCap(columnName));
   }
 }
 protected void filterAlternateBooleanMethod(DfPmbMetaData pmbMetaData) {
   if (_alternateBooleanMethodNameSet.isEmpty()) {
     return;
   }
   for (String reservBooleanMethod : _reservBooleanMethodList) {
     if (_alternateBooleanMethodNameSet.contains(reservBooleanMethod)) {
       _alternateBooleanMethodNameSet.remove(reservBooleanMethod);
     }
   }
   final Map<String, String> propertyNameTypeMap = pmbMetaData.getPropertyNameTypeMap();
   for (String propertyName : propertyNameTypeMap.keySet()) {
     final String getterName = "get" + Srl.initCap(propertyName);
     if (_alternateBooleanMethodNameSet.contains(getterName)) {
       _alternateBooleanMethodNameSet.remove(getterName);
     }
     final String isName = "is" + Srl.initCap(propertyName);
     if (_alternateBooleanMethodNameSet.contains(isName)) {
       _alternateBooleanMethodNameSet.remove(isName);
     }
   }
 }
Example #3
0
 protected final String initCap(String str) {
   return Srl.initCap(str);
 }