Package org.hibernate.mapping
Class SimpleValue
java.lang.Object
org.hibernate.mapping.SimpleValue
- All Implemented Interfaces:
Serializable,KeyValue,Value
- Direct Known Subclasses:
Any,Component,DependantValue,ToOne
Any value that maps to columns.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(ValueVisitor visitor) voidvoidaddFormula(Formula formula) voidvoidcreateForeignKeyOfEntity(String entityName) createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass) boolean[]intboolean[]Returns the identifierGeneratorStrategy.getTable()getType()booleanbooleanbooleanbooleanisIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect) booleanbooleanbooleanbooleanbooleanvoidsetAlternateUniqueKey(boolean unique) voidsetCascadeDeleteEnabled(boolean cascadeDeleteEnabled) voidsetForeignKeyName(String foreignKeyName) voidsetIdentifierGeneratorProperties(Properties identifierGeneratorProperties) Sets the identifierGeneratorProperties.voidsetIdentifierGeneratorStrategy(String identifierGeneratorStrategy) Sets the identifierGeneratorStrategy.voidsetNullValue(String nullValue) Sets the nullValue.voidvoidsetTypeName(String type) voidsetTypeParameters(Properties parameterMap) voidsetTypeUsingReflection(String className, String propertyName) toString()
-
Field Details
-
DEFAULT_ID_GEN_STRATEGY
- See Also:
-
-
Constructor Details
-
SimpleValue
-
SimpleValue
-
-
Method Details
-
getMappings
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()- Specified by:
isCascadeDeleteEnabledin interfaceKeyValue
-
setCascadeDeleteEnabled
public void setCascadeDeleteEnabled(boolean cascadeDeleteEnabled) -
addColumn
-
addFormula
-
hasFormula
public boolean hasFormula()- Specified by:
hasFormulain interfaceValue
-
getColumnSpan
public int getColumnSpan()- Specified by:
getColumnSpanin interfaceValue
-
getColumnIterator
- Specified by:
getColumnIteratorin interfaceValue
-
getConstraintColumns
-
getTypeName
-
setTypeName
-
setTable
-
createForeignKey
- Specified by:
createForeignKeyin interfaceValue- Throws:
MappingException
-
createForeignKeyOfEntity
- Specified by:
createForeignKeyOfEntityin interfaceKeyValue
-
createIdentifierGenerator
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass) throws MappingException - Specified by:
createIdentifierGeneratorin interfaceKeyValue- Throws:
MappingException
-
isUpdateable
public boolean isUpdateable()- Specified by:
isUpdateablein interfaceKeyValue
-
getFetchMode
- Specified by:
getFetchModein interfaceValue
-
getIdentifierGeneratorProperties
-
getNullValue
- Specified by:
getNullValuein interfaceKeyValue
-
getTable
-
getIdentifierGeneratorStrategy
Returns the identifierGeneratorStrategy.- Returns:
- String
-
isIdentityColumn
public boolean isIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect) - Specified by:
isIdentityColumnin interfaceKeyValue
-
setIdentifierGeneratorProperties
Sets the identifierGeneratorProperties.- Parameters:
identifierGeneratorProperties- The identifierGeneratorProperties to set
-
setIdentifierGeneratorStrategy
Sets the identifierGeneratorStrategy.- Parameters:
identifierGeneratorStrategy- The identifierGeneratorStrategy to set
-
setNullValue
Sets the nullValue.- Parameters:
nullValue- The nullValue to set
-
getForeignKeyName
-
setForeignKeyName
-
isAlternateUniqueKey
public boolean isAlternateUniqueKey()- Specified by:
isAlternateUniqueKeyin interfaceValue
-
setAlternateUniqueKey
public void setAlternateUniqueKey(boolean unique) -
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceValue
-
isSimpleValue
public boolean isSimpleValue()- Specified by:
isSimpleValuein interfaceValue
-
isValid
- Specified by:
isValidin interfaceValue- Throws:
MappingException
-
getType
- Specified by:
getTypein interfaceValue- Throws:
MappingException
-
setTypeUsingReflection
- Specified by:
setTypeUsingReflectionin interfaceValue- Throws:
MappingException
-
isTypeSpecified
public boolean isTypeSpecified() -
setTypeParameters
-
getTypeParameters
-
toString
-
accept
-
getColumnInsertability
public boolean[] getColumnInsertability()- Specified by:
getColumnInsertabilityin interfaceValue
-
getColumnUpdateability
public boolean[] getColumnUpdateability()- Specified by:
getColumnUpdateabilityin interfaceValue
-