Purpose: Provides the implementation for the SingularAttribute interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)
Description: Instances of the type SingularAttribute represents persistent single-valued properties or fields.
jakarta.persistence.metamodel.SingularAttribute
| Modifier and Type | Field and Description |
|---|---|
| private Type | elementType
The Type representing this Entity or Basic type |
| private static final long | serialVersionUID
Item 54: DI 89: explicit UID will avoid performance hit runtime generation of one |
| Access | Constructor and Description |
|---|---|
| protected | SingularAttributeImpl(ManagedTypeImpl<X> managedType, DatabaseMapping mapping)
Create an instance of the Attribute |
| protected | SingularAttributeImpl(ManagedTypeImpl<X> managedType, DatabaseMapping mapping, boolean validationEnabled)
INTERNAL: Create an Attribute instance with a passed in validation flag (usually set to true only during Metamodel initialization) |
| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: Java typeImplements jakarta. |
| public Bindable. | getBindableType()
Implements jakarta. |
| public Class | Returns: Java typeImplements abstract org. Implements jakarta. |
| public Type | Returns: type of attributeImplements jakarta. |
| public boolean | Returns: boolean indicating whether or not attribute is an idImplements jakarta. |
| public boolean | Returns: boolean indicating whether or not the attribute can be nullImplements jakarta. |
| public boolean | isPlural()
Implements abstract org. |
| public boolean | Returns: boolean indicating whether or not attribute is a version attributeImplements jakarta. |
| public String |
| elementType | back to summary |
|---|---|
| private Type<T> elementType The Type representing this Entity or Basic type | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Item 54: DI 89: explicit UID will avoid performance hit runtime generation of one | |
| SingularAttributeImpl | back to summary |
|---|---|
| protected SingularAttributeImpl(ManagedTypeImpl<X> managedType, DatabaseMapping mapping) Create an instance of the Attribute | |
| SingularAttributeImpl | back to summary |
|---|---|
| protected SingularAttributeImpl(ManagedTypeImpl<X> managedType, DatabaseMapping mapping, boolean validationEnabled) INTERNAL: Create an Attribute instance with a passed in validation flag (usually set to true only during Metamodel initialization) | |
| getBindableJavaType | back to summary |
|---|---|
| public Class Implements jakarta. Return the Java type of the represented object.
If the bindable type of the object is | |
| getBindableType | back to summary |
|---|---|
| public Bindable. Implements jakarta. Doc from jakarta. Return the bindable type of the represented object.
| |
| getJavaType | back to summary |
|---|---|
| public Class Implements abstract org. Implements jakarta. Return the Java type of the represented attribute.
| |
| getType | back to summary |
|---|---|
| public Type Implements jakarta. Return the type that represents the type of the attribute. | |
| isId | back to summary |
|---|---|
| public boolean isId() Implements jakarta. Is the attribute an id attribute.
| |
| isOptional | back to summary |
|---|---|
| public boolean isOptional() Implements jakarta. Can the attribute be null.
| |
| isPlural | back to summary |
|---|---|
| public boolean isPlural() Implements abstract org. INTERNAL: Return whether the attribute is plural or singular
| |
| isVersion | back to summary |
|---|---|
| public boolean isVersion() Implements jakarta. Is the attribute a version attribute.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return the String representation of the receiver.
| |