|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.metamodel.domain.AbstractAttributeContainer
public abstract class AbstractAttributeContainer
Convenient base class for AttributeContainer
. Because in our model all
AttributeContainers
are also Hierarchical
we also implement that here
as well.
Nested Class Summary | |
---|---|
static class |
AbstractAttributeContainer.IndexedPluralAttributeImpl
|
static class |
AbstractAttributeContainer.PluralAttributeImpl
|
static class |
AbstractAttributeContainer.SingularAttributeImpl
|
Constructor Summary | |
---|---|
AbstractAttributeContainer(String name,
String className,
Value<Class<?>> classReference,
Hierarchical superType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.hibernate.metamodel.domain.Type |
---|
isAssociation, isComponent |
Constructor Detail |
---|
public AbstractAttributeContainer(String name, String className, Value<Class<?>> classReference, Hierarchical superType)
Method Detail |
---|
public String getName()
Type
getName
in interface Type
public String getClassName()
Type
getClassName
in interface Type
public Class<?> getClassReference()
Type
Class
reference for this type
getClassReference
in interface Type
Class
referencepublic Value<Class<?>> getClassReferenceUnresolved()
getClassReferenceUnresolved
in interface Type
public Hierarchical getSuperType()
Hierarchical
getSuperType
in interface Hierarchical
public Set<Attribute> attributes()
AttributeContainer
attributes
in interface AttributeContainer
public String getRoleBaseName()
AttributeContainer
getRoleBaseName
in interface AttributeContainer
public Attribute locateAttribute(String name)
AttributeContainer
locateAttribute
in interface AttributeContainer
name
- The name of the attribute to retrieve.
public SingularAttribute locateSingularAttribute(String name)
locateSingularAttribute
in interface AttributeContainer
public SingularAttribute createSingularAttribute(String name)
createSingularAttribute
in interface AttributeContainer
public SingularAttribute createVirtualSingularAttribute(String name)
createVirtualSingularAttribute
in interface AttributeContainer
public SingularAttribute locateComponentAttribute(String name)
locateComponentAttribute
in interface AttributeContainer
public SingularAttribute createComponentAttribute(String name, Component component)
createComponentAttribute
in interface AttributeContainer
public PluralAttribute locatePluralAttribute(String name)
locatePluralAttribute
in interface AttributeContainer
protected PluralAttribute createPluralAttribute(String name, PluralAttributeNature nature)
public PluralAttribute locateBag(String name)
locateBag
in interface AttributeContainer
public PluralAttribute createBag(String name)
createBag
in interface AttributeContainer
public PluralAttribute locateSet(String name)
locateSet
in interface AttributeContainer
public PluralAttribute createSet(String name)
createSet
in interface AttributeContainer
public IndexedPluralAttribute locateList(String name)
locateList
in interface AttributeContainer
public IndexedPluralAttribute createList(String name)
createList
in interface AttributeContainer
public IndexedPluralAttribute locateMap(String name)
locateMap
in interface AttributeContainer
public IndexedPluralAttribute createMap(String name)
createMap
in interface AttributeContainer
public String toString()
toString
in class Object
protected void addAttribute(Attribute attribute)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |