Search in sources :

Example 1 with ConditionValue

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;
    }
}
Also used : DBMeta(org.dbflute.dbmeta.DBMeta) ConditionValue(org.dbflute.cbean.cvalue.ConditionValue) Method(java.lang.reflect.Method) ReflectionFailureException(org.dbflute.util.DfReflectionUtil.ReflectionFailureException)

Aggregations

Method (java.lang.reflect.Method)1 ConditionValue (org.dbflute.cbean.cvalue.ConditionValue)1 DBMeta (org.dbflute.dbmeta.DBMeta)1 ReflectionFailureException (org.dbflute.util.DfReflectionUtil.ReflectionFailureException)1