public class TnRelationPropertyTypeImpl extends TnPropertyTypeImpl implements TnRelationPropertyType
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
_hasCompoundUniqueKey |
protected boolean |
_hasSimpleUniqueKey |
protected TnBeanMetaData |
_myBeanMetaData |
protected String[] |
_myKeys |
protected DfPropertyAccessor |
_propertyAccessor |
protected int |
_relationNo |
protected String |
_relationNoSuffixPart |
protected TnPropertyType |
_simpleUniquePropertyType |
protected List<TnPropertyType> |
_uniquePropertyTypeList |
protected TnBeanMetaData |
_yourBeanMetaData |
protected String[] |
_yourKeys |
_columnDbName, _columnSqlName, _entityColumnInfo, _persistent, _primaryKey, _propertyDesc, _propertyName, _valueType| コンストラクタと説明 |
|---|
TnRelationPropertyTypeImpl(DfPropertyDesc propertyDesc,
int relationNo,
String[] myKeys,
String[] yourKeys,
TnBeanMetaData myBeanMetaData,
TnBeanMetaData yourBeanMetaData) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected String |
buildRelationNoSuffixPart(int relationNo) |
protected DfPropertyAccessor |
createPropertyAccessor(DfPropertyDesc propertyDesc,
TnBeanMetaData myBeanMetaData) |
protected List<TnPropertyType> |
deriveUniqueKeys(String[] yourKeys,
TnBeanMetaData yourBeanMetaData) |
int |
getKeySize()
Get the size of key, which means how many relation keys exist.
|
TnBeanMetaData |
getMyBeanMetaData()
Get the my bean meta data, which is for base point of the relation (local entity).
|
String |
getMyKey(int index)
Get the my key, which is local column DB name as relation key, by the key index.
|
DfPropertyAccessor |
getPropertyAccessor()
Get the accessor of the property.
|
int |
getRelationNo()
Get the relation No, which indicates number in the base table's relations.
|
String |
getRelationNoSuffixPart()
Get the suffix part of relation No for relation path that indicates unique location.
|
TnPropertyType |
getSimpleUniquePropertyType()
Get the property type of simple unique key.
|
List<TnPropertyType> |
getUniquePropertyTypeList()
Get the list of property type of unique key (basically primary key).
|
TnBeanMetaData |
getYourBeanMetaData()
Get the your bean meta data, which is for the relation (foreign entity).
|
String |
getYourKey(int index)
Get the your key, which is foreign column DB name as relation key, by the key index.
|
boolean |
hasCompoundUniqueKey()
Does it have compound unique key?
|
boolean |
hasSimpleUniqueKey()
Does it have simple unique key?
|
boolean |
isYourKey(String columnName)
Is the column in foreign columns?
|
getColumnDbName, getColumnSqlName, getEntityColumnInfo, getPropertyDesc, getPropertyName, getValueType, isPersistent, isPrimaryKey, setPersistent, setPrimaryKey, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPropertyDesc, isPersistent, isPrimaryKey, setPersistent, setPrimaryKeygetColumnDbName, getColumnSqlName, getEntityColumnInfo, getPropertyName, getValueTypeprotected final int _relationNo
protected final String _relationNoSuffixPart
protected final String[] _myKeys
protected final String[] _yourKeys
protected final TnBeanMetaData _myBeanMetaData
protected final TnBeanMetaData _yourBeanMetaData
protected final List<TnPropertyType> _uniquePropertyTypeList
protected final boolean _hasSimpleUniqueKey
protected final boolean _hasCompoundUniqueKey
protected final TnPropertyType _simpleUniquePropertyType
protected final DfPropertyAccessor _propertyAccessor
public TnRelationPropertyTypeImpl(DfPropertyDesc propertyDesc, int relationNo, String[] myKeys, String[] yourKeys, TnBeanMetaData myBeanMetaData, TnBeanMetaData yourBeanMetaData)
protected String buildRelationNoSuffixPart(int relationNo)
protected List<TnPropertyType> deriveUniqueKeys(String[] yourKeys, TnBeanMetaData yourBeanMetaData)
protected DfPropertyAccessor createPropertyAccessor(DfPropertyDesc propertyDesc, TnBeanMetaData myBeanMetaData)
public int getRelationNo()
TnRelationPropertyTypegetRelationNo インタフェース内 TnRelationPropertyTypepublic String getRelationNoSuffixPart()
TnRelationPropertyTypegetRelationNoSuffixPart インタフェース内 TnRelationPropertyTypepublic int getKeySize()
TnRelationPropertyTypegetKeySize インタフェース内 TnRelationPropertyTypepublic String getMyKey(int index)
TnRelationPropertyTypegetMyKey インタフェース内 TnRelationPropertyTypeindex - The index to find the corresponding relation key.public String getYourKey(int index)
TnRelationPropertyTypegetYourKey インタフェース内 TnRelationPropertyTypeindex - The index to find the corresponding relation key.public boolean isYourKey(String columnName)
TnRelationPropertyTypeisYourKey インタフェース内 TnRelationPropertyTypecolumnName - The DB name of column. (NotNull)public TnBeanMetaData getMyBeanMetaData()
TnRelationPropertyTypegetMyBeanMetaData インタフェース内 TnRelationPropertyTypepublic TnBeanMetaData getYourBeanMetaData()
TnRelationPropertyTypegetYourBeanMetaData インタフェース内 TnRelationPropertyTypepublic List<TnPropertyType> getUniquePropertyTypeList()
TnRelationPropertyTypegetUniquePropertyTypeList インタフェース内 TnRelationPropertyTypepublic boolean hasSimpleUniqueKey()
TnRelationPropertyTypehasSimpleUniqueKey インタフェース内 TnRelationPropertyTypepublic boolean hasCompoundUniqueKey()
TnRelationPropertyTypehasCompoundUniqueKey インタフェース内 TnRelationPropertyTypepublic TnPropertyType getSimpleUniquePropertyType()
TnRelationPropertyTypegetSimpleUniquePropertyType インタフェース内 TnRelationPropertyTypepublic DfPropertyAccessor getPropertyAccessor()
TnPropertyMappinggetPropertyAccessor インタフェース内 TnPropertyMappinggetPropertyAccessor クラス内 TnPropertyTypeImplCopyright © 2014–2015 The DBFlute Project. All rights reserved.