public class SimpleValue extends java.lang.Object implements KeyValue
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_ID_GEN_STRATEGY |
| Constructor and Description |
|---|
SimpleValue(Mappings mappings) |
SimpleValue(Mappings mappings,
Table table) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(ValueVisitor visitor) |
void |
addColumn(Column column) |
void |
addFormula(Formula formula) |
void |
createForeignKey() |
void |
createForeignKeyOfEntity(java.lang.String entityName) |
IdentifierGenerator |
createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory,
Dialect dialect,
java.lang.String defaultCatalog,
java.lang.String defaultSchema,
RootClass rootClass) |
boolean[] |
getColumnInsertability() |
java.util.Iterator |
getColumnIterator() |
int |
getColumnSpan() |
boolean[] |
getColumnUpdateability() |
java.util.List |
getConstraintColumns() |
FetchMode |
getFetchMode() |
java.lang.String |
getForeignKeyName() |
java.util.Properties |
getIdentifierGeneratorProperties() |
java.lang.String |
getIdentifierGeneratorStrategy()
Returns the identifierGeneratorStrategy.
|
Mappings |
getMappings() |
java.lang.String |
getNullValue() |
Table |
getTable() |
Type |
getType() |
java.lang.String |
getTypeName() |
java.util.Properties |
getTypeParameters() |
boolean |
hasFormula() |
boolean |
isAlternateUniqueKey() |
boolean |
isCascadeDeleteEnabled() |
boolean |
isIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory,
Dialect dialect) |
boolean |
isNullable() |
boolean |
isSimpleValue() |
boolean |
isTypeSpecified() |
boolean |
isUpdateable() |
boolean |
isValid(Mapping mapping) |
void |
setAlternateUniqueKey(boolean unique) |
void |
setCascadeDeleteEnabled(boolean cascadeDeleteEnabled) |
void |
setForeignKeyName(java.lang.String foreignKeyName) |
void |
setIdentifierGeneratorProperties(java.util.Properties identifierGeneratorProperties)
Sets the identifierGeneratorProperties.
|
void |
setIdentifierGeneratorStrategy(java.lang.String identifierGeneratorStrategy)
Sets the identifierGeneratorStrategy.
|
void |
setNullValue(java.lang.String nullValue)
Sets the nullValue.
|
void |
setTable(Table table) |
void |
setTypeName(java.lang.String type) |
void |
setTypeParameters(java.util.Properties parameterMap) |
void |
setTypeUsingReflection(java.lang.String className,
java.lang.String propertyName) |
java.lang.String |
toString() |
public static final java.lang.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 java.util.Iterator getColumnIterator()
getColumnIterator in interface Valuepublic java.util.List getConstraintColumns()
public java.lang.String getTypeName()
public void setTypeName(java.lang.String type)
public void setTable(Table table)
public void createForeignKey()
throws MappingException
createForeignKey in interface ValueMappingExceptionpublic void createForeignKeyOfEntity(java.lang.String entityName)
createForeignKeyOfEntity in interface KeyValuepublic IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, java.lang.String defaultCatalog, java.lang.String defaultSchema, RootClass rootClass) throws MappingException
createIdentifierGenerator in interface KeyValueMappingExceptionpublic boolean isUpdateable()
isUpdateable in interface KeyValuepublic FetchMode getFetchMode()
getFetchMode in interface Valuepublic java.util.Properties getIdentifierGeneratorProperties()
public java.lang.String getNullValue()
getNullValue in interface KeyValuepublic java.lang.String getIdentifierGeneratorStrategy()
public boolean isIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect)
isIdentityColumn in interface KeyValuepublic void setIdentifierGeneratorProperties(java.util.Properties identifierGeneratorProperties)
identifierGeneratorProperties - The identifierGeneratorProperties to setpublic void setIdentifierGeneratorStrategy(java.lang.String identifierGeneratorStrategy)
identifierGeneratorStrategy - The identifierGeneratorStrategy to setpublic void setNullValue(java.lang.String nullValue)
nullValue - The nullValue to setpublic java.lang.String getForeignKeyName()
public void setForeignKeyName(java.lang.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(java.lang.String className,
java.lang.String propertyName)
throws MappingException
setTypeUsingReflection in interface ValueMappingExceptionpublic boolean isTypeSpecified()
public void setTypeParameters(java.util.Properties parameterMap)
public java.util.Properties getTypeParameters()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object accept(ValueVisitor visitor)
public boolean[] getColumnInsertability()
getColumnInsertability in interface Valuepublic boolean[] getColumnUpdateability()
getColumnUpdateability in interface ValueCopyright © 2013. All Rights Reserved.