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
public class DependantValue extends SimpleValue implements Resolvable, SortableValue
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description DependantValue(MetadataBuildingContext buildingContext, Table table, KeyValue prototype)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(ValueVisitor visitor)DependantValuecopy()TypegetType()KeyValuegetWrappedValue()booleanisNullable()booleanisSame(DependantValue other)booleanisSame(SimpleValue other)booleanisSorted()booleanisUpdateable()BasicValue.Resolution<?>resolve()booleanresolve(MetadataBuildingContext buildingContext)voidsetNullable(boolean nullable)voidsetSorted(boolean sorted)voidsetTypeUsingReflection(String className, String propertyName)voidsetUpdateable(boolean updateable)int[]sortProperties()-
Methods inherited from class org.hibernate.mapping.SimpleValue
addColumn, addColumn, addFormula, 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, isPartitionKey, isSame, isSame, isSimpleValue, isTypeSpecified, isValid, 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 Detail
-
DependantValue
public DependantValue(MetadataBuildingContext buildingContext, Table table, KeyValue prototype)
-
-
Method Detail
-
copy
public DependantValue copy()
-
getWrappedValue
public KeyValue getWrappedValue()
-
getType
public Type getType() throws MappingException
- Specified by:
getTypein interfaceValue- Throws:
MappingException
-
setTypeUsingReflection
public void setTypeUsingReflection(String className, String propertyName)
- Specified by:
setTypeUsingReflectionin interfaceValue- Overrides:
setTypeUsingReflectionin classSimpleValue
-
accept
public Object accept(ValueVisitor visitor)
- 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
public boolean isSame(SimpleValue other)
- Overrides:
isSamein classSimpleValue
-
isSame
public boolean isSame(DependantValue other)
-
resolve
public boolean resolve(MetadataBuildingContext buildingContext)
- Specified by:
resolvein interfaceResolvable
-
resolve
public BasicValue.Resolution<?> 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
-
-