Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed Dec 11, 2019
1 parent f5e32da commit 6e6b9d8
Showing 1 changed file with 0 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,39 +73,6 @@ public boolean isMutable() {
return false;
}

/*
* (non-Javadoc)
*
* @see org.hibernate.usertype.UserType#nullSafeGet(java.sql.ResultSet, java.lang.String[],
* java.lang.Object)
*/
/*public Object nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor sessionContractImplementor, Object owner) throws HibernateException, SQLException {
final String namespaceURI = rs.getString(names[0]);
if (rs.wasNull()) {
return null;
}
final String localPart = rs.getString(names[1]);
final String prefix = rs.getString(names[2]);
return QNameSupport.constructQName(namespaceURI, localPart, prefix);
}*/

/*
* (non-Javadoc)
*
* @see org.hibernate.usertype.UserType#nullSafeSet(java.sql.PreparedStatement,
* java.lang.Object, int)
*/
/*public void nullSafeSet(PreparedStatement st, Object value, int index, SharedSessionContractImplementor sessionContractImplementor) throws HibernateException, SQLException {
if (value == null) {
st.setNull(index, Types.VARCHAR);
} else {
QName qName = (QName) value;
st.setString(index, qName.getNamespaceURI());
st.setString(index + 1, qName.getLocalPart());
st.setString(index + 2, qName.getPrefix());
}
}*/

/*
* (non-Javadoc)
*
Expand Down

0 comments on commit 6e6b9d8

Please sign in to comment.