org.hibernate.mapping

Interface KeyValue

All Superinterfaces:
Serializable, Value
Known Implementing Classes:
Any, Component, DependantValue, ManyToOne, OneToOne, SimpleValue, ToOne

public interface KeyValue
extends Value

Represents an identifying key of a table: the value for primary key of an entity, or a foreign key of a collection or join table or joined subclass table.
Author:
Gavin King

Method Summary

void
createForeignKeyOfEntity(String entityName)
IdentifierGenerator
createIdentifierGenerator(Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass)
String
getNullValue()
boolean
isCascadeDeleteEnabled()
boolean
isIdentityColumn(Dialect dialect)
boolean
isUpdateable()

Methods inherited from interface org.hibernate.mapping.Value

accept, createForeignKey, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getFetchMode, getTable, getType, hasFormula, isAlternateUniqueKey, isNullable, isSimpleValue, isValid, setTypeUsingReflection

Method Details

createForeignKeyOfEntity

public void createForeignKeyOfEntity(String entityName)

createIdentifierGenerator

public IdentifierGenerator createIdentifierGenerator(Dialect dialect,
                                                     String defaultCatalog,
                                                     String defaultSchema,
                                                     RootClass rootClass)
            throws MappingException

getNullValue

public String getNullValue()

isCascadeDeleteEnabled

public boolean isCascadeDeleteEnabled()

isIdentityColumn

public boolean isIdentityColumn(Dialect dialect)

isUpdateable

public boolean isUpdateable()