private String buildWhereClause ( String [ ] pKeys , Hashtable pMapping ) { StringBuilder sqlBuf = new StringBuilder ( ) ; for ( int i = 0 ; i < pKeys . length ; i ++ ) { String column = ( String ) pMapping . get ( pKeys [ i ] ) ; sqlBuf . append ( " AND " ) ; sqlBuf . append ( column ) ; sqlBuf . append ( " = ?" ) ; } return sqlBuf . toString ( ) ; }
Builds extra SQL WHERE clause