Top Inners Fields Constructors Methods
org.hibernate.metamodel.model.domain.internal

public Class SingularAttributeImpl<D, J>

extends AbstractAttribute<D, J>
implements SingularPersistentAttribute<D, J>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.metamodel.model.domain.spi.SingularPersistentAttribute, org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor, org.hibernate.metamodel.model.domain.PersistentAttribute, javax.persistence.metamodel.Attribute, javax.persistence.metamodel.SingularAttribute, javax.persistence.metamodel.Bindable
Known Direct Subclasses
org.hibernate.metamodel.model.domain.internal.SingularAttributeImpl.Identifier, org.hibernate.metamodel.model.domain.internal.SingularAttributeImpl.Version
Imports
java.io.Serializable, java.lang.reflect.Member, java.util.function.Supplier, org.hibernate.graph.spi.GraphHelper, org.hibernate.metamodel.model.domain.spi.ManagedTypeDescriptor, .SimpleTypeDescriptor, .SingularPersistentAttribute

Authors
Emmanuel Bernard, Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
public static class
SingularAttributeImpl.Identifier<D, J>

Subclass used to simplify instantiation of singular attributes representing an entity's identifier.

public static class
SingularAttributeImpl.Version<X, Y>

Subclass used to simply instantiation of singular attributes representing an entity's version.

Field Summary

Modifier and TypeField and Description
private final SimpleTypeDescriptor<J>
private final SingularAttributeImpl<D, J>.DelayedKeyTypeAccess
private final boolean
private final boolean
private final boolean

Constructor Summary

AccessConstructor and Description
public
SingularAttributeImpl(ManagedTypeDescriptor<D> declaringType, String name, Attribute.PersistentAttributeType attributeNature, SimpleTypeDescriptor<J> attributeType, Member member, boolean isIdentifier, boolean isVersion, boolean isOptional)

Method Summary

Modifier and TypeMethod and Description
public Class<J>
getBindableJavaType()

Implements javax.persistence.metamodel.Bindable.getBindableJavaType.

Return the Java type of the represented object.
public Bindable.BindableType
getBindableType()

Implements javax.persistence.metamodel.Bindable.getBindableType.

Return the bindable type of the represented object.
public SimpleTypeDescriptor<J>
public SimpleTypeDescriptor<J>
getType()

Implements org.hibernate.metamodel.model.domain.spi.SingularPersistentAttribute.getType.

Return the type that represents the type of the attribute.
public SimpleTypeDescriptor<J>
public boolean
isAssociation()

Implements javax.persistence.metamodel.Attribute.isAssociation.

Is the attribute an association.
public boolean
isCollection()

Implements javax.persistence.metamodel.Attribute.isCollection.

Is the attribute collection-valued (represents a Collection, Set, List, or Map).
public boolean
isId()

Implements javax.persistence.metamodel.SingularAttribute.isId.

Is the attribute an id attribute.
public boolean
public boolean
isVersion()

Implements javax.persistence.metamodel.SingularAttribute.isVersion.

Is the attribute a version attribute.
Inherited from org.hibernate.metamodel.model.domain.internal.AbstractAttribute:
getDeclaringTypegetJavaMembergetNamegetPersistentAttributeTypereadObjecttoStringwriteObject

Field Detail

attributeTypeback to summary
private final SimpleTypeDescriptor<J> attributeType
graphKeyTypeAccessback to summary
private final SingularAttributeImpl<D, J>.DelayedKeyTypeAccess graphKeyTypeAccess
isIdentifierback to summary
private final boolean isIdentifier
isOptionalback to summary
private final boolean isOptional
isVersionback to summary
private final boolean isVersion

Constructor Detail

SingularAttributeImplback to summary
public SingularAttributeImpl(ManagedTypeDescriptor<D> declaringType, String name, Attribute.PersistentAttributeType attributeNature, SimpleTypeDescriptor<J> attributeType, Member member, boolean isIdentifier, boolean isVersion, boolean isOptional)

Method Detail

getBindableJavaTypeback to summary
public Class<J> getBindableJavaType()

Implements javax.persistence.metamodel.Bindable.getBindableJavaType.

Doc from javax.persistence.metamodel.Bindable.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<J>

Java type

Annotations
@Override
getBindableTypeback to summary
public Bindable.BindableType getBindableType()

Implements javax.persistence.metamodel.Bindable.getBindableType.

Doc from javax.persistence.metamodel.Bindable.getBindableType.

Return the bindable type of the represented object.

Returns:Bindable.BindableType

bindable type

Annotations
@Override
getKeyGraphTypeback to summary
public SimpleTypeDescriptor<J> getKeyGraphType()

Implements org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor.getKeyGraphType.

Annotations
@Override
getTypeback to summary
public SimpleTypeDescriptor<J> getType()

Implements org.hibernate.metamodel.model.domain.spi.SingularPersistentAttribute.getType.

Doc from javax.persistence.metamodel.SingularAttribute.getType.

Return the type that represents the type of the attribute.

Returns:SimpleTypeDescriptor<J>

type of attribute

Annotations
@Override
getValueGraphTypeback to summary
public SimpleTypeDescriptor<J> getValueGraphType()

