use of org.dbflute.exception.DfIllegalPropertyTypeException in project dbflute-core by dbflute.
the class DfDocumentProperties method getLoadDataReverseRecordLimit.
// -----------------------------------------------------
// Record Limit
// ------------
public Integer getLoadDataReverseRecordLimit() {
final Map<String, Object> loadDataReverseMap = getLoadDataReverseMap();
String limitExp = null;
if (!loadDataReverseMap.isEmpty()) {
limitExp = (String) loadDataReverseMap.get("recordLimit");
}
if (limitExp == null) {
return null;
}
try {
return Integer.valueOf(limitExp);
} catch (NumberFormatException e) {
String msg = "The property 'recordLimit' of loadDataReverse in " + KEY_oldDocumentMap;
msg = msg + " should be number but: value=" + limitExp;
throw new DfIllegalPropertyTypeException(msg, e);
}
}
Aggregations