public static void generateWhereCondition(MethodSpec.Builder methodBuilder, SQLiteModelMethod method, Pair<String, List<Pair<String, TypeName>>> where) {
		boolean nullable;

		// methodBuilder.addStatement("$T<String>
		// _sqlWhereParams=getWhereParamsArray()", ArrayList.class);

		for (Pair<String, TypeName> item : where.value1) {
			String resolvedParamName = method.findParameterNameByAlias(item.value0);
			// methodBuilder.addCode("_sqlWhereParams.add(");
			methodBuilder.addCode("_contentValues.addWhereArgs(");

			nullable = isNullable(item.value1);

			if (nullable && !method.hasAdapterForParam(item.value0)) {
				// transform null in ""
				methodBuilder.addCode("($L==null?\"\":", resolvedParamName);
			}

			// check for string conversion
			TypeUtility.beginStringConversion(methodBuilder, item.value1);

			SQLTransformer.javaMethodParam2WhereConditions(methodBuilder, method, resolvedParamName, item.value1);
			// check for string conversion
			TypeUtility.endStringConversion(methodBuilder, item.value1);

			if (nullable && !method.hasAdapterForParam(item.value0)) {
				methodBuilder.addCode(")");
			}

			methodBuilder.addCode(");\n");
		}
	}
public static void generateWhereCondition ( MethodSpec . Builder methodBuilder , SQLiteModelMethod method , Pair < String , List < Pair < String , TypeName > > > where ) { boolean nullable ; for ( Pair < String , TypeName > item : where . value1 ) { String resolvedParamName = method . findParameterNameByAlias ( item . value0 ) ; methodBuilder . addCode ( "_contentValues.addWhereArgs(" ) ; nullable = isNullable ( item . value1 ) ; if ( nullable && ! method . hasAdapterForParam ( item . value0 ) ) { methodBuilder . addCode ( "($L==null?\"\":" , resolvedParamName ) ; } TypeUtility . beginStringConversion ( methodBuilder , item . value1 ) ; SQLTransformer . javaMethodParam2WhereConditions ( methodBuilder , method , resolvedParamName , item . value1 ) ; TypeUtility . endStringConversion ( methodBuilder , item . value1 ) ; if ( nullable && ! method . hasAdapterForParam ( item . value0 ) ) { methodBuilder . addCode ( ")" ) ; } methodBuilder . addCode ( ");\n" ) ; } }
Generate where condition.

@param methodBuilder
the method builder
@param method
the method
@param where
the where