public static void javaProperty2WhereCondition ( MethodSpec . Builder methodBuilder , SQLiteModelMethod method , String paramName , TypeName paramType , ModelProperty property ) { if ( property != null && property . hasTypeAdapter ( ) ) { methodBuilder . addCode ( AbstractSQLTransform . PRE_TYPE_ADAPTER_TO_STRING + "$L" + AbstractSQLTransform . POST_TYPE_ADAPTER , SQLTypeAdapterUtils . class , typeName ( property . typeAdapter . adapterClazz ) , PropertyUtility . getter ( paramName , paramType , property ) ) ; } else if ( property != null ) { SQLTransform transform = lookup ( property . getPropertyType ( ) . getTypeName ( ) ) ; AssertKripton . assertTrueOrUnsupportedFieldTypeException ( transform != null , paramType ) ; transform . generateWriteProperty2WhereCondition ( methodBuilder , paramName , paramType , property ) ; } else { AssertKripton . assertTrueOrUnsupportedFieldTypeException ( false , paramType ) ; } }
Used to convert a property of managed bean to where condition .