public class AttributeFactory
extends java.lang.Object
Attribute instances. Exposes 3 main services for building| Constructor and Description |
|---|
AttributeFactory(org.hibernate.metamodel.internal.MetadataContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected <Y> java.lang.Class<Y> |
accountForPrimitiveTypes(java.lang.Class<Y> declaredType) |
<X,Y> AttributeImplementor<X,Y> |
buildAttribute(AbstractManagedType<X> ownerType,
Property property)
Build a normal attribute.
|
<X,Y> SingularAttributeImpl<X,Y> |
buildIdAttribute(AbstractIdentifiableType<X> ownerType,
Property property)
Build the identifier attribute descriptor
|
<X,Y> SingularAttributeImpl<X,Y> |
buildVersionAttribute(AbstractIdentifiableType<X> ownerType,
Property property)
Build the version attribute descriptor
|
static javax.persistence.metamodel.PluralAttribute.CollectionType |
determineCollectionType(java.lang.Class javaType) |
static javax.persistence.metamodel.Attribute.PersistentAttributeType |
determineSingularAssociationAttributeType(java.lang.reflect.Member member) |
static java.lang.reflect.ParameterizedType |
getSignatureType(java.lang.reflect.Member member) |
static boolean |
isManyToMany(java.lang.reflect.Member member) |
public AttributeFactory(org.hibernate.metamodel.internal.MetadataContext context)
public <X,Y> AttributeImplementor<X,Y> buildAttribute(AbstractManagedType<X> ownerType, Property property)
X - The type of the ownerY - The attribute typeownerType - The descriptor of the attribute owner (aka declarer).property - The Hibernate property descriptor for the attributepublic <X,Y> SingularAttributeImpl<X,Y> buildIdAttribute(AbstractIdentifiableType<X> ownerType, Property property)
X - The type of the ownerY - The attribute typeownerType - The descriptor of the attribute owner (aka declarer).property - The Hibernate property descriptor for the identifier attributepublic <X,Y> SingularAttributeImpl<X,Y> buildVersionAttribute(AbstractIdentifiableType<X> ownerType, Property property)
X - The type of the ownerY - The attribute typeownerType - The descriptor of the attribute owner (aka declarer).property - The Hibernate property descriptor for the version attributepublic static javax.persistence.metamodel.Attribute.PersistentAttributeType determineSingularAssociationAttributeType(java.lang.reflect.Member member)
protected <Y> java.lang.Class<Y> accountForPrimitiveTypes(java.lang.Class<Y> declaredType)
public static java.lang.reflect.ParameterizedType getSignatureType(java.lang.reflect.Member member)
public static javax.persistence.metamodel.PluralAttribute.CollectionType determineCollectionType(java.lang.Class javaType)
public static boolean isManyToMany(java.lang.reflect.Member member)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.