Package org.hibernate.mapping
Class Any
java.lang.Object
org.hibernate.mapping.SimpleValue
org.hibernate.mapping.Any
- All Implemented Interfaces:
Serializable,KeyValue,Value
A mapping model object representing a polymorphic association
to one of several tables.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.hibernate.mapping.KeyValue
KeyValue.NullValueSemantic -
Field Summary
Fields inherited from class org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY -
Constructor Summary
ConstructorsConstructorDescriptionAny(MetadataBuildingContext buildingContext, Table table) Any(MetadataBuildingContext buildingContext, Table table, boolean annotations) -
Method Summary
Modifier and TypeMethodDescriptionaccept(ValueVisitor visitor) voidvoidvoidaddFormula(Formula formula) voidaddSelectable(Selectable selectable) copy()getType()booleanisLazy()booleanbooleanisSame(SimpleValue other) booleanisValid(MappingContext mappingContext) voidsetDiscriminator(BasicValue discriminatorDescriptor) voidsetDiscriminatorValueMappings(Map<Object, Class<?>> discriminatorValueMappings) voidsetIdentifierType(String identifierType) voidsetImplicitDiscriminatorValueStrategy(ImplicitDiscriminatorStrategy implicitValueStrategy) Set the strategy for dealing with discriminator mappings which are not explicitly defined by AnyDiscriminatorValue.voidsetKey(BasicValue keyDescriptor) voidsetLazy(boolean lazy) voidsetMetaType(String type) voidsetMetaValues(Map<Object, String> metaValueToEntityNameMap) voidsetTypeUsingReflection(String className, String propertyName) Methods inherited from class org.hibernate.mapping.SimpleValue
copyTypeFrom, createForeignKey, createForeignKey, createForeignKeyOfEntity, createForeignKeyOfEntity, createGenerator, createGenerator, createParameterType, createUniqueKey, disableForeignKey, getAttributeConverterDescriptor, getBuildingContext, getColumn, getColumnInsertability, getColumns, getColumnSpan, getColumnUpdateability, getCustomIdGeneratorCreator, getFetchMode, getForeignKeyDefinition, getForeignKeyName, getForeignKeyOptions, getJpaAttributeConverterDescriptor, getMetadata, getNullValue, getNullValueSemantic, getOnDeleteAction, getSelectables, getServiceRegistry, getTable, getTypeConfiguration, getTypeName, getTypeParameters, hasAnyInsertableColumns, hasAnyUpdatableColumns, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isColumnInsertable, isColumnUpdateable, isConstrained, isForeignKeyEnabled, isLob, isNationalized, isNullable, isPartitionKey, isSame, isSame, isSimpleValue, isTypeSpecified, isUpdateable, isVersion, justAddColumn, justAddColumn, justAddFormula, makeLob, makeNationalized, makeVersion, setAlternateUniqueKey, setAttributeConverterDescriptor, setColumnToIdentity, setCustomIdGeneratorCreator, setForeignKeyDefinition, setForeignKeyName, setForeignKeyOptions, setJpaAttributeConverterDescriptor, setNullValue, setNullValueSemantic, setNullValueUndefined, setOnDeleteAction, setPartitionKey, setTable, setTypeName, setTypeParameters, setTypeParameters, sortColumns, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.mapping.Value
checkColumnDuplication, getConstraintColumns, getExtraCreateTableInfo, getSelectableType, getVirtualSelectables
-
Constructor Details
-
Any
-
Any
-
Any
-
-
Method Details
-
copy
-
addSelectable
-
getDiscriminatorDescriptor
-
getKeyDescriptor
-
getMetaMapping
-
getKeyMapping
-
getIdentifierType
-
setIdentifierType
-
getType
- Throws:
MappingException
-
addColumn
- Overrides:
addColumnin classSimpleValue
-
addColumn
- Overrides:
addColumnin classSimpleValue
-
addFormula
- Overrides:
addFormulain classSimpleValue
-
getMetaType
-
setMetaType
-
getMetaValues
-
setMetaValues
-
setImplicitDiscriminatorValueStrategy
@Incubating public void setImplicitDiscriminatorValueStrategy(ImplicitDiscriminatorStrategy implicitValueStrategy) Set the strategy for dealing with discriminator mappings which are not explicitly defined by AnyDiscriminatorValue.- Since:
- 7.0
- API Note:
nullindicates to not allow implicit mappings.
-
isLazy
public boolean isLazy() -
setLazy
public void setLazy(boolean lazy) -
setTypeUsingReflection
- Specified by:
setTypeUsingReflectionin interfaceValue- Overrides:
setTypeUsingReflectionin classSimpleValue
-
accept
- Specified by:
acceptin interfaceValue- Overrides:
acceptin classSimpleValue
-
isSame
- Overrides:
isSamein classSimpleValue
-
isSame
-
isValid
- Specified by:
isValidin interfaceValue- Overrides:
isValidin classSimpleValue- Throws:
MappingException
-
setDiscriminator
-
setDiscriminatorValueMappings
-
setKey
-