code: public static Clob toClob(Connection conn, Object value) throws PageException, SQLException {
  	if (value instanceof Clob) return (Clob) value;
  	// Java >= 1.6
  	if (SystemUtil.JAVA_VERSION >= SystemUtil.JAVA_VERSION_6) {
  	    Clob clob = conn.createClob();
  	    clob.setString(1, Caster.toString(value));
  	    return clob;
  	}
  
  	// Java < 1.6
  	if (isOracle(conn)) {
  	    Clob clob = OracleClob.createClob(conn, Caster.toString(value), null);
  	    if (clob != null) return clob;
  	}
  	return ClobImpl.toClob(value);
      }
docs: create a clob Object
  
  @param conn
  @param value
  @return
  @throws PageException
  @throws SQLException