站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

SimpleValue (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.mapping
Class SimpleValue

java.lang.Object
  extended bynet.sf.hibernate.mapping.SimpleValue
All Implemented Interfaces:
Value
Direct Known Subclasses:
Any, Component, ToOne

public class SimpleValue
extends Object
implements Value

Any value that maps to columns.

Author:
Gavin King

Constructor Summary
SimpleValue()
           
SimpleValue(Table table)
           
 
Method Summary
 void addColumn(Column column)
           
 void createForeignKey()
           
 void createForeignKeyOfClass(Class persistentClass)
           
 IdentifierGenerator createIdentifierGenerator(Dialect dialect)
           
 Iterator getColumnIterator()
           
 int getColumnSpan()
           
 List getConstraintColumns()
           
 String getForeignKeyName()
           
 Formula getFormula()
           
 Properties getIdentifierGeneratorProperties()
           
 String getIdentifierGeneratorStrategy()
          Returns the identifierGeneratorStrategy.
 String getNullValue()
           
 int getOuterJoinFetchSetting()
           
 Table getTable()
           
 Type getType()
           
 boolean isNullable()
           
 boolean isSimpleValue()
           
 boolean isUnique()
           
 boolean isValid(Mapping mapping)
           
 void setForeignKeyName(String string)
           
 void setFormula(Formula formula)
           
 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 setType(Type type)
           
 void setTypeByReflection(Class propertyClass, String propertyName)
           
 void setUnique(boolean unique)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleValue

public SimpleValue(Table table)

SimpleValue

public SimpleValue()
Method Detail

addColumn

public void addColumn(Column column)

getColumnSpan

public int getColumnSpan()
Specified by:
getColumnSpan in interface Value

getColumnIterator

public Iterator getColumnIterator()
Specified by:
getColumnIterator in interface Value

getConstraintColumns

public List getConstraintColumns()

getType

public Type getType()
Specified by:
getType in interface Value

setType

public void setType(Type type)

setTable

public void setTable(Table table)

createForeignKey

public void createForeignKey()
Specified by:
createForeignKey in interface Value

createForeignKeyOfClass

public void createForeignKeyOfClass(Class persistentClass)

createIdentifierGenerator

public IdentifierGenerator createIdentifierGenerator(Dialect dialect)
                                              throws MappingException
Throws:
MappingException

getOuterJoinFetchSetting

public int getOuterJoinFetchSetting()
Specified by:
getOuterJoinFetchSetting in interface Value

getIdentifierGeneratorProperties

public Properties getIdentifierGeneratorProperties()

getNullValue

public String getNullValue()

getTable

public Table getTable()
Specified by:
getTable in interface Value

getIdentifierGeneratorStrategy

public String getIdentifierGeneratorStrategy()
Returns the identifierGeneratorStrategy.

Returns:
String

setIdentifierGeneratorProperties

public void setIdentifierGeneratorProperties(Properties identifierGeneratorProperties)
Sets the identifierGeneratorProperties.

Parameters:
identifierGeneratorProperties - The identifierGeneratorProperties to set

setIdentifierGeneratorStrategy

public void setIdentifierGeneratorStrategy(String identifierGeneratorStrategy)
Sets the identifierGeneratorStrategy.

Parameters:
identifierGeneratorStrategy - The identifierGeneratorStrategy to set

setNullValue

public void setNullValue(String nullValue)
Sets the nullValue.

Parameters:
nullValue - The nullValue to set

setFormula

public void setFormula(Formula formula)

getFormula

public Formula getFormula()
Specified by:
getFormula in interface Value

getForeignKeyName

public String getForeignKeyName()

setForeignKeyName

public void setForeignKeyName(String string)

isUnique

public boolean isUnique()
Specified by:
isUnique in interface Value

setUnique

public void setUnique(boolean unique)

isNullable

public boolean isNullable()
Specified by:
isNullable in interface Value

setTypeByReflection

public void setTypeByReflection(Class propertyClass,
                                String propertyName)
                         throws MappingException
Throws:
MappingException

isSimpleValue

public boolean isSimpleValue()
Specified by:
isSimpleValue in interface Value

isValid

public boolean isValid(Mapping mapping)
                throws MappingException
Specified by:
isValid in interface Value
Throws:
MappingException