org.hibernate.mapping
Class Any
java.lang.Object
   org.hibernate.mapping.SimpleValue
org.hibernate.mapping.SimpleValue
       org.hibernate.mapping.Any
org.hibernate.mapping.Any
- All Implemented Interfaces: 
- Serializable, KeyValue, Value
- public class Any 
- extends SimpleValue
A Hibernate "any" type (ie. polymorphic association to
 one-of-several tables).
- Author:
- Gavin King
- See Also:
- Serialized Form
 
 
 
 
| Methods inherited from class org.hibernate.mapping.SimpleValue | 
| addColumn, addFormula, createForeignKey, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getFetchMode, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMappings, getNullValue, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isNullable, isSimpleValue, isTypeSpecified, isUpdateable, isValid, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setTypeName, setTypeParameters, toString | 
 
 
Any
public Any(Mappings mappings,
           Table table)
getIdentifierType
public String getIdentifierType()
- 
 
setIdentifierType
public void setIdentifierType(String identifierType)
- 
 
getType
public Type getType()
             throws MappingException
- 
- Specified by:
- getTypein interface- Value
- Overrides:
- getTypein class- SimpleValue
 
- 
- Throws:
- MappingException
 
setTypeByReflection
public void setTypeByReflection(String propertyClass,
                                String propertyName)
- 
 
getMetaType
public String getMetaType()
- 
 
setMetaType
public void setMetaType(String type)
- 
 
getMetaValues
public Map getMetaValues()
- 
 
setMetaValues
public void setMetaValues(Map metaValues)
- 
 
setTypeUsingReflection
public void setTypeUsingReflection(String className,
                                   String propertyName)
                            throws MappingException
- 
- Specified by:
- setTypeUsingReflectionin interface- Value
- Overrides:
- setTypeUsingReflectionin class- SimpleValue
 
- 
- Throws:
- MappingException
 
accept
public Object accept(ValueVisitor visitor)
- 
- Specified by:
- acceptin interface- Value
- Overrides:
- acceptin class- SimpleValue
 
- 
 
Copyright © 2001-2010 Red Hat, Inc.  All Rights Reserved.