@Target(value={TYPE,PACKAGE})
@Retention(value=RUNTIME)
@Repeatable(value=TypeDefs.class)
public @interface TypeDef
Type, but here we can centralize the definition under a name and
refer to that name elsewhere.
The plural form is TypeDefs.Type,
UserType,
CompositeUserType,
Type| Modifier and Type | Required Element and Description |
|---|---|
java.lang.Class<?> |
typeClass
The type implementation class.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<?> |
defaultForType
Name a java type for which this defined type should be the default mapping.
|
java.lang.String |
name
The type name.
|
Parameter[] |
parameters
Any configuration parameters for this type definition.
|
public abstract java.lang.Class<?> typeClass
public abstract java.lang.String name
public abstract java.lang.Class<?> defaultForType
public abstract Parameter[] parameters
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.