|
||||||||||
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(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 PluralAttribute.CollectionType |
determineCollectionType(Class javaType)
|
|
static 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 Attribute.PersistentAttributeType determineSingularAssociationAttributeType(Member member)
protected <Y> Class<Y> accountForPrimitiveTypes(Class<Y> declaredType)
public static ParameterizedType getSignatureType(Member member)
public static 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 |