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 Object
accept(ValueVisitor visitor)
DependantValue
copy()
Type
getType()
KeyValue
getWrappedValue()
boolean
isNullable()
boolean
isSame(DependantValue other)
boolean
isSame(SimpleValue other)
boolean
isSorted()
boolean
isUpdateable()
BasicValue.Resolution<?>
resolve()
boolean
resolve(MetadataBuildingContext buildingContext)
void
setNullable(boolean nullable)
void
setSorted(boolean sorted)
void
setTypeUsingReflection(String className, String propertyName)
void
setUpdateable(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:
getType
in interfaceValue
- Throws:
MappingException
-
setTypeUsingReflection
public void setTypeUsingReflection(String className, String propertyName)
- Specified by:
setTypeUsingReflection
in interfaceValue
- Overrides:
setTypeUsingReflection
in classSimpleValue
-
accept
public Object accept(ValueVisitor visitor)
- 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
public boolean isSame(SimpleValue other)
- Overrides:
isSame
in classSimpleValue
-
isSame
public boolean isSame(DependantValue other)
-
resolve
public boolean resolve(MetadataBuildingContext buildingContext)
- Specified by:
resolve
in interfaceResolvable
-
resolve
public BasicValue.Resolution<?> 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
-
-