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

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


net.sf.hibernate.mapping
Class Any

java.lang.Object
  extended bynet.sf.hibernate.mapping.SimpleValue
      extended bynet.sf.hibernate.mapping.Any
All Implemented Interfaces:
Value

public class Any
extends SimpleValue

A Hibernate "any" type (ie. polymorphic association to one-of-several tables).

Author:
Gavin King

Constructor Summary
Any(Table table)
           
 
Method Summary
 Type getIdentifierType()
          Returns the identifier type.
 Type getMetaType()
           
 Type getType()
           
 void setIdentifierType(Type identifierType)
          Sets the identifier type.
 void setMetaType(Type type)
           
 void setType(Type type)
           
 void setTypeByReflection(Class propertyClass, String propertyName)
           
 
Methods inherited from class net.sf.hibernate.mapping.SimpleValue
addColumn, createForeignKey, createForeignKeyOfClass, createIdentifierGenerator, getColumnIterator, getColumnSpan, getConstraintColumns, getForeignKeyName, getFormula, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getNullValue, getOuterJoinFetchSetting, getTable, isNullable, isSimpleValue, isUnique, isValid, setForeignKeyName, setFormula, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setUnique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Any

public Any(Table table)
Method Detail

getIdentifierType

public Type getIdentifierType()
Returns the identifier type.


setIdentifierType

public void setIdentifierType(Type identifierType)
Sets the identifier type.


getType

public Type getType()
Specified by:
getType in interface Value
Overrides:
getType in class SimpleValue

setType

public void setType(Type type)
Overrides:
setType in class SimpleValue

setTypeByReflection

public void setTypeByReflection(Class propertyClass,
                                String propertyName)
Overrides:
setTypeByReflection in class SimpleValue

getMetaType

public Type getMetaType()

setMetaType

public void setMetaType(Type type)