public class Component extends SimpleValue implements MetaAttributable
| Modifier and Type | Class and Description |
|---|---|
static class |
Component.StandardGenerationContextLocator |
static class |
Component.ValueGenerationPlan |
DEFAULT_ID_GEN_STRATEGY| Constructor and Description |
|---|
Component(MetadataBuildingContext metadata,
Collection collection) |
Component(MetadataBuildingContext metadata,
Component component) |
Component(MetadataBuildingContext metadata,
Join join) |
Component(MetadataBuildingContext metadata,
PersistentClass owner) |
Component(MetadataBuildingContext metadata,
Table table,
PersistentClass owner) |
Component(MetadataImplementor metadata,
Collection collection)
Deprecated.
User
Component(MetadataBuildingContext, Collection) instead. |
Component(MetadataImplementor metadata,
Component component)
Deprecated.
User
Component(MetadataBuildingContext, Component) instead. |
Component(MetadataImplementor metadata,
Join join)
Deprecated.
User
Component(MetadataBuildingContext, Join) instead. |
Component(MetadataImplementor metadata,
PersistentClass owner)
Deprecated.
User
Component(MetadataBuildingContext, PersistentClass) instead. |
Component(MetadataImplementor metadata,
Table table,
PersistentClass owner)
Deprecated.
|
addColumn, addFormula, copyTypeFrom, createForeignKey, createForeignKeyOfEntity, getConstraintColumns, getFetchMode, getForeignKeyDefinition, getForeignKeyName, getIdentifierGenerator, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMetadata, getNullValue, getServiceRegistry, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isLob, isNationalized, isNullable, isSame, isSame, isSimpleValue, isTypeSpecified, isUpdateable, isValid, isVersion, makeLob, makeNationalized, makeVersion, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyDefinition, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDescriptor, setNullValue, setTable, setTypeName, setTypeParameters@Deprecated public Component(MetadataImplementor metadata, PersistentClass owner) throws MappingException
Component(MetadataBuildingContext, PersistentClass) instead.MappingException@Deprecated public Component(MetadataImplementor metadata, Component component) throws MappingException
Component(MetadataBuildingContext, Component) instead.MappingException@Deprecated public Component(MetadataImplementor metadata, Join join) throws MappingException
Component(MetadataBuildingContext, Join) instead.MappingException@Deprecated public Component(MetadataImplementor metadata, Collection collection) throws MappingException
Component(MetadataBuildingContext, Collection) instead.MappingException@Deprecated public Component(MetadataImplementor metadata, Table table, PersistentClass owner) throws MappingException
Component(MetadataBuildingContext, Table, PersistentClass) instead.MappingExceptionpublic Component(MetadataBuildingContext metadata, PersistentClass owner) throws MappingException
MappingExceptionpublic Component(MetadataBuildingContext metadata, Component component) throws MappingException
MappingExceptionpublic Component(MetadataBuildingContext metadata, Join join) throws MappingException
MappingExceptionpublic Component(MetadataBuildingContext metadata, Collection collection) throws MappingException
MappingExceptionpublic Component(MetadataBuildingContext metadata, Table table, PersistentClass owner) throws MappingException
MappingExceptionpublic int getPropertySpan()
public Iterator getPropertyIterator()
public void addProperty(Property p)
public void addColumn(Column column)
addColumn in class SimpleValuepublic int getColumnSpan()
getColumnSpan in interface ValuegetColumnSpan in class SimpleValuepublic Iterator<Selectable> getColumnIterator()
getColumnIterator in interface ValuegetColumnIterator in class SimpleValuepublic boolean isEmbedded()
public String getComponentClassName()
public Class getComponentClass() throws MappingException
MappingExceptionpublic PersistentClass getOwner()
public String getParentProperty()
public void setComponentClassName(String componentClass)
public void setEmbedded(boolean embedded)
public void setOwner(PersistentClass owner)
public void setParentProperty(String parentProperty)
public boolean isDynamic()
public void setDynamic(boolean dynamic)
public Type getType() throws MappingException
getType in interface ValuegetType in class SimpleValueMappingExceptionpublic void setTypeUsingReflection(String className, String propertyName) throws MappingException
setTypeUsingReflection in interface ValuesetTypeUsingReflection in class SimpleValueMappingExceptionpublic Map getMetaAttributes()
getMetaAttributes in interface MetaAttributablepublic MetaAttribute getMetaAttribute(String attributeName)
getMetaAttribute in interface MetaAttributablepublic void setMetaAttributes(Map metas)
setMetaAttributes in interface MetaAttributablepublic Object accept(ValueVisitor visitor)
accept in interface Valueaccept in class SimpleValuepublic boolean isSame(SimpleValue other)
isSame in class SimpleValuepublic boolean isSame(Component other)
public boolean[] getColumnInsertability()
getColumnInsertability in interface ValuegetColumnInsertability in class SimpleValuepublic boolean[] getColumnUpdateability()
getColumnUpdateability in interface ValuegetColumnUpdateability in class SimpleValuepublic boolean isKey()
public void setKey(boolean isKey)
public boolean hasPojoRepresentation()
public void addTuplizer(EntityMode entityMode, String implClassName)
public String getTuplizerImplClassName(EntityMode mode)
public Map getTuplizerMap()
public Property getProperty(int index)
index - index of the Property to returnPropertyIndexOutOfBoundsException - - if the index is out of range(index < 0 || index >=
getPropertySpan())public Property getProperty(String propertyName) throws MappingException
MappingExceptionpublic String getRoleName()
public void setRoleName(String roleName)
public String toString()
toString in class SimpleValuepublic IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass) throws MappingException
createIdentifierGenerator in interface KeyValuecreateIdentifierGenerator in class SimpleValueMappingExceptionCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.