public abstract class ToOne extends SimpleValue implements Fetchable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
referencedPropertyName |
protected boolean |
referenceToPrimaryKey |
protected boolean |
unwrapProxy |
DEFAULT_ID_GEN_STRATEGY
Modifier | Constructor and Description |
---|---|
protected |
ToOne(MetadataImplementor metadata,
Table table) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(ValueVisitor visitor) |
abstract void |
createForeignKey() |
FetchMode |
getFetchMode() |
java.lang.String |
getPropertyName() |
java.lang.String |
getReferencedEntityName() |
java.lang.String |
getReferencedPropertyName() |
abstract Type |
getType() |
boolean |
isLazy() |
boolean |
isReferenceToPrimaryKey() |
boolean |
isSame(SimpleValue other) |
boolean |
isSame(ToOne other) |
boolean |
isTypeSpecified() |
boolean |
isUnwrapProxy() |
boolean |
isValid(Mapping mapping) |
void |
setFetchMode(FetchMode fetchMode) |
void |
setLazy(boolean lazy) |
void |
setPropertyName(java.lang.String propertyName) |
void |
setReferencedEntityName(java.lang.String referencedEntityName) |
void |
setReferencedPropertyName(java.lang.String name) |
void |
setReferenceToPrimaryKey(boolean referenceToPrimaryKey) |
void |
setTypeUsingReflection(java.lang.String className,
java.lang.String propertyName) |
void |
setUnwrapProxy(boolean unwrapProxy) |
addColumn, addColumn, addFormula, copyTypeFrom, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getForeignKeyDefinition, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMetadata, getNullValue, getServiceRegistry, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isLob, isNationalized, isNullable, isSame, isSame, isSimpleValue, isUpdateable, isVersion, makeLob, makeNationalized, makeVersion, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyDefinition, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDescriptor, setNullValue, setTable, setTypeName, setTypeParameters, toString
protected java.lang.String referencedPropertyName
protected boolean unwrapProxy
protected boolean referenceToPrimaryKey
protected ToOne(MetadataImplementor metadata, Table table)
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 java.lang.String getReferencedPropertyName()
public void setReferencedPropertyName(java.lang.String name)
public java.lang.String getReferencedEntityName()
public void setReferencedEntityName(java.lang.String referencedEntityName)
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
public void setTypeUsingReflection(java.lang.String className, java.lang.String propertyName) throws MappingException
setTypeUsingReflection
in interface Value
setTypeUsingReflection
in class SimpleValue
MappingException
public boolean isTypeSpecified()
isTypeSpecified
in class SimpleValue
public java.lang.Object accept(ValueVisitor visitor)
accept
in interface Value
accept
in class SimpleValue
public boolean isSame(SimpleValue other)
isSame
in class SimpleValue
public boolean isSame(ToOne other)
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-2018 Red Hat, Inc. All Rights Reserved.