|
||||||||||
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 attributes
id attributes
version attributes
Constructor Summary | |
---|---|
AttributeFactory(org.hibernate.ejb.metamodel.MetadataContext context)
|
Method Summary | ||
---|---|---|
protected
|
accountForPrimitiveTypes(java.lang.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(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)
|
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(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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |