public class TypeDefinition extends Object implements Serializable
Models the information pertaining to a custom type definition supplied by the user. Used
to delay instantiation of the actual Type
instance.
Generally speaking this information would come from annotations
(TypeDef
) or XML mappings. An alternative form of
supplying custom types is programmatically via one of:<ul>
<li>MetadataBuilder.applyBasicType(org.hibernate.type.BasicType)
</li>
<li>MetadataBuilder.applyBasicType(org.hibernate.usertype.UserType, String[])
</li>
<li>MetadataBuilder.applyTypes(TypeContributor)
</li>
</ul>
Constructor and Description |
---|
TypeDefinition(String name,
Class typeImplementorClass,
String[] registrationKeys,
Map<String,String> parameters) |
TypeDefinition(String name,
Class typeImplementorClass,
String[] registrationKeys,
Properties parameters) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName() |
Map<String,String> |
getParameters() |
Properties |
getParametersAsProperties() |
String[] |
getRegistrationKeys() |
Class |
getTypeImplementorClass() |
int |
hashCode() |
String |
toString() |
public TypeDefinition(String name, Class typeImplementorClass, String[] registrationKeys, Map<String,String> parameters)
public TypeDefinition(String name, Class typeImplementorClass, String[] registrationKeys, Properties parameters)
public String getName()
public Class getTypeImplementorClass()
public String[] getRegistrationKeys()
public Properties getParametersAsProperties()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.