HHH-5968 : Deprecate nullSafeGet()/nullSafeSet() methods with no SessionImplementor argument from UserType and AbstractSingleColumnStandardBasicType
This commit is contained in:
parent
abd78660bd
commit
f7fda73168
|
@ -64,6 +64,8 @@ public abstract class AbstractSingleColumnStandardBasicType<T>
|
|||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @deprecated Use {@link #nullSafeGet(ResultSet, String, SessionImplementor)} instead
|
||||
*/
|
||||
public T nullSafeGet(ResultSet rs, String name) throws HibernateException, SQLException {
|
||||
return nullSafeGet( rs, name, NO_OPTIONS );
|
||||
|
@ -71,6 +73,8 @@ public abstract class AbstractSingleColumnStandardBasicType<T>
|
|||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @deprecated Use {@link #get(ResultSet, String, SessionImplementor)} instead.
|
||||
*/
|
||||
public Object get(ResultSet rs, String name) throws HibernateException, SQLException {
|
||||
return nullSafeGet( rs, name );
|
||||
|
@ -88,6 +92,8 @@ public abstract class AbstractSingleColumnStandardBasicType<T>
|
|||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @deprecated Use {@link #nullSafeSet(PreparedStatement, Object, int, SessionImplementor)} instead.
|
||||
*/
|
||||
public void nullSafeSet(PreparedStatement st, T value, int index) throws HibernateException, SQLException {
|
||||
nullSafeSet( st, value, index, NO_OPTIONS );
|
||||
|
@ -95,6 +101,8 @@ public abstract class AbstractSingleColumnStandardBasicType<T>
|
|||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @deprecated Use {@link #set(PreparedStatement, Object, int, SessionImplementor)} instead.
|
||||
*/
|
||||
public void set(PreparedStatement st, T value, int index) throws HibernateException, SQLException {
|
||||
nullSafeSet( st, value, index );
|
||||
|
|
|
@ -106,6 +106,7 @@ public interface UserType {
|
|||
* @return Object
|
||||
* @throws HibernateException
|
||||
* @throws SQLException
|
||||
* @deprecated SessionImplementor will be added as an argument in a future version (see HHH-5968)
|
||||
*/
|
||||
public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException;
|
||||
|
||||
|
@ -119,6 +120,7 @@ public interface UserType {
|
|||
* @param index statement parameter index
|
||||
* @throws HibernateException
|
||||
* @throws SQLException
|
||||
* @deprecated SessionImplementor will be added as an argument in a future version (see HHH-5968)
|
||||
*/
|
||||
public void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException;
|
||||
|
||||
|
|
Loading…
Reference in New Issue