public Object javaToSql(Object source) { String str = (String) source; Clob clob = new com.mysql.jdbc.Clob(str); try { clob.setAsciiStream(str.length()); } catch (SQLException e) { e.printStackTrace(System.out);
public Object javaToSql(Object source) { String str = (String) source; Clob clob = null; if (str != null) {  clob = new com.mysql.jdbc.Clob(str); try { clob.setAsciiStream(str.length()); } catch (SQLException e) { e.printStackTrace(System.out); }
    public Object javaToSql(Object source)    {		String str = (String) source; 		Clob clob = new com.mysql.jdbc.Clob(str);		try {			clob.setAsciiStream(str.length());		} catch (SQLException e) {			e.printStackTrace(System.out);		}    	return clob;    }