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_STRATEGYNO_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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisLob, isNationalizedpublic BasicValue(MetadataBuildingContext buildingContext)
public BasicValue(MetadataBuildingContext buildingContext, Table table)
public void setTypeUsingReflection(String className, String propertyName) throws MappingException
setTypeUsingReflection in interface ValuesetTypeUsingReflection in class SimpleValueMappingExceptionpublic void setEnumerationStyle(EnumType enumerationStyle)
public EnumType getEnumerationStyle()
public void setJpaAttributeConverterDescriptor(ConverterDescriptor descriptor)
setJpaAttributeConverterDescriptor in class SimpleValuepublic 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()
JdbcTypeDescriptorIndicatorsgetColumnLength in interface JdbcTypeDescriptorIndicatorspublic void addColumn(Column incomingColumn)
addColumn in class SimpleValuepublic void copyTypeFrom(SimpleValue sourceValue)
copyTypeFrom in class SimpleValuepublic void addColumn(Column incomingColumn, boolean isInsertable, boolean isUpdatable)
addColumn in class SimpleValuepublic void addFormula(Formula formula)
addFormula in class SimpleValuepublic Type getType() throws MappingException
getType in interface ValueMappingExceptionpublic BasicValue.Resolution<?> getResolution()
public boolean resolve(MetadataBuildingContext buildingContext)
resolve in interface Resolvablepublic BasicValue.Resolution<?> resolve()
resolve in interface Resolvableprotected BasicValue.Resolution<?> buildResolution()
public EnumType getEnumeratedType()
JdbcTypeDescriptorIndicatorsgetEnumeratedType in interface JdbcTypeDescriptorIndicatorspublic int getPreferredSqlTypeCodeForBoolean()
JdbcTypeDescriptorIndicatorsJdbcTypeDescriptorRegistry.getPreferredSqlTypeCodeForBoolean in interface JdbcTypeDescriptorIndicatorspublic TypeConfiguration getTypeConfiguration()
JdbcTypeDescriptorIndicatorsgetTypeConfiguration in interface JdbcTypeDescriptorIndicatorspublic void setExplicitTypeParams(Map explicitLocalTypeParams)
public void setExplicitTypeName(String typeName)
public void setTypeName(String typeName)
setTypeName in class SimpleValuepublic void setTemporalPrecision(TemporalType temporalPrecision)
public TemporalType getTemporalPrecision()
JdbcTypeDescriptorIndicatorsgetTemporalPrecision in interface JdbcTypeDescriptorIndicatorsCopyright © 2001-2021 Red Hat, Inc. All Rights Reserved.