public class

SimpleValue

extends Object
implements KeyValue
java.lang.Object
   ↳ org.hibernate.mapping.SimpleValue
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Any value that maps to columns.

Summary

Constants
String DEFAULT_ID_GEN_STRATEGY
Public Constructors
SimpleValue(Mappings mappings)
SimpleValue(Mappings mappings, Table table)
Public Methods
Object accept(ValueVisitor visitor)
void addColumn(Column column)
void addFormula(Formula formula)
void createForeignKey()
void createForeignKeyOfEntity(String entityName)
IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass)
boolean[] getColumnInsertability()
Iterator getColumnIterator()
int getColumnSpan()
boolean[] getColumnUpdateability()
List getConstraintColumns()
FetchMode getFetchMode()
String getForeignKeyName()
Properties getIdentifierGeneratorProperties()
String getIdentifierGeneratorStrategy()
Returns the identifierGeneratorStrategy.
Mappings getMappings()
String getNullValue()
Table getTable()
Type getType()
String getTypeName()
Properties getTypeParameters()
boolean hasFormula()
boolean isAlternateUniqueKey()
boolean isCascadeDeleteEnabled()
boolean isIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect)
boolean isNullable()
boolean isSimpleValue()
boolean isTypeSpecified()
boolean isUpdateable()
boolean isValid(Mapping mapping)
void setAlternateUniqueKey(boolean unique)
void setCascadeDeleteEnabled(boolean cascadeDeleteEnabled)
void setForeignKeyName(String foreignKeyName)
void setIdentifierGeneratorProperties(Properties identifierGeneratorProperties)
Sets the identifierGeneratorProperties.
void setIdentifierGeneratorStrategy(String identifierGeneratorStrategy)
Sets the identifierGeneratorStrategy.
void setNullValue(String nullValue)
Sets the nullValue.
void setTable(Table table)
void setTypeName(String type)
void setTypeParameters(Properties parameterMap)
void setTypeUsingReflection(String className, String propertyName)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.mapping.KeyValue
From interface org.hibernate.mapping.Value

Constants

public static final String DEFAULT_ID_GEN_STRATEGY

Constant Value: "assigned"

Public Constructors

public SimpleValue (Mappings mappings)

public SimpleValue (Mappings mappings, Table table)

Public Methods

public Object accept (ValueVisitor visitor)

public void addColumn (Column column)

public void addFormula (Formula formula)

public void createForeignKey ()

public void createForeignKeyOfEntity (String entityName)

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

public boolean[] getColumnInsertability ()

public Iterator getColumnIterator ()

public int getColumnSpan ()

public boolean[] getColumnUpdateability ()

public List getConstraintColumns ()

public FetchMode getFetchMode ()

public String getForeignKeyName ()

public Properties getIdentifierGeneratorProperties ()

public String getIdentifierGeneratorStrategy ()

Returns the identifierGeneratorStrategy.

Returns
  • String

public Mappings getMappings ()

public String getNullValue ()

public Table getTable ()

public Type getType ()

public String getTypeName ()

public Properties getTypeParameters ()

public boolean hasFormula ()

public boolean isAlternateUniqueKey ()

public boolean isCascadeDeleteEnabled ()

public boolean isIdentityColumn (IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect)

public boolean isNullable ()

public boolean isSimpleValue ()

public boolean isTypeSpecified ()

public boolean isUpdateable ()

public boolean isValid (Mapping mapping)

public void setAlternateUniqueKey (boolean unique)

public void setCascadeDeleteEnabled (boolean cascadeDeleteEnabled)

public void setForeignKeyName (String foreignKeyName)

public void setIdentifierGeneratorProperties (Properties identifierGeneratorProperties)

Sets the identifierGeneratorProperties.

Parameters
identifierGeneratorProperties The identifierGeneratorProperties to set

public void setIdentifierGeneratorStrategy (String identifierGeneratorStrategy)

Sets the identifierGeneratorStrategy.

Parameters
identifierGeneratorStrategy The identifierGeneratorStrategy to set

public void setNullValue (String nullValue)

Sets the nullValue.

Parameters
nullValue The nullValue to set

public void setTable (Table table)

public void setTypeName (String type)

public void setTypeParameters (Properties parameterMap)

public void setTypeUsingReflection (String className, String propertyName)

public String toString ()