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) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(ValueVisitor visitor) |
void |
addColumn(Column column) |
void |
addProperty(Property p) |
void |
addTuplizer(EntityMode entityMode,
java.lang.String implClassName) |
IdentifierGenerator |
createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory,
Dialect dialect,
java.lang.String defaultCatalog,
java.lang.String defaultSchema,
RootClass rootClass) |
boolean[] |
getColumnInsertability() |
java.util.Iterator<Selectable> |
getColumnIterator() |
int |
getColumnSpan() |
boolean[] |
getColumnUpdateability() |
java.lang.Class |
getComponentClass() |
java.lang.String |
getComponentClassName() |
MetaAttribute |
getMetaAttribute(java.lang.String attributeName) |
java.util.Map |
getMetaAttributes() |
PersistentClass |
getOwner() |
java.lang.String |
getParentProperty() |
Property |
getProperty(java.lang.String propertyName) |
java.util.Iterator |
getPropertyIterator() |
int |
getPropertySpan() |
java.lang.String |
getRoleName() |
java.lang.String |
getTuplizerImplClassName(EntityMode mode) |
java.util.Map |
getTuplizerMap() |
Type |
getType() |
boolean |
hasPojoRepresentation() |
boolean |
isDynamic() |
boolean |
isEmbedded() |
boolean |
isKey() |
boolean |
isSame(Component other) |
boolean |
isSame(SimpleValue other) |
void |
setComponentClassName(java.lang.String componentClass) |
void |
setDynamic(boolean dynamic) |
void |
setEmbedded(boolean embedded) |
void |
setKey(boolean isKey) |
void |
setMetaAttributes(java.util.Map metas) |
void |
setOwner(PersistentClass owner) |
void |
setParentProperty(java.lang.String parentProperty) |
void |
setRoleName(java.lang.String roleName) |
void |
setTypeUsingReflection(java.lang.String className,
java.lang.String propertyName) |
java.lang.String |
toString() |
addColumn, addFormula, copyTypeFrom, createForeignKey, createForeignKeyOfEntity, getConstraintColumns, getFetchMode, getForeignKeyDefinition, getForeignKeyName, 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
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 java.util.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 java.util.Iterator<Selectable> getColumnIterator()
getColumnIterator
in interface Value
getColumnIterator
in class SimpleValue
public boolean isEmbedded()
public java.lang.String getComponentClassName()
public java.lang.Class getComponentClass() throws MappingException
MappingException
public PersistentClass getOwner()
public java.lang.String getParentProperty()
public void setComponentClassName(java.lang.String componentClass)
public void setEmbedded(boolean embedded)
public void setOwner(PersistentClass owner)
public void setParentProperty(java.lang.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(java.lang.String className, java.lang.String propertyName) throws MappingException
setTypeUsingReflection
in interface Value
setTypeUsingReflection
in class SimpleValue
MappingException
public java.util.Map getMetaAttributes()
getMetaAttributes
in interface MetaAttributable
public MetaAttribute getMetaAttribute(java.lang.String attributeName)
getMetaAttribute
in interface MetaAttributable
public void setMetaAttributes(java.util.Map metas)
setMetaAttributes
in interface MetaAttributable
public java.lang.Object accept(ValueVisitor visitor)
accept
in interface Value
accept
in class SimpleValue
public boolean isSame(SimpleValue other)
isSame
in class SimpleValue
public boolean isSame(Component other)
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, java.lang.String implClassName)
public java.lang.String getTuplizerImplClassName(EntityMode mode)
public java.util.Map getTuplizerMap()
public Property getProperty(java.lang.String propertyName) throws MappingException
MappingException
public java.lang.String getRoleName()
public void setRoleName(java.lang.String roleName)
public java.lang.String toString()
toString
in class SimpleValue
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, java.lang.String defaultCatalog, java.lang.String defaultSchema, RootClass rootClass) throws MappingException
createIdentifierGenerator
in interface KeyValue
createIdentifierGenerator
in class SimpleValue
MappingException
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.