Overrides org.hibernate.metamodel.model.domain.internal.AbstractAttribute.getValueGraphType.

Overrides default org.hibernate.metamodel.model.domain.spi.SingularPersistentAttribute.getValueGraphType.

Implements org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor.getValueGraphType.

Doc from org.hibernate.metamodel.model.domain.spi.SingularPersistentAttribute.getValueGraphType.

For a singular attribute, the value type is defined as the attribute type

Annotations
@Override
isAssociationback to summary
public boolean isAssociation()

Implements javax.persistence.metamodel.Attribute.isAssociation.

Doc from javax.persistence.metamodel.Attribute.isAssociation.

Is the attribute an association.

Returns:boolean

boolean indicating whether the attribute corresponds to an association

Annotations
@Override
isCollectionback to summary
public boolean isCollection()

Implements javax.persistence.metamodel.Attribute.isCollection.

Doc from javax.persistence.metamodel.Attribute.isCollection.

Is the attribute collection-valued (represents a Collection, Set, List, or Map).

Returns:boolean

boolean indicating whether the attribute is collection-valued

Annotations
@Override
isIdback to summary
public boolean isId()

Implements javax.persistence.metamodel.SingularAttribute.isId.

Doc from javax.persistence.metamodel.SingularAttribute.isId.

Is the attribute an id attribute. This method will return true if the attribute is an attribute that corresponds to a simple id, an embedded id, or an attribute of an id class.

Returns:boolean

boolean indicating whether the attribute is an id

Annotations
@Override
isOptionalback to summary
public boolean isOptional()

Implements javax.persistence.metamodel.SingularAttribute.isOptional.

Doc from javax.persistence.metamodel.SingularAttribute.isOptional.

Can the attribute be null.

Returns:boolean

boolean indicating whether the attribute can be null

Annotations
@Override
isVersionback to summary
public boolean isVersion()

Implements javax.persistence.metamodel.SingularAttribute.isVersion.

Doc from javax.persistence.metamodel.SingularAttribute.isVersion.

Is the attribute a version attribute.

Returns:boolean

boolean indicating whether the attribute is a version attribute

Annotations
@Override
org.hibernate.metamodel.model.domain.internal back to summary

private Class SingularAttributeImpl.DelayedKeyTypeAccess

extends Object
implements Supplier<SimpleTypeDescriptor<J>>, Serializable
Class Inheritance
  • java.lang.Object
  • org.hibernate.metamodel.model.domain.internal.SingularAttributeImpl.DelayedKeyTypeAccess
All Implemented Interfaces
java.io.Serializable, java.util.function.Supplier

Field Summary

Modifier and TypeField and Description
private boolean
private SimpleTypeDescriptor<J>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public SimpleTypeDescriptor<J>
get()

Implements java.util.function.Supplier.get.

Gets a result.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

resolvedback to summary
private boolean resolved
typeback to summary
private SimpleTypeDescriptor<J> type

Constructor Detail

DelayedKeyTypeAccessback to summary
private DelayedKeyTypeAccess()

Method Detail

getback to summary
public SimpleTypeDescriptor<J> get()

Implements java.util.function.Supplier.get.

Doc from java.util.function.Supplier.get.

Gets a result.

Returns:SimpleTypeDescriptor<J>

a result

Annotations
@Override
org.hibernate.metamodel.model.domain.internal back to summary

public Class SingularAttributeImpl.Identifier<D, J>

extends SingularAttributeImpl<D, J>
Class Inheritance

Subclass used to simplify instantiation of singular attributes representing an entity's identifier.

Constructor Summary

AccessConstructor and Description
public
Identifier(ManagedTypeDescriptor<D> declaringType, String name, SimpleTypeDescriptor<J> attributeType, Member member, Attribute.PersistentAttributeType attributeNature)

Method Summary

Inherited from org.hibernate.metamodel.model.domain.internal.SingularAttributeImpl:
getBindableJavaTypegetBindableTypegetKeyGraphTypegetTypegetValueGraphTypeisAssociationisCollectionisIdisOptionalisVersion

Constructor Detail

Identifierback to summary
public Identifier(ManagedTypeDescriptor<D> declaringType, String name, SimpleTypeDescriptor<J> attributeType, Member member, Attribute.PersistentAttributeType attributeNature)
org.hibernate.metamodel.model.domain.internal back to summary

public Class SingularAttributeImpl.Version<X, Y>

extends SingularAttributeImpl<X, Y>
Class Inheritance

Subclass used to simply instantiation of singular attributes representing an entity's version.

Constructor Summary

AccessConstructor and Description
public
Version(ManagedTypeDescriptor<X> declaringType, String name, Attribute.PersistentAttributeType attributeNature, SimpleTypeDescriptor<Y> attributeType, Member member)

Method Summary

Inherited from org.hibernate.metamodel.model.domain.internal.SingularAttributeImpl:
getBindableJavaTypegetBindableTypegetKeyGraphTypegetTypegetValueGraphTypeisAssociationisCollectionisIdisOptionalisVersion

Constructor Detail

Versionback to summary
public Version(ManagedTypeDescriptor<X> declaringType, String name, Attribute.PersistentAttributeType attributeNature, SimpleTypeDescriptor<Y> attributeType, Member member)