public static boolean isValidSQLText(CTextField f){
  if (f != null && f.getText() != null)   return isValidSQLText(f.getText());
  return false;
}

public static boolean isValidSQLText ( CTextField f ) { if ( f != null && f . getText ( ) != null ) return isValidSQLText ( f . getText ( ) ) ; return false ; }
test sql where parameter for validity
