Package org.hibernate.mapping
Class Any.KeyValue
- java.lang.Object
-
- org.hibernate.mapping.SimpleValue
-
- org.hibernate.mapping.Any.KeyValue
-
- All Implemented Interfaces:
Serializable
,KeyValue
,Value
- Enclosing class:
- Any
public static class Any.KeyValue extends SimpleValue
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description KeyValue(Consumer<Selectable> selectableConsumer, MetadataBuildingContext buildingContext)
KeyValue(Consumer<Selectable> selectableConsumer, MetadataBuildingContext buildingContext, Table table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(Column column)
void
addColumn(Column column, boolean isInsertable, boolean isUpdatable)
void
addFormula(Formula formula)
Any.KeyValue
copy()
Type
getType()
String
getTypeName()
boolean
isValid(Mapping mapping)
void
setTypeName(String typeName)
-
Methods inherited from class org.hibernate.mapping.SimpleValue
accept, copyTypeFrom, createForeignKey, createForeignKey, createForeignKeyOfEntity, createGenerator, createParameterImpl, createUniqueKey, disableForeignKey, getAttributeConverterDescriptor, getBuildingContext, getColumn, getColumnInsertability, getColumns, getColumnSpan, getColumnUpdateability, getConstraintColumnIterator, getCustomIdGeneratorCreator, getFetchMode, getForeignKeyDefinition, getForeignKeyName, getIdentifierGenerator, getIdentifierGeneratorParameters, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getJpaAttributeConverterDescriptor, getMetadata, getNullValue, getOnDeleteAction, getSelectables, getServiceRegistry, getTable, getTypeConfiguration, getTypeParameters, hasAnyInsertableColumns, hasAnyUpdatableColumns, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isColumnInsertable, isColumnUpdateable, isConstrained, isForeignKeyEnabled, isIdentityColumn, isLob, isNationalized, isNullable, isPartitionKey, isSame, isSame, isSame, isSimpleValue, isTypeSpecified, isUpdateable, isVersion, justAddColumn, justAddColumn, justAddFormula, makeLob, makeNationalized, makeParameterImpl, makeVersion, setAlternateUniqueKey, setAttributeConverterDescriptor, setCascadeDeleteEnabled, setCustomIdGeneratorCreator, setForeignKeyDefinition, setForeignKeyName, setIdentifierGeneratorParameters, setIdentifierGeneratorProperties, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDescriptor, setNullValue, setOnDeleteAction, setPartitionKey, setTable, setTypeParameters, setTypeParameters, setTypeUsingReflection, 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
-
KeyValue
public KeyValue(Consumer<Selectable> selectableConsumer, MetadataBuildingContext buildingContext)
-
KeyValue
public KeyValue(Consumer<Selectable> selectableConsumer, MetadataBuildingContext buildingContext, Table table)
-
-
Method Detail
-
copy
public Any.KeyValue copy()
-
getType
public Type getType() throws MappingException
- Throws:
MappingException
-
getTypeName
public String getTypeName()
- Overrides:
getTypeName
in classSimpleValue
-
setTypeName
public void setTypeName(String typeName)
- Overrides:
setTypeName
in classSimpleValue
-
addColumn
public void addColumn(Column column)
- Overrides:
addColumn
in classSimpleValue
-
addColumn
public void addColumn(Column column, boolean isInsertable, boolean isUpdatable)
- Overrides:
addColumn
in classSimpleValue
-
addFormula
public void addFormula(Formula formula)
- Overrides:
addFormula
in classSimpleValue
-
isValid
public boolean isValid(Mapping mapping) throws MappingException
- Specified by:
isValid
in interfaceValue
- Overrides:
isValid
in classSimpleValue
- Throws:
MappingException
-
-