public abstract class ToOne extends SimpleValue implements Fetchable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
referencedPropertyName |
protected boolean |
unwrapProxy |
DEFAULT_ID_GEN_STRATEGY| Modifier | Constructor and Description |
|---|---|
protected |
ToOne(Mappings mappings,
Table table) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(ValueVisitor visitor) |
abstract void |
createForeignKey() |
FetchMode |
getFetchMode() |
java.lang.String |
getReferencedEntityName() |
java.lang.String |
getReferencedPropertyName() |
abstract Type |
getType() |
boolean |
isEmbedded() |
boolean |
isLazy() |
boolean |
isTypeSpecified() |
boolean |
isUnwrapProxy() |
boolean |
isValid(Mapping mapping) |
void |
setEmbedded(boolean embedded) |
void |
setFetchMode(FetchMode fetchMode) |
void |
setLazy(boolean lazy) |
void |
setReferencedEntityName(java.lang.String referencedEntityName) |
void |
setReferencedPropertyName(java.lang.String name) |
void |
setTypeUsingReflection(java.lang.String className,
java.lang.String propertyName) |
void |
setUnwrapProxy(boolean unwrapProxy) |
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, toStringprotected java.lang.String referencedPropertyName
protected boolean unwrapProxy
public FetchMode getFetchMode()
getFetchMode in interface FetchablegetFetchMode in interface ValuegetFetchMode in class SimpleValuepublic void setFetchMode(FetchMode fetchMode)
setFetchMode in interface Fetchablepublic abstract void createForeignKey()
throws MappingException
createForeignKey in interface ValuecreateForeignKey in class SimpleValueMappingExceptionpublic abstract Type getType() throws MappingException
getType in interface ValuegetType in class SimpleValueMappingExceptionpublic java.lang.String getReferencedPropertyName()
public void setReferencedPropertyName(java.lang.String name)
public java.lang.String getReferencedEntityName()
public void setReferencedEntityName(java.lang.String referencedEntityName)
public void setTypeUsingReflection(java.lang.String className,
java.lang.String propertyName)
throws MappingException
setTypeUsingReflection in interface ValuesetTypeUsingReflection in class SimpleValueMappingExceptionpublic boolean isTypeSpecified()
isTypeSpecified in class SimpleValuepublic java.lang.Object accept(ValueVisitor visitor)
accept in interface Valueaccept in class SimpleValuepublic boolean isEmbedded()
public void setEmbedded(boolean embedded)
public boolean isValid(Mapping mapping) throws MappingException
isValid in interface ValueisValid in class SimpleValueMappingExceptionpublic boolean isUnwrapProxy()
public void setUnwrapProxy(boolean unwrapProxy)
Copyright © 2013. All Rights Reserved.