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 Classes -
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) booleanvoidsetDiscriminator(BasicValue discriminatorDescriptor) voidsetDiscriminatorValueMappings(Map<Object, Class<?>> discriminatorValueMappings) voidsetIdentifierType(String identifierType) voidsetKey(BasicValue keyDescriptor) voidsetLazy(boolean lazy) voidsetMetaType(String type) voidsetMetaValues(Map metaValueToEntityNameMap) voidsetTypeUsingReflection(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, getCustomIdGeneratorCreator, getFetchMode, getForeignKeyDefinition, getForeignKeyName, 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, setColumnToIdentity, setCustomIdGeneratorCreator, setForeignKeyDefinition, setForeignKeyName, setJpaAttributeConverterDescriptor, setNullValue, 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
-
isLazy
public boolean isLazy() -
setLazy
public void setLazy(boolean lazy) -
setTypeUsingReflection
- Specified by:
setTypeUsingReflectionin interfaceValue- Overrides:
setTypeUsingReflectionin classSimpleValue- Throws:
MappingException
-
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
-