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
-
Field Summary
Fields inherited from class org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY
-
Constructor Summary
ConstructorDescriptionAny
(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
void
setDiscriminator
(BasicValue discriminatorDescriptor) void
setDiscriminatorValueMappings
(Map<Object, Class<?>> discriminatorValueMappings) void
setIdentifierType
(String identifierType) 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, createParameterImpl, createUniqueKey, disableForeignKey, getAttributeConverterDescriptor, getBuildingContext, getColumn, getColumnInsertability, getColumns, getColumnSpan, getColumnUpdateability, getConstraintColumnIterator, getCustomIdGeneratorCreator, getFetchMode, getForeignKeyDefinition, getForeignKeyName, getIdentifierGeneratorParameters, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getJpaAttributeConverterDescriptor, getMetadata, getNullValue, 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, setCascadeDeleteEnabled, setCustomIdGeneratorCreator, setForeignKeyDefinition, setForeignKeyName, setIdentifierGeneratorParameters, setIdentifierGeneratorProperties, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDescriptor, setNullValue, 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.KeyValue
createIdentifierGenerator, createIdentifierGenerator
Methods 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:
addColumn
in classSimpleValue
-
addColumn
- Overrides:
addColumn
in classSimpleValue
-
addFormula
- Overrides:
addFormula
in classSimpleValue
-
getMetaType
-
setMetaType
-
getMetaValues
-
setMetaValues
-
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
-