Package org.hibernate.id
Class ExportableColumn.ValueImpl
- java.lang.Object
-
- org.hibernate.id.ExportableColumn.ValueImpl
-
- All Implemented Interfaces:
Serializable,Value
- Enclosing class:
- ExportableColumn
public static class ExportableColumn.ValueImpl extends Object implements Value
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValueImpl(ExportableColumn column, Table table, BasicType<?> type, Database database)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(ValueVisitor visitor)Valuecopy()voidcreateForeignKey()voidcreateUniqueKey(MetadataBuildingContext context)boolean[]getColumnInsertability()List<Column>getColumns()If the mapping involves only columns, return them.intgetColumnSpan()The number of columns and formulas in the mapping.boolean[]getColumnUpdateability()FetchModegetFetchMode()List<Selectable>getSelectables()The mapping to columns and formulas.ServiceRegistrygetServiceRegistry()TablegetTable()TypegetType()booleanhasAnyInsertableColumns()booleanhasAnyUpdatableColumns()booleanhasFormula()booleanisAlternateUniqueKey()booleanisColumnInsertable(int index)booleanisColumnUpdateable(int index)booleanisNullable()booleanisSame(Value value)booleanisSimpleValue()booleanisValid(Mapping mapping)voidsetTypeUsingReflection(String className, String propertyName)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.mapping.Value
checkColumnDuplication, getBuildingContext, getConstraintColumns, getExtraCreateTableInfo, getSelectableType, getVirtualSelectables
-
-
-
-
Constructor Detail
-
ValueImpl
public ValueImpl(ExportableColumn column, Table table, BasicType<?> type, Database database)
-
-
Method Detail
-
getColumnSpan
public int getColumnSpan()
Description copied from interface:ValueThe number of columns and formulas in the mapping.- Specified by:
getColumnSpanin interfaceValue
-
getSelectables
public List<Selectable> getSelectables()
Description copied from interface:ValueThe mapping to columns and formulas.- Specified by:
getSelectablesin interfaceValue
-
getColumns
public List<Column> getColumns()
Description copied from interface:ValueIf the mapping involves only columns, return them.- Specified by:
getColumnsin interfaceValue
-
getType
public Type getType() throws MappingException
- Specified by:
getTypein interfaceValue- Throws:
MappingException
-
getFetchMode
public FetchMode getFetchMode()
- Specified by:
getFetchModein interfaceValue
-
hasFormula
public boolean hasFormula()
- Specified by:
hasFormulain interfaceValue
-
isAlternateUniqueKey
public boolean isAlternateUniqueKey()
- Specified by:
isAlternateUniqueKeyin interfaceValue
-
isNullable
public boolean isNullable()
- Specified by:
isNullablein interfaceValue
-
getColumnInsertability
public boolean[] getColumnInsertability()
- Specified by:
getColumnInsertabilityin interfaceValue
-
hasAnyInsertableColumns
public boolean hasAnyInsertableColumns()
- Specified by:
hasAnyInsertableColumnsin interfaceValue
-
getColumnUpdateability
public boolean[] getColumnUpdateability()
- Specified by:
getColumnUpdateabilityin interfaceValue
-
hasAnyUpdatableColumns
public boolean hasAnyUpdatableColumns()
- Specified by:
hasAnyUpdatableColumnsin interfaceValue
-
createForeignKey
public void createForeignKey()
- Specified by:
createForeignKeyin interfaceValue
-
createUniqueKey
public void createUniqueKey(MetadataBuildingContext context)
- Specified by:
createUniqueKeyin interfaceValue
-
isSimpleValue
public boolean isSimpleValue()
- Specified by:
isSimpleValuein interfaceValue
-
isValid
public boolean isValid(Mapping mapping) throws MappingException
- Specified by:
isValidin interfaceValue- Throws:
MappingException
-
setTypeUsingReflection
public void setTypeUsingReflection(String className, String propertyName) throws MappingException
- Specified by:
setTypeUsingReflectionin interfaceValue- Throws:
MappingException
-
accept
public Object accept(ValueVisitor visitor)
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
- Specified by:
getServiceRegistryin interfaceValue
-
isColumnInsertable
public boolean isColumnInsertable(int index)
- Specified by:
isColumnInsertablein interfaceValue
-
isColumnUpdateable
public boolean isColumnUpdateable(int index)
- Specified by:
isColumnUpdateablein interfaceValue
-
-