use of org.dbflute.jdbc.ClassificationUndefinedHandlingType in project dbflute-core by dbflute.
the class FunCustodial method checkClassificationCode.
// ===================================================================================
// Classification
// ==============
public static void checkClassificationCode(Entity entity, String columnDbName, ClassificationMeta meta, Object code) {
if (code == null) {
return;
}
final ClassificationUndefinedHandlingType undefinedHandlingType = meta.undefinedHandlingType();
if (!undefinedHandlingType.isChecked()) {
// basically no way (not called if no check)
return;
}
if (meta.codeOf(code) != null) {
return;
}
final boolean allowedByOption = entity.myundefinedClassificationAccessAllowed();
handleUndefinedClassificationCode(entity.asTableDbName(), columnDbName, meta, code, allowedByOption);
}
Aggregations