code: public String getSQLFilter(String strSeekSign, String strCompare, boolean bComparison) 
      {
          if (strCompare == null)
          { // Use the current field value
              Boolean bField = (Boolean)this.getData(); // Get the physical data
              if (bField != null)
              {
                  boolean bValue = bField.booleanValue();
                  if (bValue == false)
                      strCompare = SQLFALSE;
                  else
                      strCompare = SQLTRUE;
              }
          }
          return super.getSQLFilter(strSeekSign, strCompare, bComparison);
      }
docs: Retrieve (in string format) from this field.
  This method is used for SQL calls (ie., WHERE Id=5 AND Name="Don")
  @return String the ' = "Don"' portion.
  @param   strSeekSign The sign in the comparison.
  @param   strCompare  Use the current field values or plug in a '?'
  @param   bComparison true if this is a comparison, otherwise this is an assignment statement.