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.Object
accept(ValueVisitor visitor)
Type
getType()
boolean
isNullable()
boolean
isSame(DependantValue other)
boolean
isSame(SimpleValue other)
boolean
isUpdateable()
void
setNullable(boolean nullable)
void
setTypeUsingReflection(java.lang.String className, java.lang.String propertyName)
void
setUpdateable(boolean updateable)
-
Methods inherited from class org.hibernate.mapping.SimpleValue
addColumn, addColumn, addFormula, copyTypeFrom, createForeignKey, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getFetchMode, getForeignKeyDefinition, getForeignKeyName, 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, setIdentifierGeneratorStrategy, setJpaAttributeConverterDescriptor, setNullValue, setTable, setTypeName, 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:
getType
in interfaceValue
- Overrides:
getType
in classSimpleValue
- Throws:
MappingException
-
setTypeUsingReflection
public void setTypeUsingReflection(java.lang.String className, java.lang.String propertyName)
- Specified by:
setTypeUsingReflection
in interfaceValue
- Overrides:
setTypeUsingReflection
in classSimpleValue
-
accept
public java.lang.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)
-
-