org.hibernate.metamodel.domain
Class Component
java.lang.Object
org.hibernate.metamodel.domain.AbstractAttributeContainer
org.hibernate.metamodel.domain.Component
- All Implemented Interfaces:
- AttributeContainer, Hierarchical, Type
public class Component
- extends AbstractAttributeContainer
Models the notion of a component (what JPA calls an Embeddable).
NOTE : Components are not currently really hierarchical. But that is a feature I want to add.
Methods inherited from class org.hibernate.metamodel.domain.AbstractAttributeContainer |
addAttribute, attributes, createBag, createComponentAttribute, createList, createMap, createPluralAttribute, createSet, createSingularAttribute, createVirtualSingularAttribute, getClassName, getClassReference, getClassReferenceUnresolved, getName, getSuperType, locateAttribute, locateBag, locateComponentAttribute, locateList, locateMap, locatePluralAttribute, locateSet, locateSingularAttribute, toString |
Component
public Component(String name,
String className,
ValueHolder<Class<?>> classReference,
Hierarchical superType)
isAssociation
public boolean isAssociation()
isComponent
public boolean isComponent()
getRoleBaseName
public String getRoleBaseName()
- Description copied from interface:
AttributeContainer
- Obtain the name of this container in terms of creating attribute role names.
NOTE : A role uniquely names each attribute. The role name is the name of the attribute prefixed by the "path"
to its container.
- Specified by:
getRoleBaseName
in interface AttributeContainer
- Overrides:
getRoleBaseName
in class AbstractAttributeContainer
- Returns:
- The container base name for role construction.
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.