public static void javaMethodParam2ContentValues ( MethodSpec . Builder methodBuilder , SQLiteModelMethod method , String paramName , TypeName paramType , ModelProperty property ) { AssertKripton . assertTrueOrInvalidMethodSignException ( ! method . hasAdapterForParam ( paramName ) , method , "method's parameter '%s' can not use a type adapter" , paramName ) ; SQLTransform transform = ( property != null && property . hasTypeAdapter ( ) ) ? lookup ( typeName ( property . typeAdapter . dataType ) ) : lookup ( paramType ) ; AssertKripton . assertTrueOrUnsupportedFieldTypeException ( transform != null , ( property != null && property . hasTypeAdapter ( ) ) ? typeName ( property . typeAdapter . dataType ) : paramType ) ; transform . generateWriteParam2ContentValues ( methodBuilder , method , paramName , paramType , property ) ; }
Used to convert a method s parameter to contentValues . It can not have a type adpter because it eventually use the one define in associated bean s attribute