Top Description Inners Methods
javax.persistence.metamodel

public Interface Bindable<T>

Known Direct Subinterfaces
javax.persistence.metamodel.EntityType, javax.persistence.metamodel.PluralAttribute, javax.persistence.metamodel.SingularAttribute
Type Parameters
<T>
The type of the represented object or attribute

Instances of the type Bindable represent object or attribute types that can be bound into a Path.
Since
Java Persistence 2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Method Summary

Modifier and TypeMethod and Description
public Class<T>

Returns:

Java type
getBindableJavaType
()

Return the Java type of the represented object.

public Bindable.BindableType

Returns:

bindable type
getBindableType
()

Return the bindable type of the represented object.

Method Detail

getBindableJavaTypeback to summary
public Class<T> getBindableJavaType()

Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE, the Java element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY_TYPE, the Java type of the represented entity or attribute is returned.

Returns:Class<T>

Java type

getBindableTypeback to summary
public Bindable.BindableType getBindableType()

Return the bindable type of the represented object.

Returns:Bindable.BindableType

bindable type

javax.persistence.metamodel back to summary

public final Enum Bindable.BindableType

extends Enum<Bindable.BindableType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Bindable.BindableType
ENTITY_TYPE

Entity type

public static final Bindable.BindableType
PLURAL_ATTRIBUTE

Multi-valued attribute type

public static final Bindable.BindableType
SINGULAR_ATTRIBUTE

Single-valued attribute type

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Bindable.BindableType
public static Bindable.BindableType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ENTITY_TYPEback to summary
public static final Bindable.BindableType ENTITY_TYPE

Entity type

PLURAL_ATTRIBUTEback to summary
public static final Bindable.BindableType PLURAL_ATTRIBUTE

Multi-valued attribute type

SINGULAR_ATTRIBUTEback to summary
public static final Bindable.BindableType SINGULAR_ATTRIBUTE

Single-valued attribute type

Constructor Detail

BindableTypeback to summary
private BindableType()

Method Detail

valueOfback to summary
public static Bindable.BindableType valueOf(String name)
valuesback to summary
public static Bindable.BindableType[] values()