|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.ejb.metamodel.AttributeFactory
public class AttributeFactory
A factory for building Attribute instances. Exposes 3 main services for building
normal attributesid attributesversion attributes
| Constructor Summary | |
|---|---|
AttributeFactory(org.hibernate.ejb.metamodel.MetadataContext context)
|
|
| Method Summary | ||
|---|---|---|
protected
|
accountForPrimitiveTypes(Class<Y> declaredType)
|
|
|
buildAttribute(AbstractManagedType<X> ownerType,
Property property)
Build a normal attribute. |
|
|
buildIdAttribute(AbstractIdentifiableType<X> ownerType,
Property property)
Build the identifier attribute descriptor |
|
|
buildVersionAttribute(AbstractIdentifiableType<X> ownerType,
Property property)
Build the version attribute descriptor |
|
static javax.persistence.metamodel.PluralAttribute.CollectionType |
determineCollectionType(Class javaType)
|
|
static javax.persistence.metamodel.Attribute.PersistentAttributeType |
determineSingularAssociationAttributeType(Member member)
|
|
static ParameterizedType |
getSignatureType(Member member)
|
|
static boolean |
isManyToMany(Member member)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeFactory(org.hibernate.ejb.metamodel.MetadataContext context)
| Method Detail |
|---|
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 attribute
public <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 attribute
public <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 attribute
public static javax.persistence.metamodel.Attribute.PersistentAttributeType determineSingularAssociationAttributeType(Member member)
protected <Y> Class<Y> accountForPrimitiveTypes(Class<Y> declaredType)
public static ParameterizedType getSignatureType(Member member)
public static javax.persistence.metamodel.PluralAttribute.CollectionType determineCollectionType(Class javaType)
public static boolean isManyToMany(Member member)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||