public abstract class ToOne extends SimpleValue implements Fetchable
Modifier and Type | Field and Description |
---|---|
protected String |
referencedPropertyName |
protected boolean |
referenceToPrimaryKey |
protected boolean |
unwrapProxy |
DEFAULT_ID_GEN_STRATEGY
Modifier | Constructor and Description |
---|---|
protected |
ToOne(Mappings mappings,
Table table) |
Modifier and Type | Method and Description |
---|---|
Object |
accept(ValueVisitor visitor) |
abstract void |
createForeignKey() |
FetchMode |
getFetchMode() |
String |
getReferencedEntityName() |
String |
getReferencedPropertyName() |
abstract Type |
getType() |
boolean |
isEmbedded()
Deprecated.
To be removed in 5. Removed as part of removing the notion of DOM entity-mode.
See Jira issue: HHH-7771
|
boolean |
isLazy() |
boolean |
isReferenceToPrimaryKey() |
boolean |
isTypeSpecified() |
boolean |
isUnwrapProxy() |
boolean |
isValid(Mapping mapping) |
void |
setEmbedded(boolean embedded)
Deprecated.
To be removed in 5. Removed as part of removing the notion of DOM entity-mode.
See Jira issue: HHH-7771
|
void |
setFetchMode(FetchMode fetchMode) |
void |
setLazy(boolean lazy) |
void |
setReferencedEntityName(String referencedEntityName) |
void |
setReferencedPropertyName(String name) |
void |
setReferenceToPrimaryKey(boolean referenceToPrimaryKey) |
void |
setTypeUsingReflection(String className,
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, isNationalized, isNullable, isSimpleValue, isUpdateable, makeNationalized, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDefinition, setNullValue, setTable, setTypeName, setTypeParameters, toString
protected String referencedPropertyName
protected boolean unwrapProxy
protected boolean referenceToPrimaryKey
public FetchMode getFetchMode()
getFetchMode
in interface Fetchable
getFetchMode
in interface Value
getFetchMode
in class SimpleValue
public void setFetchMode(FetchMode fetchMode)
setFetchMode
in interface Fetchable
public abstract void createForeignKey() throws MappingException
createForeignKey
in interface Value
createForeignKey
in class SimpleValue
MappingException
public abstract Type getType() throws MappingException
getType
in interface Value
getType
in class SimpleValue
MappingException
public String getReferencedPropertyName()
public void setReferencedPropertyName(String name)
public String getReferencedEntityName()
public void setReferencedEntityName(String referencedEntityName)
public void setTypeUsingReflection(String className, String propertyName) throws MappingException
setTypeUsingReflection
in interface Value
setTypeUsingReflection
in class SimpleValue
MappingException
public boolean isTypeSpecified()
isTypeSpecified
in class SimpleValue
public Object accept(ValueVisitor visitor)
accept
in interface Value
accept
in class SimpleValue
@Deprecated public boolean isEmbedded()
@Deprecated public void setEmbedded(boolean embedded)
public boolean isValid(Mapping mapping) throws MappingException
isValid
in interface Value
isValid
in class SimpleValue
MappingException
public boolean isUnwrapProxy()
public void setUnwrapProxy(boolean unwrapProxy)
public boolean isReferenceToPrimaryKey()
public void setReferenceToPrimaryKey(boolean referenceToPrimaryKey)
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.