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(MetadataImplementor metadata) |
SimpleValue(MetadataImplementor metadata,
Table table) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(ValueVisitor visitor) |
void |
addColumn(Column column) |
void |
addColumn(Column column,
boolean isInsertable,
boolean isUpdatable) |
void |
addFormula(Formula formula) |
void |
copyTypeFrom(SimpleValue sourceValue) |
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<Selectable> |
getColumnIterator() |
int |
getColumnSpan() |
boolean[] |
getColumnUpdateability() |
java.util.List |
getConstraintColumns() |
FetchMode |
getFetchMode() |
java.lang.String |
getForeignKeyDefinition() |
java.lang.String |
getForeignKeyName() |
java.util.Properties |
getIdentifierGeneratorProperties() |
java.lang.String |
getIdentifierGeneratorStrategy()
Returns the identifierGeneratorStrategy.
|
MetadataImplementor |
getMetadata() |
java.lang.String |
getNullValue() |
ServiceRegistry |
getServiceRegistry() |
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 |
isLob() |
boolean |
isNationalized() |
boolean |
isNullable() |
boolean |
isSame(SimpleValue other) |
boolean |
isSame(Value other) |
protected static boolean |
isSame(Value v1,
Value v2) |
boolean |
isSimpleValue() |
boolean |
isTypeSpecified() |
boolean |
isUpdateable() |
boolean |
isValid(Mapping mapping) |
boolean |
isVersion() |
void |
makeLob() |
void |
makeNationalized() |
void |
makeVersion() |
void |
setAlternateUniqueKey(boolean unique) |
void |
setCascadeDeleteEnabled(boolean cascadeDeleteEnabled) |
void |
setForeignKeyDefinition(java.lang.String foreignKeyDefinition) |
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 |
setJpaAttributeConverterDescriptor(AttributeConverterDescriptor attributeConverterDescriptor) |
void |
setNullValue(java.lang.String nullValue)
Sets the nullValue.
|
void |
setTable(Table table) |
void |
setTypeName(java.lang.String typeName) |
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(MetadataImplementor metadata)
public SimpleValue(MetadataImplementor metadata, 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 java.util.Iterator<Selectable> getColumnIterator()
getColumnIterator in interface Valuepublic java.util.List getConstraintColumns()
public java.lang.String getTypeName()
public void setTypeName(java.lang.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(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 java.lang.String getForeignKeyDefinition()
public void setForeignKeyDefinition(java.lang.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(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 void copyTypeFrom(SimpleValue sourceValue)
public boolean isSame(SimpleValue other)
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 Valuepublic void setJpaAttributeConverterDescriptor(AttributeConverterDescriptor attributeConverterDescriptor)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.