private boolean buildWhereClause ( StringBuilder builder , boolean isPresent , CQLTranslator translator , String condition , List < Object > value , boolean useInClause , AbstractAttribute idAttributeColumn , String columnName , boolean useToken ) { if ( value . isEmpty ( ) ) { isPresent = appendIn ( builder , translator , columnName ) ; builder . append ( "( )" ) ; builder . append ( " AND " ) ; } // handle relations in Id else if ( useInClause && value . size ( ) > 1 ) { isPresent = appendInClause ( builder , translator , value , idAttributeColumn . getBindableJavaType ( ) , columnName , isPresent ) ; } else { // TODO for partition key in case of embedded key. // idAttributeColumn.getBindableJavaType() was sending this class, // changed to getJavaType() translator . buildWhereClause ( builder , ( ( Attribute ) idAttributeColumn ) . getJavaType ( ) , columnName , value . isEmpty ( ) ? null : value . get ( 0 ) , condition , useToken ) ; } return isPresent ; }
Builds the where clause .