Top Description Inners Methods
jakarta.persistence.metamodel

public Interface Bindable<T>

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

An instances of the type Bindable represents an object or attribute type that can be bound into a Path.
Since
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

jakarta.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

Multivalued attribute type, that is, a collection.

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.

See Also
EntityType
PLURAL_ATTRIBUTEback to summary
public static final Bindable.BindableType PLURAL_ATTRIBUTE

Multivalued attribute type, that is, a collection.

See Also
PluralAttribute
SINGULAR_ATTRIBUTEback to summary
public static final Bindable.BindableType SINGULAR_ATTRIBUTE

Single-valued attribute type.

See Also
SingularAttribute

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()