Constructor and Description |
---|
AttributeFactory(org.hibernate.ejb.metamodel.MetadataContext context) |
Modifier and Type | Method and Description |
---|---|
protected <Y> Class<Y> |
accountForPrimitiveTypes(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 PluralAttribute.CollectionType |
determineCollectionType(Class javaType) |
static Attribute.PersistentAttributeType |
determineSingularAssociationAttributeType(Member member) |
static ParameterizedType |
getSignatureType(Member member) |
static boolean |
isManyToMany(Member member) |
public AttributeFactory(org.hibernate.ejb.metamodel.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 Attribute.PersistentAttributeType determineSingularAssociationAttributeType(Member member)
public static ParameterizedType getSignatureType(Member member)
public static PluralAttribute.CollectionType determineCollectionType(Class javaType)
public static boolean isManyToMany(Member member)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.