public class SimpleValue extends Object implements KeyValue
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ID_GEN_STRATEGY |
Constructor and Description |
---|
SimpleValue(MetadataBuildingContext buildingContext) |
SimpleValue(MetadataBuildingContext buildingContext,
Table table) |
SimpleValue(MetadataImplementor metadata)
Deprecated.
Use
SimpleValue(MetadataBuildingContext) instead. |
SimpleValue(MetadataImplementor metadata,
Table table)
Deprecated.
Use
SimpleValue(MetadataBuildingContext, Table) instead. |
public static final String DEFAULT_ID_GEN_STRATEGY
@Deprecated public SimpleValue(MetadataImplementor metadata)
SimpleValue(MetadataBuildingContext)
instead.@Deprecated public SimpleValue(MetadataImplementor metadata, Table table)
SimpleValue(MetadataBuildingContext, Table)
instead.public SimpleValue(MetadataBuildingContext buildingContext)
public SimpleValue(MetadataBuildingContext buildingContext, Table table)
public MetadataImplementor getMetadata()
public ServiceRegistry getServiceRegistry()
getServiceRegistry
in interface Value
public boolean isCascadeDeleteEnabled()
isCascadeDeleteEnabled
in interface KeyValue
public void setCascadeDeleteEnabled(boolean cascadeDeleteEnabled)
public void addColumn(Column column)
public void addColumn(Column column, boolean isInsertable, boolean isUpdatable)
public void addFormula(Formula formula)
public boolean hasFormula()
hasFormula
in interface Value
public int getColumnSpan()
getColumnSpan
in interface Value
public Iterator<Selectable> getColumnIterator()
getColumnIterator
in interface Value
public List getConstraintColumns()
public String getTypeName()
public void setTypeName(String typeName)
public void makeVersion()
public boolean isVersion()
public void makeNationalized()
public boolean isNationalized()
public void makeLob()
public boolean isLob()
public void setTable(Table table)
public void createForeignKey() throws MappingException
createForeignKey
in interface Value
MappingException
public void createForeignKeyOfEntity(String entityName)
createForeignKeyOfEntity
in interface KeyValue
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass) throws MappingException
createIdentifierGenerator
in interface KeyValue
MappingException
public boolean isUpdateable()
isUpdateable
in interface KeyValue
public FetchMode getFetchMode()
getFetchMode
in interface Value
public Properties getIdentifierGeneratorProperties()
public String getNullValue()
getNullValue
in interface KeyValue
public String getIdentifierGeneratorStrategy()
public boolean isIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect)
isIdentityColumn
in interface KeyValue
public void setIdentifierGeneratorProperties(Properties identifierGeneratorProperties)
identifierGeneratorProperties
- The identifierGeneratorProperties to setpublic void setIdentifierGeneratorStrategy(String identifierGeneratorStrategy)
identifierGeneratorStrategy
- The identifierGeneratorStrategy to setpublic void setNullValue(String nullValue)
nullValue
- The nullValue to setpublic String getForeignKeyName()
public void setForeignKeyName(String foreignKeyName)
public String getForeignKeyDefinition()
public void setForeignKeyDefinition(String foreignKeyDefinition)
public boolean isAlternateUniqueKey()
isAlternateUniqueKey
in interface Value
public void setAlternateUniqueKey(boolean unique)
public boolean isNullable()
isNullable
in interface Value
public boolean isSimpleValue()
isSimpleValue
in interface Value
public boolean isValid(Mapping mapping) throws MappingException
isValid
in interface Value
MappingException
public Type getType() throws MappingException
getType
in interface Value
MappingException
public void setTypeUsingReflection(String className, String propertyName) throws MappingException
setTypeUsingReflection
in interface Value
MappingException
public boolean isTypeSpecified()
public void setTypeParameters(Properties parameterMap)
public Properties getTypeParameters()
public void copyTypeFrom(SimpleValue sourceValue)
public boolean isSame(SimpleValue other)
public Object accept(ValueVisitor visitor)
public boolean[] getColumnInsertability()
getColumnInsertability
in interface Value
public boolean[] getColumnUpdateability()
getColumnUpdateability
in interface Value
public void setJpaAttributeConverterDescriptor(ConverterDescriptor descriptor)
Copyright © 2021 JBoss by Red Hat. All rights reserved.