Package org.hibernate.mapping
Class DependantValue
- java.lang.Object
-
- org.hibernate.mapping.SimpleValue
-
- org.hibernate.mapping.DependantValue
-
public class DependantValue extends SimpleValue
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)DependantValue(MetadataImplementor metadata, Table table, KeyValue prototype)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(ValueVisitor visitor)TypegetType()booleanisNullable()booleanisSame(DependantValue other)booleanisSame(SimpleValue other)booleanisUpdateable()voidsetNullable(boolean nullable)voidsetTypeUsingReflection(java.lang.String className, java.lang.String propertyName)voidsetUpdateable(boolean updateable)-
Methods inherited from class org.hibernate.mapping.SimpleValue
addColumn, addColumn, addFormula, copyTypeFrom, createForeignKey, createForeignKeyOfEntity, createIdentifierGenerator, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getFetchMode, getForeignKeyDefinition, getForeignKeyName, getIdentifierGenerator, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMetadata, getNullValue, getServiceRegistry, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isLob, isNationalized, isSame, isSame, isSimpleValue, isTypeSpecified, isValid, isVersion, makeLob, makeNationalized, makeVersion, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyDefinition, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDescriptor, setNullValue, setTable, setTypeName, setTypeParameters, setTypeParameters, toString
-
-
-
-
Constructor Detail
-
DependantValue
@Deprecated public DependantValue(MetadataImplementor metadata, Table table, KeyValue prototype)
Deprecated.
-
DependantValue
public DependantValue(MetadataBuildingContext buildingContext, Table table, KeyValue prototype)
-
-
Method Detail
-
getType
public Type getType() throws MappingException
- Specified by:
getTypein interfaceValue- Overrides:
getTypein classSimpleValue- Throws:
MappingException
-
setTypeUsingReflection
public void setTypeUsingReflection(java.lang.String className, java.lang.String propertyName)- Specified by:
setTypeUsingReflectionin interfaceValue- Overrides:
setTypeUsingReflectionin classSimpleValue
-
accept
public java.lang.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)
-
-