org.hibernate.usertype |
Interfaces for user-defined custom types.
|
Java Source File Name | Type | Comment |
CompositeUserType.java | Interface | A UserType that may be dereferenced in a query.
This interface allows a custom type to define "properties".
These need not necessarily correspond to physical JavaBeans
style properties.
A CompositeUserType may be used in almost every way
that a component may be used. |
EnhancedUserType.java | Interface | |
LoggableUserType.java | Interface | |
ParameterizedType.java | Interface | Support for parameterizable types. |
UserCollectionType.java | Interface | |
UserType.java | Interface | This interface should be implemented by user-defined "types".
A "type" class is not the actual property type - it
is a class that knows how to serialize instances of another
class to and from JDBC.
This interface
- abstracts user code from future changes to the Type
interface,
- simplifies the implementation of custom types and
- hides certain "internal" interfaces from user code.
Implementors must be immutable and must declare a public
default constructor.
The actual class mapped by a UserType may be just
about anything.
CompositeUserType provides an extended version of
this interface that is useful for more complex cases.
Alternatively, custom types could implement Type
directly or extend one of the abstract classes in
org.hibernate.type. |
UserVersionType.java | Interface | |