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) void
void
void
addFormula
(Formula formula) void
addSelectable
(Selectable selectable) copy()
getType()
boolean
isLazy()
boolean
boolean
isSame
(SimpleValue other) boolean
isValid
(MappingContext mappingContext) void
setDiscriminator
(BasicValue discriminatorDescriptor) void
setDiscriminatorValueMappings
(Map<Object, Class<?>> discriminatorValueMappings) void
setIdentifierType
(String identifierType) void
setImplicitDiscriminatorValueStrategy
(ImplicitDiscriminatorStrategy implicitValueStrategy) Set the strategy for dealing with discriminator mappings which are not explicitly defined by AnyDiscriminatorValue.void
setKey
(BasicValue keyDescriptor) void
setLazy
(boolean lazy) void
setMetaType
(String type) void
setMetaValues
(Map metaValueToEntityNameMap) void
setTypeUsingReflection
(String className, String propertyName) Methods inherited from class org.hibernate.mapping.SimpleValue
copyTypeFrom, createForeignKey, createForeignKey, createForeignKeyOfEntity, createGenerator, createGenerator, createParameterImpl, 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, makeParameterImpl, makeVersion, setAlternateUniqueKey, setAttributeConverterDescriptor, setColumnToIdentity, setCustomIdGeneratorCreator, setForeignKeyDefinition, setForeignKeyName, setForeignKeyOptions, setJpaAttributeConverterDescriptor, setNullValue, setNullValueSemantic, setNullValueUndefined, setOnDeleteAction, setPartitionKey, setTable, setTypeName, setTypeParameters, setTypeParameters, sortColumns, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.mapping.Value
checkColumnDuplication, getConstraintColumns, getExtraCreateTableInfo, getSelectableType, getSelectableType, getVirtualSelectables, isValid
-
Constructor Details
-
Any
-
Any
-
Any
-
-
Method Details
-
copy
-
addSelectable
-
getDiscriminatorDescriptor
-
getKeyDescriptor
-
getMetaMapping
-
getKeyMapping
-
getIdentifierType
-
setIdentifierType
-
getType
- Throws:
MappingException
-
addColumn
- Overrides:
addColumn
in classSimpleValue
-
addColumn
- Overrides:
addColumn
in classSimpleValue
-
addFormula
- Overrides:
addFormula
in 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:
null
indicates to not allow implicit mappings.
-
isLazy
public boolean isLazy() -
setLazy
public void setLazy(boolean lazy) -
setTypeUsingReflection
- Specified by:
setTypeUsingReflection
in interfaceValue
- Overrides:
setTypeUsingReflection
in classSimpleValue
- Throws:
MappingException
-
accept
- Specified by:
accept
in interfaceValue
- Overrides:
accept
in classSimpleValue
-
isSame
- Overrides:
isSame
in classSimpleValue
-
isSame
-
isValid
- Specified by:
isValid
in interfaceValue
- Overrides:
isValid
in classSimpleValue
- Throws:
MappingException
-
setDiscriminator
-
setDiscriminatorValueMappings
-
setKey
-