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()booleanbooleanisSame(DependantValue other) booleanisSame(SimpleValue other) booleanisSorted()booleanresolve()booleanresolve(MetadataBuildingContext buildingContext) voidsetNullable(boolean nullable) voidsetSorted(boolean sorted) voidsetTypeUsingReflection(String className, String propertyName) voidsetUpdateable(boolean updateable) int[]Methods inherited from class org.hibernate.mapping.SimpleValue
addColumn, addColumn, addFormula, 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, isPartitionKey, isSame, isSame, isSimpleValue, isTypeSpecified, isValid, 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
-
DependantValue
-
-
Method Details
-
copy
-
getWrappedValue
-
getType
- Specified by:
getTypein interfaceValue- Throws:
MappingException
-
setTypeUsingReflection
- Specified by:
setTypeUsingReflectionin interfaceValue- Overrides:
setTypeUsingReflectionin classSimpleValue
-
accept
- Specified by:
acceptin interfaceValue- Overrides:
acceptin classSimpleValue
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceValue- Overrides:
isNullablein classSimpleValue
-
setNullable
public void setNullable(boolean nullable) -
isUpdateable
public boolean isUpdateable()- Specified by:
isUpdateablein interfaceKeyValue- Overrides:
isUpdateablein classSimpleValue
-
setUpdateable
public void setUpdateable(boolean updateable) -
isSame
- Overrides:
isSamein classSimpleValue
-
isSame
-
resolve
- Specified by:
resolvein interfaceResolvable
-
resolve
- Specified by:
resolvein interfaceResolvable
-
isSorted
public boolean isSorted()- Specified by:
isSortedin interfaceSortableValue
-
setSorted
public void setSorted(boolean sorted) -
sortProperties
public int[] sortProperties()- Specified by:
sortPropertiesin interfaceSortableValue
-