Package org.hibernate.mapping
Class DependantValue
java.lang.Object
org.hibernate.mapping.SimpleValue
org.hibernate.mapping.DependantValue
- All Implemented Interfaces:
Serializable
,KeyValue
,Resolvable
,SortableValue
,Value
A mapping model object representing a value which is "typed" by reference
to some other value (for example, a foreign key is typed by the referenced primary key).
- See Also:
-
Nested Class Summary
Nested 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
ConstructorsConstructorDescriptionDependantValue
(MetadataBuildingContext buildingContext, Table table, KeyValue prototype) -
Method Summary
Modifier and TypeMethodDescriptionaccept
(ValueVisitor visitor) copy()
getType()
boolean
boolean
isSame
(DependantValue other) boolean
isSame
(SimpleValue other) boolean
isSorted()
boolean
resolve()
boolean
resolve
(MetadataBuildingContext buildingContext) void
setNullable
(boolean nullable) void
setSorted
(boolean sorted) void
setTypeUsingReflection
(String className, String propertyName) void
setUpdateable
(boolean updateable) int[]
Methods inherited from class org.hibernate.mapping.SimpleValue
addColumn, addColumn, addFormula, 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, isPartitionKey, isSame, isSame, isSimpleValue, isTypeSpecified, isValid, 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
-
DependantValue
-
-
Method Details
-
copy
-
getWrappedValue
-
getType
- Specified by:
getType
in interfaceValue
- Throws:
MappingException
-
setTypeUsingReflection
- Specified by:
setTypeUsingReflection
in interfaceValue
- Overrides:
setTypeUsingReflection
in classSimpleValue
-
accept
- Specified by:
accept
in interfaceValue
- Overrides:
accept
in classSimpleValue
-
isNullable
public boolean isNullable()- Specified by:
isNullable
in interfaceValue
- Overrides:
isNullable
in classSimpleValue
-
setNullable
public void setNullable(boolean nullable) -
isUpdateable
public boolean isUpdateable()- Specified by:
isUpdateable
in interfaceKeyValue
- Overrides:
isUpdateable
in classSimpleValue
-
setUpdateable
public void setUpdateable(boolean updateable) -
isSame
- Overrides:
isSame
in classSimpleValue
-
isSame
-
resolve
- Specified by:
resolve
in interfaceResolvable
-
resolve
- Specified by:
resolve
in interfaceResolvable
-
isSorted
public boolean isSorted()- Specified by:
isSorted
in interfaceSortableValue
-
setSorted
public void setSorted(boolean sorted) -
sortProperties
public int[] sortProperties()- Specified by:
sortProperties
in interfaceSortableValue
-