Top Description Fields Constructors Methods
org.hibernate.mapping

public Class SimpleValue

extends Object
implements KeyValue
Class Inheritance
All Implemented Interfaces
org.hibernate.mapping.KeyValue, org.hibernate.mapping.Value, java.io.Serializable
Known Direct Subclasses
org.hibernate.mapping.ToOne, org.hibernate.mapping.Any, org.hibernate.mapping.Component, org.hibernate.mapping.DependantValue
Imports
java.util.ArrayList, .Iterator, .List, .Properties, org.hibernate.FetchMode, .MappingException, org.hibernate.cfg.Environment, .Mappings, org.hibernate.dialect.Dialect, org.hibernate.engine.Mapping, org.hibernate.id.IdentifierGenerator, .IdentityGenerator, .PersistentIdentifierGenerator, org.hibernate.id.factory.IdentifierGeneratorFactory, org.hibernate.type.Type, .TypeFactory, org.hibernate.util.ReflectHelper

Any value that maps to columns.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private final List<E>
public static final String
private String
private Properties
private String
private final Mappings
private String
private Table
private String
private Properties

Constructor Summary

AccessConstructor and Description
public
public
SimpleValue(Mappings mappings, Table table)

Method Summary

Modifier and TypeMethod and Description
public Object
public void
addColumn(Column column)

public void
public void
public void
public IdentifierGenerator
createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass)

Implements org.hibernate.mapping.KeyValue.createIdentifierGenerator.

public boolean[]
public Iterator<E>
public int
public boolean[]
public List<E>
public FetchMode
public String
public Properties
public String

Returns:

String
getIdentifierGeneratorStrategy
()

Returns the identifierGeneratorStrategy.

public Mappings
public String
public Table
public Type
public String
public Properties
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public void
setAlternateUniqueKey(boolean unique)

public void
setCascadeDeleteEnabled(boolean cascadeDeleteEnabled)

public void
setForeignKeyName(String foreignKeyName)

public void
setIdentifierGeneratorProperties(Properties
The identifierGeneratorProperties to set
identifierGeneratorProperties
)

Sets the identifierGeneratorProperties.

public void
setIdentifierGeneratorStrategy(String
The identifierGeneratorStrategy to set
identifierGeneratorStrategy
)

Sets the identifierGeneratorStrategy.

public void
setNullValue(String
The nullValue to set
nullValue
)

Sets the nullValue.

public void
setTable(Table table)

public void
public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

alternateUniqueKeyback to summary
private boolean alternateUniqueKey
cascadeDeleteEnabledback to summary
private boolean cascadeDeleteEnabled
columnsback to summary
private final List<E> columns
DEFAULT_ID_GEN_STRATEGYback to summary
public static final String DEFAULT_ID_GEN_STRATEGY
foreignKeyNameback to summary
private String foreignKeyName
identifierGeneratorPropertiesback to summary
private Properties identifierGeneratorProperties
identifierGeneratorStrategyback to summary
private String identifierGeneratorStrategy
mappingsback to summary
private final Mappings mappings
nullValueback to summary
private String nullValue
tableback to summary
private Table table
typeNameback to summary
private String typeName
typeParametersback to summary
private Properties typeParameters

Constructor Detail

SimpleValueback to summary
public SimpleValue(Mappings mappings)
SimpleValueback to summary
public SimpleValue(Mappings mappings, Table table)

Method Detail

acceptback to summary
public Object accept(ValueVisitor visitor)

Implements org.hibernate.mapping.Value.accept.

addColumnback to summary
public void addColumn(Column column)
addFormulaback to summary
public void addFormula(Formula formula)
createForeignKeyback to summary
public void createForeignKey() throws MappingException

Implements org.hibernate.mapping.Value.createForeignKey.

createForeignKeyOfEntityback to summary
public void createForeignKeyOfEntity(String entityName)

Implements org.hibernate.mapping.KeyValue.createForeignKeyOfEntity.

createIdentifierGeneratorback to summary
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass) throws MappingException

Implements org.hibernate.mapping.KeyValue.createIdentifierGenerator.

