当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
SimpleValue (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.mapping
Class SimpleValue
java.lang.Object
net.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleValue
public SimpleValue(Table table)
SimpleValue
public SimpleValue()
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