use of org.dbflute.cbean.cvalue.ConditionValue in project dbflute-core by dbflute.
the class AbstractConditionQuery method invokeValue.
// ===================================================================================
// Reflection Invoking
// ===================
/**
* {@inheritDoc}
*/
public ConditionValue invokeValue(String columnFlexibleName) {
assertStringNotNullAndNotTrimmedEmpty("columnFlexibleName", columnFlexibleName);
final DBMeta dbmeta = xgetLocalDBMeta();
final String columnCapPropName = initCap(dbmeta.findColumnInfo(columnFlexibleName).getPropertyName());
final String methodName = "xdfget" + columnCapPropName;
final Method method = xhelpGettingCQMethod(this, methodName, (Class<?>[]) null);
if (method == null) {
throwConditionInvokingGetMethodNotFoundException(columnFlexibleName, methodName);
// unreachable
return null;
}
try {
return (ConditionValue) xhelpInvokingCQMethod(this, method, (Object[]) null);
} catch (ReflectionFailureException e) {
throwConditionInvokingGetReflectionFailureException(columnFlexibleName, methodName, e);
// unreachable
return null;
}
}
Aggregations