public static ClassInfo _getClassInfo() // NOPMD framework ensures this is thread safe { if (s_classInfo == null) // NOPMD { s_classInfo = newClassInfo(SearchGoodsApplyDetailService.class); s_classInfo.setUIDElements(new String[] {}); { AttributeInfo ai = new AttributeInfo(ATTR_GOODS_NM); ai.setJavaName(ATTR_GOODS_NM); ai.setAttributeClass(String.class); s_classInfo.addAttributeInfo(ai); } { AttributeInfo ai = new AttributeInfo(ATTR_PRICE); ai.setJavaName(ATTR_PRICE); ai.setAttributeClass(int.class); NumberValidator v = new NumberValidator(ATTR_PRICE); ai.addConstraintHandler(v); s_classInfo.addAttributeInfo(ai); } { AttributeInfo ai = new AttributeInfo(ATTR_QUANTITY); ai.setJavaName(ATTR_QUANTITY); ai.setAttributeClass(int.class); NumberValidator v = new NumberValidator(ATTR_QUANTITY); ai.addConstraintHandler(v); s_classInfo.addAttributeInfo(ai); } { AttributeInfo ai = new AttributeInfo(ATTR_SUBTOTAL); ai.setJavaName(ATTR_SUBTOTAL); ai.setAttributeClass(int.class); NumberValidator v = new NumberValidator(ATTR_SUBTOTAL); ai.addConstraintHandler(v); s_classInfo.addAttributeInfo(ai); } { AttributeInfo ai = new AttributeInfo(ATTR_NOTE); ai.setJavaName(ATTR_NOTE); ai.setAttributeClass(String.class); s_classInfo.addAttributeInfo(ai); } } return s_classInfo; }
public static ClassInfo _getClassInfo() // NOPMD framework ensures this is thread safe { if (s_classInfo == null) // NOPMD { s_classInfo = newClassInfo(ImportOrganizationDataService.class); s_classInfo.setUIDElements(new String[] {}); { AttributeInfo ai = new AttributeInfo(ATTR_ORGANIZATION_CD); ai.setJavaName(ATTR_ORGANIZATION_CD); ai.setAttributeClass(String.class); StringValidator v = new StringValidator(ATTR_ORGANIZATION_CD); v.setMaxLength(255); ai.addConstraintHandler(v); s_classInfo.addAttributeInfo(ai); } { AttributeInfo ai = new AttributeInfo(ATTR_PARENT_ORG_CD); ai.setJavaName(ATTR_PARENT_ORG_CD); ai.setAttributeClass(String.class); StringValidator v = new StringValidator(ATTR_PARENT_ORG_CD); v.setMaxLength(255); ai.addConstraintHandler(v); s_classInfo.addAttributeInfo(ai); } { AttributeInfo ai = new AttributeInfo(ATTR_ORGANIZATION_NM); ai.setJavaName(ATTR_ORGANIZATION_NM); ai.setAttributeClass(String.class); StringValidator v = new StringValidator(ATTR_ORGANIZATION_NM); v.setMaxLength(255); ai.addConstraintHandler(v); s_classInfo.addAttributeInfo(ai); } } return s_classInfo; }