code: @SuppressWarnings("unchecked")
      public String asLiteral(Object o) {
          if (o == null || o instanceof Null) {
              return "null";
          } else {
              Type type = javaTypeMapping.getType(o.getClass());
              if (type != null) {
                  return templates.serialize(type.getLiteral(o), type.getSQLTypes()[0]);
              } else {
                  throw new IllegalArgumentException("Unsupported literal type " + o.getClass().getName());
              }
          }
      }
docs: Get the literal representation of the given constant
  
  @param o object
  @return literal representation