From: <one...@us...> - 2003-03-12 12:40:55
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate In directory sc8-pr-cvs1:/tmp/cvs-serv31825/cirrus/hibernate Modified Files: Query.java Log Message: Query.setEntity(), etc, now aware of proxies (also improved hueristics for guessing types) Index: Query.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/Query.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** Query.java 31 Jan 2003 08:50:49 -0000 1.20 --- Query.java 12 Mar 2003 12:40:52 -0000 1.21 *************** *** 154,158 **** * @throws cirrus.hibernate.HibernateException if no type could be determined */ ! public void setParameter(int position, Object val) throws HibernateException; /** * Bind a value to a named query parameter, guessing the Hibernate --- 154,158 ---- * @throws cirrus.hibernate.HibernateException if no type could be determined */ ! public void setParameter(int position, Object val) throws HibernateException, SQLException; /** * Bind a value to a named query parameter, guessing the Hibernate *************** *** 162,166 **** * @throws cirrus.hibernate.HibernateException if no type could be determined */ ! public void setParameter(String name, Object val) throws HibernateException; /** --- 162,166 ---- * @throws cirrus.hibernate.HibernateException if no type could be determined */ ! public void setParameter(String name, Object val) throws HibernateException, SQLException; /** *************** *** 180,184 **** * @param vals a collection of values to list */ ! public void setParameterList(String name, Collection vals) throws HibernateException; /** --- 180,184 ---- * @param vals a collection of values to list */ ! public void setParameterList(String name, Collection vals) throws HibernateException, SQLException; /** *************** *** 188,192 **** * @param bean any JavaBean or POJO */ ! public void setProperties(Object bean) throws HibernateException; public void setString(int position, String val); --- 188,192 ---- * @param bean any JavaBean or POJO */ ! public void setProperties(Object bean) throws HibernateException, SQLException; public void setString(int position, String val); *************** *** 238,242 **** * @param val a non-null instance of a persistent class */ ! public void setEntity(int position, Object val); // use setParameter for null values /** * Bind an instance of a persistent enumeration class to a JDBC-style query parameter. --- 238,242 ---- * @param val a non-null instance of a persistent class */ ! public void setEntity(int position, Object val) throws HibernateException, SQLException; // use setParameter for null values /** * Bind an instance of a persistent enumeration class to a JDBC-style query parameter. *************** *** 252,256 **** * @param val a non-null instance of a persistent class */ ! public void setEntity(String name, Object val); // use setParameter for null values /** * Bind an instance of a mapped persistent enumeration class to a named query parameter. --- 252,256 ---- * @param val a non-null instance of a persistent class */ ! public void setEntity(String name, Object val) throws HibernateException, SQLException; // use setParameter for null values /** * Bind an instance of a mapped persistent enumeration class to a named query parameter. |