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(MetadataBuildingContext buildingContext,
Table table) |
protected |
ToOne(MetadataImplementor metadata,
Table table)
Deprecated.
Use
ToOne(MetadataBuildingContext, Table) instead. |
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(ValueVisitor visitor) |
abstract void |
createForeignKey() |
FetchMode |
getFetchMode() |
String |
getPropertyName() |
String |
getReferencedEntityName() |
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(String propertyName) |
void |
setReferencedEntityName(String referencedEntityName) |
void |
setReferencedPropertyName(String name) |
void |
setReferenceToPrimaryKey(boolean referenceToPrimaryKey) |
void |
setTypeUsingReflection(String className,
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, toStringprotected String referencedPropertyName
protected boolean unwrapProxy
protected boolean referenceToPrimaryKey
@Deprecated protected ToOne(MetadataImplementor metadata, Table table)
ToOne(MetadataBuildingContext, Table) instead.protected ToOne(MetadataBuildingContext buildingContext, Table table)
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 String getReferencedPropertyName()
public void setReferencedPropertyName(String name)
public String getReferencedEntityName()
public void setReferencedEntityName(String referencedEntityName)
public String getPropertyName()
public void setPropertyName(String propertyName)
public void setTypeUsingReflection(String className, String propertyName) throws MappingException
setTypeUsingReflection in interface ValuesetTypeUsingReflection in class SimpleValueMappingExceptionpublic boolean isTypeSpecified()
isTypeSpecified in class SimpleValuepublic Object accept(ValueVisitor visitor)
accept in interface Valueaccept in class SimpleValuepublic boolean isSame(SimpleValue other)
isSame in class SimpleValuepublic boolean isSame(ToOne other)
public boolean isValid(Mapping mapping) throws MappingException
isValid in interface ValueisValid in class SimpleValueMappingExceptionpublic boolean isUnwrapProxy()
public void setUnwrapProxy(boolean unwrapProxy)
public boolean isReferenceToPrimaryKey()
public void setReferenceToPrimaryKey(boolean referenceToPrimaryKey)
Copyright © 2019 JBoss by Red Hat. All rights reserved.