getColumnInsertabilityback to summary
public boolean[] getColumnInsertability()

Implements org.hibernate.mapping.Value.getColumnInsertability.

getColumnIteratorback to summary
public Iterator<E> getColumnIterator()

Implements org.hibernate.mapping.Value.getColumnIterator.

getColumnSpanback to summary
public int getColumnSpan()

Implements org.hibernate.mapping.Value.getColumnSpan.

getColumnUpdateabilityback to summary
public boolean[] getColumnUpdateability()

Implements org.hibernate.mapping.Value.getColumnUpdateability.

getConstraintColumnsback to summary
public List<E> getConstraintColumns()
getFetchModeback to summary
public FetchMode getFetchMode()

Implements org.hibernate.mapping.Value.getFetchMode.

getForeignKeyNameback to summary
public String getForeignKeyName()
getIdentifierGeneratorPropertiesback to summary
public Properties getIdentifierGeneratorProperties()
getIdentifierGeneratorStrategyback to summary
public String getIdentifierGeneratorStrategy()

Returns the identifierGeneratorStrategy.

Returns:String

String

getMappingsback to summary
public Mappings getMappings()
getNullValueback to summary
public String getNullValue()

Implements org.hibernate.mapping.KeyValue.getNullValue.

getTableback to summary
public Table getTable()

Implements org.hibernate.mapping.Value.getTable.

getTypeback to summary
public Type getType() throws MappingException

Implements org.hibernate.mapping.Value.getType.

getTypeNameback to summary
public String getTypeName()
getTypeParametersback to summary
public Properties getTypeParameters()
hasFormulaback to summary
public boolean hasFormula()

Implements org.hibernate.mapping.Value.hasFormula.

isAlternateUniqueKeyback to summary
public boolean isAlternateUniqueKey()

Implements org.hibernate.mapping.Value.isAlternateUniqueKey.

isCascadeDeleteEnabledback to summary
public boolean isCascadeDeleteEnabled()

Implements org.hibernate.mapping.KeyValue.isCascadeDeleteEnabled.

isIdentityColumnback to summary
public boolean isIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect)

Implements org.hibernate.mapping.KeyValue.isIdentityColumn.

isNullableback to summary
public boolean isNullable()

Implements org.hibernate.mapping.Value.isNullable.

isSimpleValueback to summary
public boolean isSimpleValue()

Implements org.hibernate.mapping.Value.isSimpleValue.

isTypeSpecifiedback to summary
public boolean isTypeSpecified()
isUpdateableback to summary
public boolean isUpdateable()

Implements org.hibernate.mapping.KeyValue.isUpdateable.

isValidback to summary
public boolean isValid(Mapping mapping) throws MappingException

Implements org.hibernate.mapping.Value.isValid.

setAlternateUniqueKeyback to summary
public void setAlternateUniqueKey(boolean unique)
setCascadeDeleteEnabledback to summary
public void setCascadeDeleteEnabled(boolean cascadeDeleteEnabled)
setForeignKeyNameback to summary
public void setForeignKeyName(String foreignKeyName)
setIdentifierGeneratorPropertiesback to summary
public void setIdentifierGeneratorProperties(Properties identifierGeneratorProperties)

Sets the identifierGeneratorProperties.

Parameters
identifierGeneratorProperties:Properties

The identifierGeneratorProperties to set

setIdentifierGeneratorStrategyback to summary
public void setIdentifierGeneratorStrategy(String identifierGeneratorStrategy)

Sets the identifierGeneratorStrategy.

Parameters
identifierGeneratorStrategy:String

The identifierGeneratorStrategy to set

setNullValueback to summary
public void setNullValue(String nullValue)

Sets the nullValue.

Parameters
nullValue:String

The nullValue to set

setTableback to summary
public void setTable(Table table)
setTypeNameback to summary
public void setTypeName(String type)
setTypeParametersback to summary
public void setTypeParameters(Properties parameterMap)
setTypeUsingReflectionback to summary
public void setTypeUsingReflection(String className, String propertyName) throws MappingException

Implements org.hibernate.mapping.Value.setTypeUsingReflection.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.