public interface RelationInfo
| 修飾子とタイプ | メソッドと説明 |
|---|---|
String |
getConstraintName()
Get the name of the relation constraint.
|
DBMeta |
getLocalDBMeta()
Get the DB meta of the local table.
|
Map<ColumnInfo,ColumnInfo> |
getLocalTargetColumnInfoMap()
Get the read-only map, key is a local column info, value is a target column info.
|
Class<?> |
getObjectNativeType()
Get the native type mapped to object for the column.
|
Class<?> |
getPropertyAccessType()
Get the type of property access for the relation.
|
String |
getRelationPropertyName()
Get the property name of the relation.
|
RelationInfo |
getReverseRelation()
Get the relation info of reverse relation.
|
DBMeta |
getTargetDBMeta()
Get the DB meta of the target table.
|
boolean |
isCompoundKey()
Is the relation key compound key?
|
boolean |
isOneToOne()
Does the relation is one-to-one?
|
boolean |
isReferrer()
Does the relation is referrer?
|
<PROPERTY> PROPERTY |
read(Entity localEntity)
Read the value to the entity by its gateway (means no reflection).
|
void |
write(Entity localEntity,
Object foreignEntity)
Write the value to the entity by its gateway (means no reflection).
|
String getConstraintName()
String getRelationPropertyName()
DBMeta getLocalDBMeta()
DBMeta getTargetDBMeta()
Map<ColumnInfo,ColumnInfo> getLocalTargetColumnInfoMap()
Class<?> getObjectNativeType()
Class<?> getPropertyAccessType()
boolean isOneToOne()
boolean isReferrer()
boolean isCompoundKey()
RelationInfo getReverseRelation()
<PROPERTY> PROPERTY read(Entity localEntity)
PROPERTY - The type of property, might be optional or list.localEntity - The local entity of this column to read. (NotNull)void write(Entity localEntity, Object foreignEntity)
localEntity - The local entity of this column to write. (NotNull)foreignEntity - The written instance of relation entity, might be optional or list. (NullAllowed: if null, null written)Copyright © 2014–2015 The DBFlute Project. All rights reserved.