Revision 51140
Added by Claudio Atzori about 6 years ago
GenericArrayUserType.java | ||
---|---|---|
4 | 4 |
import java.sql.*; |
5 | 5 |
|
6 | 6 |
import org.hibernate.HibernateException; |
7 |
import org.hibernate.engine.spi.SessionImplementor;
|
|
7 |
import org.hibernate.engine.spi.SharedSessionContractImplementor;
|
|
8 | 8 |
import org.hibernate.usertype.UserType; |
9 | 9 |
|
10 | 10 |
/** |
... | ... | |
47 | 47 |
} |
48 | 48 |
|
49 | 49 |
@Override |
50 |
public boolean isMutable() { |
|
51 |
return true; |
|
52 |
} |
|
53 |
|
|
54 |
@Override |
|
55 |
public Object nullSafeGet(ResultSet resultSet, String[] names, SessionImplementor session, Object owner) |
|
50 |
public Object nullSafeGet(final ResultSet resultSet, |
|
51 |
final String[] names, |
|
52 |
final SharedSessionContractImplementor sharedSessionContractImplementor, |
|
53 |
final Object o) |
|
56 | 54 |
throws HibernateException, SQLException { |
57 | 55 |
if (resultSet.wasNull()) { |
58 | 56 |
return null; |
... | ... | |
68 | 66 |
} |
69 | 67 |
|
70 | 68 |
@Override |
71 |
public void nullSafeSet(PreparedStatement statement, Object value, int index, SessionImplementor session) |
|
69 |
public void nullSafeSet(final PreparedStatement statement, |
|
70 |
final Object value, |
|
71 |
final int index, |
|
72 |
final SharedSessionContractImplementor session) |
|
72 | 73 |
throws HibernateException, SQLException { |
73 | 74 |
Connection connection = statement.getConnection(); |
74 | 75 |
if (value == null) { |
... | ... | |
82 | 83 |
} |
83 | 84 |
|
84 | 85 |
@Override |
86 |
public boolean isMutable() { |
|
87 |
return true; |
|
88 |
} |
|
89 |
|
|
90 |
@Override |
|
85 | 91 |
public Object replace(Object original, Object target, Object owner) throws HibernateException { |
86 | 92 |
return original; |
87 | 93 |
} |
Also available in: Unified diff
updated to spring boot 2.0.0