The IEnhancedUserType type exposes the following members.

Methods

  NameDescription
Public methodAssemble
Reconstruct an object from the cacheable representation. At the very least this method should perform a deep copy if the type is mutable. (optional operation)
(Inherited from IUserType.)
Public methodDeepCopy
Return a deep copy of the persistent state, stopping at entities and at collections.
(Inherited from IUserType.)
Public methodDisassemble
Transform the object into its cacheable representation. At the very least this method should perform a deep copy if the type is mutable. That may not be enough for some implementations, however; for example, associations must be cached as identifier values. (optional operation)
(Inherited from IUserType.)
Public methodEquals
Compare two instances of the class mapped by this type for persistent "equality" ie. equality of persistent state
(Inherited from IUserType.)
Public methodFromXMLString
Parse a string representation of this value, as it appears in an XML document.
Public methodGetHashCode
Get a hashcode for the instance, consistent with persistence "equality"
(Inherited from IUserType.)
Public methodNullSafeGet
Retrieve an instance of the mapped class from a JDBC resultset. Implementors should handle possibility of null values.
(Inherited from IUserType.)
Public methodNullSafeSet
Write an instance of the mapped class to a prepared statement. Implementors should handle possibility of null values. A multi-column type should be written to parameters starting from index.
(Inherited from IUserType.)
Public methodObjectToSQLString
Return an SQL literal representation of the value
Public methodReplace
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. For immutable objects, or null values, it is safe to simply return the first parameter. For mutable objects, it is safe to return a copy of the first parameter. For objects with component values, it might make sense to recursively replace component values.
(Inherited from IUserType.)
Public methodToXMLString
Return a string representation of this value, as it should appear in an XML document

Properties

  NameDescription
Public propertyIsMutable
Are objects of this type mutable?
(Inherited from IUserType.)
Public propertyReturnedType
The type returned by NullSafeGet()
(Inherited from IUserType.)
Public propertySqlTypes
The SQL types for the columns mapped by this type.
(Inherited from IUserType.)

See Also