code: public String translate(K k) {
          final Object o = k.getConstant();
  
          String result;
  
          if (o != null) {
              if (!k.isQuote()) {
                  result = o.toString();
              } else if (o instanceof String) {
                  result = singleQuotize(escapeSql((String) o));
              } else if (o instanceof Boolean) {
                  result = (Boolean) o ? translateTrue() : translateFalse();
              } else {
                  result = o.toString();
              }
          } else {
              result = "NULL";
          }
  
          return k.isEnclosed() ? ("(" + result + ")") : result;
      }
docs: Translates {@link K}.
  
  @param k The object to translate.
  @return The string representation of the given object.