org.hibernate.mapping
Class ToOne
java.lang.Object
   org.hibernate.mapping.SimpleValue
org.hibernate.mapping.SimpleValue
       org.hibernate.mapping.ToOne
org.hibernate.mapping.ToOne
- All Implemented Interfaces: 
- Serializable, Fetchable, KeyValue, Value
- Direct Known Subclasses: 
- ManyToOne, OneToOne
- public abstract class ToOne 
- extends SimpleValue- implements Fetchable
A simple-point association (ie. a reference to another entity).
- Author:
- Gavin King
- See Also:
- Serialized Form
 
 
 
 
| Methods inherited from class org.hibernate.mapping.SimpleValue | 
| addColumn, addFormula, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMappings, getNullValue, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isNullable, isSimpleValue, isUpdateable, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setTypeName, setTypeParameters, toString | 
 
 
referencedPropertyName
protected String referencedPropertyName
unwrapProxy
protected boolean unwrapProxy
ToOne
protected ToOne(Mappings mappings,
                Table table)
getFetchMode
public FetchMode getFetchMode()
- 
- Specified by:
- getFetchModein interface- Fetchable
- Specified by:
- getFetchModein interface- Value
- Overrides:
- getFetchModein class- SimpleValue
 
- 
 
setFetchMode
public void setFetchMode(FetchMode fetchMode)
- 
- Specified by:
- setFetchModein interface- Fetchable
 
- 
 
createForeignKey
public abstract void createForeignKey()
                               throws MappingException
- 
- Specified by:
- createForeignKeyin interface- Value
- Overrides:
- createForeignKeyin class- SimpleValue
 
- 
- Throws:
- MappingException
 
getType
public abstract Type getType()
                      throws MappingException
- 
- Specified by:
- getTypein interface- Value
- Overrides:
- getTypein class- SimpleValue
 
- 
- Throws:
- MappingException
 
getReferencedPropertyName
public String getReferencedPropertyName()
- 
 
- 
 
setReferencedPropertyName
public void setReferencedPropertyName(String name)
- 
 
- 
 
getReferencedEntityName
public String getReferencedEntityName()
- 
 
- 
 
setReferencedEntityName
public void setReferencedEntityName(String referencedEntityName)
- 
 
- 
 
setTypeUsingReflection
public void setTypeUsingReflection(String className,
                                   String propertyName)
                            throws MappingException
- 
- Specified by:
- setTypeUsingReflectionin interface- Value
- Overrides:
- setTypeUsingReflectionin class- SimpleValue
 
- 
- Throws:
- MappingException
 
isTypeSpecified
public boolean isTypeSpecified()
- 
- Overrides:
- isTypeSpecifiedin class- SimpleValue
 
- 
 
accept
public Object accept(ValueVisitor visitor)
- 
- Specified by:
- acceptin interface- Value
- Overrides:
- acceptin class- SimpleValue
 
- 
 
isEmbedded
public boolean isEmbedded()
- 
 
- 
 
setEmbedded
public void setEmbedded(boolean embedded)
- 
 
- 
 
isValid
public boolean isValid(Mapping mapping)
                throws MappingException
- 
- Specified by:
- isValidin interface- Value
- Overrides:
- isValidin class- SimpleValue
 
- 
- Throws:
- MappingException
 
isLazy
public boolean isLazy()
- 
- Specified by:
- isLazyin interface- Fetchable
 
- 
 
setLazy
public void setLazy(boolean lazy)
- 
- Specified by:
- setLazyin interface- Fetchable
 
- 
 
isUnwrapProxy
public boolean isUnwrapProxy()
- 
 
- 
 
setUnwrapProxy
public void setUnwrapProxy(boolean unwrapProxy)
- 
 
- 
 
Copyright © 2001-2010 Red Hat, Inc.  All Rights Reserved.