1 package org.hibernate.usertype; 3 4 import java.io.Serializable ; 5 import java.sql.PreparedStatement ; 6 import java.sql.ResultSet ; 7 import java.sql.SQLException ; 8 9 import org.hibernate.HibernateException; 10 11 44 public interface UserType { 45 46 52 public int[] sqlTypes(); 53 54 59 public Class returnedClass(); 60 61 69 public boolean equals(Object x, Object y) throws HibernateException; 70 71 74 public int hashCode(Object x) throws HibernateException; 75 76 87 public Object nullSafeGet(ResultSet rs, String [] names, Object owner) throws HibernateException, SQLException ; 88 89 100 public void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException ; 101 102 110 public Object deepCopy(Object value) throws HibernateException; 111 112 117 public boolean isMutable(); 118 119 129 public Serializable disassemble(Object value) throws HibernateException; 130 131 140 public Object assemble(Serializable cached, Object owner) throws HibernateException; 141 142 153 public Object replace(Object original, Object target, Object owner) throws HibernateException; 154 } 155 156 157 158 159 160 161 | Popular Tags |