org.hibernate.usertype.EnhancedUserType |
Known Indirect Subclasses
EnumType |
Enum type mapper
Try and find the appropriate SQL type depending on column metadata
TODO implements readobject/writeobject to recalculate the enumclasses |
|
Class Overview
A custom type that may function as an identifier or
discriminator type, or may be marshalled to and from
an XML document
Summary
[Expand]
Inherited Methods |
From interface
org.hibernate.usertype.UserType
abstract
Object
|
assemble(Serializable cached, Object owner)
Reconstruct an object from the cacheable representation.
|
abstract
Object
|
deepCopy(Object value)
Return a deep copy of the persistent state, stopping at entities and at
collections.
|
abstract
Serializable
|
disassemble(Object value)
Transform the object into its cacheable representation.
|
abstract
boolean
|
equals(Object x, Object y)
Compare two instances of the class mapped by this type for persistence "equality".
|
abstract
int
|
hashCode(Object x)
Get a hashcode for the instance, consistent with persistence "equality"
|
abstract
boolean
|
isMutable()
Are objects of this type mutable?
|
abstract
Object
|
nullSafeGet(ResultSet rs, String[] names, Object owner)
This method is deprecated.
SessionImplementor will be added as an argument in a future version (see HHH-5968)
|
abstract
void
|
nullSafeSet(PreparedStatement st, Object value, int index)
This method is deprecated.
SessionImplementor will be added as an argument in a future version (see HHH-5968)
|
abstract
Object
|
replace(Object original, Object target, Object owner)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
abstract
Class
|
returnedClass()
The class returned by nullSafeGet().
|
abstract
int[]
|
sqlTypes()
Return the SQL type codes for the columns mapped by this type.
|
|
Public Methods
public
abstract
Object
fromXMLString
(String xmlValue)
Parse a string representation of this value, as it
appears in an XML document
public
abstract
String
objectToSQLString
(Object value)
Return an SQL literal representation of the value
public
abstract
String
toXMLString
(Object value)
Return a string representation of this value, as it
should appear in an XML document