public class BasicValue extends SimpleValue implements JdbcTypeDescriptorIndicators, Resolvable
Modifier and Type | Class and Description |
---|---|
static interface |
BasicValue.Resolution<J>
Resolved form of
BasicValue as part of interpreting the
boot-time model into the run-time model |
DEFAULT_ID_GEN_STRATEGY
NO_COLUMN_LENGTH
Constructor and Description |
---|
BasicValue(MetadataBuildingContext buildingContext) |
BasicValue(MetadataBuildingContext buildingContext,
Table table) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Column incomingColumn) |
void |
addColumn(Column incomingColumn,
boolean isInsertable,
boolean isUpdatable) |
void |
addFormula(Formula formula) |
protected BasicValue.Resolution<?> |
buildResolution() |
void |
copyTypeFrom(SimpleValue sourceValue) |
Selectable |
getColumn() |
long |
getColumnLength()
Useful for resolutions based on column length.
|
EnumType |
getEnumeratedType()
For enum mappings, what style of storage was requested (name vs.
|
EnumType |
getEnumerationStyle() |
int |
getPreferredSqlTypeCodeForBoolean()
When mapping a boolean type to the database what is the preferred SQL type code to use?
Specifically names the key into the
JdbcTypeDescriptorRegistry . |
BasicValue.Resolution<?> |
getResolution() |
Type |
getResolvedJavaType() |
TemporalType |
getTemporalPrecision()
For temporal type mappings, what precision was requested?
|
Type |
getType() |
TypeConfiguration |
getTypeConfiguration()
Provides access to the TypeConfiguration for access to various type-system registries.
|
BasicValue.Resolution<?> |
resolve() |
boolean |
resolve(MetadataBuildingContext buildingContext) |
void |
setEnumerationStyle(EnumType enumerationStyle) |
void |
setExplicitJavaTypeAccess(Function<TypeConfiguration,BasicJavaDescriptor> explicitJavaTypeAccess) |
void |
setExplicitMutabilityPlanAccess(Function<TypeConfiguration,MutabilityPlan> explicitMutabilityPlanAccess) |
void |
setExplicitSqlTypeAccess(Function<TypeConfiguration,JdbcTypeDescriptor> sqlTypeAccess) |
void |
setExplicitTypeName(String typeName) |
void |
setExplicitTypeParams(Map explicitLocalTypeParams) |
void |
setImplicitJavaTypeAccess(Function<TypeConfiguration,Type> implicitJavaTypeAccess) |
void |
setJpaAttributeConverterDescriptor(ConverterDescriptor descriptor) |
void |
setTemporalPrecision(TemporalType temporalPrecision) |
void |
setTypeName(String typeName) |
void |
setTypeUsingReflection(String className,
String propertyName) |
accept, createForeignKey, createForeignKeyOfEntity, createIdentifierGenerator, getAttributeConverterDescriptor, getBuildingContext, getColumn, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getFetchMode, getForeignKeyDefinition, getForeignKeyName, getIdentifierGenerator, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getJpaAttributeConverterDescriptor, getMetadata, getNullValue, getSelectables, getServiceRegistry, getTable, getTypeName, getTypeParameters, hasAnyInsertableColumns, hasAnyUpdatableColumns, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isLob, isNationalized, isNullable, isSame, isSame, isSame, isSimpleValue, isTypeSpecified, isUpdateable, isValid, isVersion, justAddColumn, justAddColumn, justAddFormula, makeLob, makeNationalized, makeVersion, setAlternateUniqueKey, setAttributeConverterDescriptor, setCascadeDeleteEnabled, setForeignKeyDefinition, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setTypeParameters, setTypeParameters, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isLob, isNationalized
public BasicValue(MetadataBuildingContext buildingContext)
public BasicValue(MetadataBuildingContext buildingContext, Table table)
public void setTypeUsingReflection(String className, String propertyName) throws MappingException
setTypeUsingReflection
in interface Value
setTypeUsingReflection
in class SimpleValue
MappingException
public void setEnumerationStyle(EnumType enumerationStyle)
public EnumType getEnumerationStyle()
public void setJpaAttributeConverterDescriptor(ConverterDescriptor descriptor)
setJpaAttributeConverterDescriptor
in class SimpleValue
public void setExplicitJavaTypeAccess(Function<TypeConfiguration,BasicJavaDescriptor> explicitJavaTypeAccess)
public void setExplicitSqlTypeAccess(Function<TypeConfiguration,JdbcTypeDescriptor> sqlTypeAccess)
public void setExplicitMutabilityPlanAccess(Function<TypeConfiguration,MutabilityPlan> explicitMutabilityPlanAccess)
public void setImplicitJavaTypeAccess(Function<TypeConfiguration,Type> implicitJavaTypeAccess)
public Selectable getColumn()
public Type getResolvedJavaType()
public long getColumnLength()
JdbcTypeDescriptorIndicators
getColumnLength
in interface JdbcTypeDescriptorIndicators
public void addColumn(Column incomingColumn)
addColumn
in class SimpleValue
public void copyTypeFrom(SimpleValue sourceValue)
copyTypeFrom
in class SimpleValue
public void addColumn(Column incomingColumn, boolean isInsertable, boolean isUpdatable)
addColumn
in class SimpleValue
public void addFormula(Formula formula)
addFormula
in class SimpleValue
public Type getType() throws MappingException
getType
in interface Value
MappingException
public BasicValue.Resolution<?> getResolution()
public boolean resolve(MetadataBuildingContext buildingContext)
resolve
in interface Resolvable
public BasicValue.Resolution<?> resolve()
resolve
in interface Resolvable
protected BasicValue.Resolution<?> buildResolution()
public EnumType getEnumeratedType()
JdbcTypeDescriptorIndicators
getEnumeratedType
in interface JdbcTypeDescriptorIndicators
public int getPreferredSqlTypeCodeForBoolean()
JdbcTypeDescriptorIndicators
JdbcTypeDescriptorRegistry
.getPreferredSqlTypeCodeForBoolean
in interface JdbcTypeDescriptorIndicators
public TypeConfiguration getTypeConfiguration()
JdbcTypeDescriptorIndicators
getTypeConfiguration
in interface JdbcTypeDescriptorIndicators
public void setExplicitTypeParams(Map explicitLocalTypeParams)
public void setExplicitTypeName(String typeName)
public void setTypeName(String typeName)
setTypeName
in class SimpleValue
public void setTemporalPrecision(TemporalType temporalPrecision)
public TemporalType getTemporalPrecision()
JdbcTypeDescriptorIndicators
getTemporalPrecision
in interface JdbcTypeDescriptorIndicators
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.