public class SimpleValue extends Object implements KeyValue
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ID_GEN_STRATEGY |
| Constructor and Description |
|---|
SimpleValue(Mappings mappings) |
SimpleValue(Mappings mappings,
Table table) |
public static final String DEFAULT_ID_GEN_STRATEGY
public SimpleValue(Mappings mappings)
public Mappings getMappings()
public boolean isCascadeDeleteEnabled()
isCascadeDeleteEnabled in interface KeyValuepublic void setCascadeDeleteEnabled(boolean cascadeDeleteEnabled)
public void addColumn(Column column)
public void addFormula(Formula formula)
public boolean hasFormula()
hasFormula in interface Valuepublic int getColumnSpan()
getColumnSpan in interface Valuepublic Iterator getColumnIterator()
getColumnIterator in interface Valuepublic List getConstraintColumns()
public String getTypeName()
public void setTypeName(String type)
public void setTable(Table table)
public void createForeignKey()
throws MappingException
createForeignKey in interface ValueMappingExceptionpublic void createForeignKeyOfEntity(String entityName)
createForeignKeyOfEntity in interface KeyValuepublic 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 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 Object accept(ValueVisitor visitor)
public boolean[] getColumnInsertability()
getColumnInsertability in interface Valuepublic boolean[] getColumnUpdateability()
getColumnUpdateability in interface ValueCopyright © 2018 JBoss by Red Hat. All rights reserved.