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(MetadataImplementor metadata,
Collection collection) |
Component(MetadataImplementor metadata,
Component component) |
Component(MetadataImplementor metadata,
Join join) |
Component(MetadataImplementor metadata,
PersistentClass owner) |
Component(MetadataImplementor metadata,
Table table,
PersistentClass owner) |
addFormula, copyTypeFrom, createForeignKey, createForeignKeyOfEntity, getConstraintColumns, getFetchMode, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMetadata, getNullValue, getServiceRegistry, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isNationalized, isNullable, isSimpleValue, isTypeSpecified, isUpdateable, isValid, makeNationalized, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDefinition, setNullValue, setTable, setTypeName, setTypeParameters
public Component(MetadataImplementor metadata, PersistentClass owner) throws MappingException
MappingException
public Component(MetadataImplementor metadata, Component component) throws MappingException
MappingException
public Component(MetadataImplementor metadata, Join join) throws MappingException
MappingException
public Component(MetadataImplementor metadata, Collection collection) throws MappingException
MappingException
public Component(MetadataImplementor metadata, Table table, PersistentClass owner) throws MappingException
MappingException
public int getPropertySpan()
public Iterator getPropertyIterator()
public void addProperty(Property p)
public void addColumn(Column column)
addColumn
in class SimpleValue
public int getColumnSpan()
getColumnSpan
in interface Value
getColumnSpan
in class SimpleValue
public Iterator<Selectable> getColumnIterator()
getColumnIterator
in interface Value
getColumnIterator
in class SimpleValue
public boolean isEmbedded()
public String getComponentClassName()
public Class getComponentClass() throws MappingException
MappingException
public 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 Value
getType
in class SimpleValue
MappingException
public void setTypeUsingReflection(String className, String propertyName) throws MappingException
setTypeUsingReflection
in interface Value
setTypeUsingReflection
in class SimpleValue
MappingException
public Map getMetaAttributes()
getMetaAttributes
in interface MetaAttributable
public MetaAttribute getMetaAttribute(String attributeName)
getMetaAttribute
in interface MetaAttributable
public void setMetaAttributes(Map metas)
setMetaAttributes
in interface MetaAttributable
public Object accept(ValueVisitor visitor)
accept
in interface Value
accept
in class SimpleValue
public boolean[] getColumnInsertability()
getColumnInsertability
in interface Value
getColumnInsertability
in class SimpleValue
public boolean[] getColumnUpdateability()
getColumnUpdateability
in interface Value
getColumnUpdateability
in class SimpleValue
public 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(String propertyName) throws MappingException
MappingException
public String getRoleName()
public void setRoleName(String roleName)
public String toString()
toString
in class SimpleValue
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass) throws MappingException
createIdentifierGenerator
in interface KeyValue
createIdentifierGenerator
in class SimpleValue
MappingException
Copyright © 2016 JBoss by Red Hat. All rights reserved.