T
- the generic for the adapted datatype.AttributeConverter
instead.@Deprecated public abstract class AbstractUserType<T> extends AbstractLoggableComponent implements org.hibernate.usertype.UserType
UserType
.org.hibernate.annotations.Type
Modifier and Type | Field and Description |
---|---|
private Class<T> |
javaType
Deprecated.
|
private int[] |
sqlTypes
Deprecated.
|
Constructor and Description |
---|
AbstractUserType(int sqlType,
Class<T> javaType)
Deprecated.
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
assemble(Serializable cached,
Object owner)
Deprecated.
|
Object |
deepCopy(Object value)
Deprecated.
|
Serializable |
disassemble(Object value)
Deprecated.
|
boolean |
equals(Object x,
Object y)
Deprecated.
|
protected org.slf4j.Logger |
getLogger()
Deprecated.
This method gets the
logger for this component. |
int |
hashCode(Object x)
Deprecated.
|
boolean |
isMutable()
Deprecated.
|
abstract T |
nullSafeGet(ResultSet rs,
String[] names,
org.hibernate.engine.spi.SessionImplementor session,
Object owner)
Deprecated.
|
Object |
replace(Object original,
Object target,
Object owner)
Deprecated.
|
Class<T> |
returnedClass()
Deprecated.
|
int[] |
sqlTypes()
Deprecated.
|
createLogger, doInitialize
doInitialized, getInitializationState, initialize
private final int[] sqlTypes
sqlTypes
private final Class<T> javaType
returnedClass()
public AbstractUserType(int sqlType, Class<T> javaType)
sqlType
- is the SQL type
used to store the adapted datatype.javaType
- is the java class
representing the adapted datatype.protected org.slf4j.Logger getLogger() throws NotInitializedException
logger
for this component. getLogger
in class AbstractLoggableComponent
Logger
to be used by this component.NotInitializedException
public int[] sqlTypes()
sqlTypes
in interface org.hibernate.usertype.UserType
public Class<T> returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
public boolean equals(Object x, Object y) throws org.hibernate.HibernateException
equals
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public int hashCode(Object x) throws org.hibernate.HibernateException
hashCode
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public abstract T nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SessionImplementor session, Object owner) throws SQLException
nullSafeGet
in interface org.hibernate.usertype.UserType
SQLException
public Object deepCopy(Object value) throws org.hibernate.HibernateException
deepCopy
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public boolean isMutable()
isMutable
in interface org.hibernate.usertype.UserType
public Serializable disassemble(Object value) throws org.hibernate.HibernateException
disassemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
assemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
Copyright © 2001–2014 mmm-Team. All rights reserved.