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)
Deprecated.
Use
SimpleValue(MetadataBuildingContext, Table) instead. |
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.@Deprecated public SimpleValue(MetadataBuildingContext buildingContext)
SimpleValue(MetadataBuildingContext, Table) instead.public SimpleValue(MetadataBuildingContext buildingContext, Table table)
public MetadataImplementor getMetadata()
public ServiceRegistry getServiceRegistry()
getServiceRegistry in interface Valuepublic boolean isCascadeDeleteEnabled()
isCascadeDeleteEnabled in interface KeyValuepublic 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 Valuepublic int getColumnSpan()
getColumnSpan in interface Valuepublic Iterator<Selectable> getColumnIterator()
getColumnIterator in interface Valuepublic 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 ValueMappingExceptionpublic void createForeignKeyOfEntity(String entityName)
createForeignKeyOfEntity in interface KeyValuepublic IdentifierGenerator getIdentifierGenerator()
createIdentifierGenerator(IdentifierGeneratorFactory, Dialect, String, String, RootClass) was never
completed.public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass) throws MappingException
createIdentifierGenerator in interface KeyValueMappingExceptionpublic boolean isUpdateable()
isUpdateable in interface KeyValuepublic FetchMode getFetchMode()
getFetchMode in interface Valuepublic Properties getIdentifierGeneratorProperties()
public String getNullValue()
getNullValue in interface KeyValuepublic String getIdentifierGeneratorStrategy()
public boolean isIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect)
isIdentityColumn in interface KeyValuepublic 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 Valuepublic void setAlternateUniqueKey(boolean unique)
public boolean isNullable()
isNullable in interface Valuepublic boolean isSimpleValue()
isSimpleValue in interface Valuepublic boolean isValid(Mapping mapping) throws MappingException
isValid in interface ValueMappingExceptionpublic Type getType() throws MappingException
getType in interface ValueMappingExceptionpublic void setTypeUsingReflection(String className, String propertyName) throws MappingException
setTypeUsingReflection in interface ValueMappingExceptionpublic 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 Valuepublic boolean[] getColumnUpdateability()
getColumnUpdateability in interface Valuepublic void setJpaAttributeConverterDescriptor(ConverterDescriptor descriptor)
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.