public class TnBeanMetaDataImpl extends Object implements TnBeanMetaData
DBFlute depended on S2Dao before 0.9.0.TnBeanMetaDataImplis close to S2Dao logic The extension inTnBeanMetaDataFactoryExtensionhas DBFlute logic
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected TnBeanAnnotationReader |
_beanAnnotationReader |
protected Class<?> |
_beanClass
The type of bean.
|
protected Map<String,TnPropertyType> |
_columnPropertyTypeMap |
protected DBMeta |
_dbmeta
The DB meta of the bean.
|
protected List<TnIdentifierGenerator> |
_identifierGeneratorList |
protected Map<String,TnIdentifierGenerator> |
_identifierGeneratorsByPropertyName |
protected TnModifiedPropertySupport |
_modifiedPropertySupport |
protected TnPropertyType[] |
_primaryKeys
The array of property type for primary key.
|
protected TnPropertyTypeFactory |
_propertyTypeFactory |
protected List<TnPropertyType> |
_propertyTypeList |
protected StringKeyMap<TnPropertyType> |
_propertyTypeMap |
protected TnRelationPropertyTypeFactory |
_relationPropertyTypeFactory |
protected List<TnRelationPropertyType> |
_relationPropertyTypes |
protected String |
_tableName
The name of table.
|
protected String |
_timestampPropertyName |
protected String |
_versionNoPropertyName |
| コンストラクタと説明 |
|---|
TnBeanMetaDataImpl(Class<?> beanClass,
DBMeta dbmeta) |
protected final Class<?> _beanClass
protected final DBMeta _dbmeta
protected String _tableName
protected final StringKeyMap<TnPropertyType> _propertyTypeMap
protected final List<TnPropertyType> _propertyTypeList
protected TnBeanAnnotationReader _beanAnnotationReader
protected TnPropertyTypeFactory _propertyTypeFactory
protected TnPropertyType[] _primaryKeys
protected final Map<String,TnPropertyType> _columnPropertyTypeMap
protected final List<TnRelationPropertyType> _relationPropertyTypes
protected final List<TnIdentifierGenerator> _identifierGeneratorList
protected final Map<String,TnIdentifierGenerator> _identifierGeneratorsByPropertyName
protected String _versionNoPropertyName
protected String _timestampPropertyName
protected TnModifiedPropertySupport _modifiedPropertySupport
protected TnRelationPropertyTypeFactory _relationPropertyTypeFactory
public void initialize()
protected void setupTableName(DfBeanDesc beanDesc)
protected void setupProperty()
protected void addPropertyType(TnPropertyType propertyType)
protected void setupPrimaryKey()
protected void setupIdentifierGenerator(TnPropertyType pt)
protected void addRelationPropertyType(TnRelationPropertyType rpt)
public Class<?> getBeanClass()
TnBeanMetaDatagetBeanClass インタフェース内 TnBeanMetaDatapublic DBMeta getDBMeta()
TnBeanMetaDatagetDBMeta インタフェース内 TnBeanMetaDatapublic String getTableName()
TnBeanMetaDatagetTableName インタフェース内 TnBeanMetaDatapublic List<TnPropertyType> getPropertyTypeList()
TnBeanMetaDatagetPropertyTypeList インタフェース内 TnBeanMetaDatapublic TnPropertyType getPropertyType(String propertyName)
TnBeanMetaDatagetPropertyType インタフェース内 TnBeanMetaDatapropertyName - The name of property. (NotNull)public boolean hasPropertyType(String propertyName)
TnBeanMetaDatahasPropertyType インタフェース内 TnBeanMetaDatapropertyName - The name of property. (NotNull)public TnPropertyType getPropertyTypeByColumnName(String columnName)
getPropertyTypeByColumnName インタフェース内 TnBeanMetaDataprotected void throwBeanMetaPropertyTypeByColumnNameNotFoundException(String columnName)
public TnPropertyType getPropertyTypeByAliasName(String alias)
getPropertyTypeByAliasName インタフェース内 TnBeanMetaDatapublic boolean hasPropertyTypeByColumnName(String columnName)
hasPropertyTypeByColumnName インタフェース内 TnBeanMetaDatapublic boolean hasPropertyTypeByAliasName(String alias)
hasPropertyTypeByAliasName インタフェース内 TnBeanMetaDatapublic String convertFullColumnName(String alias)
convertFullColumnName インタフェース内 TnBeanMetaDatapublic TnPropertyType getVersionNoPropertyType() throws DfBeanPropertyNotFoundException
getVersionNoPropertyType インタフェース内 TnBeanMetaDataDfBeanPropertyNotFoundExceptionpublic TnPropertyType getTimestampPropertyType() throws DfBeanPropertyNotFoundException
getTimestampPropertyType インタフェース内 TnBeanMetaDataDfBeanPropertyNotFoundExceptionpublic String getVersionNoPropertyName()
getVersionNoPropertyName インタフェース内 TnBeanMetaDatapublic String getTimestampPropertyName()
getTimestampPropertyName インタフェース内 TnBeanMetaDatapublic boolean hasVersionNoPropertyType()
hasVersionNoPropertyType インタフェース内 TnBeanMetaDatapublic boolean hasTimestampPropertyType()
hasTimestampPropertyType インタフェース内 TnBeanMetaDatapublic List<TnRelationPropertyType> getRelationPropertyTypeList()
getRelationPropertyTypeList インタフェース内 TnBeanMetaDatapublic int getRelationPropertyTypeSize()
getRelationPropertyTypeSize インタフェース内 TnBeanMetaDatapublic TnRelationPropertyType getRelationPropertyType(int index)
getRelationPropertyType インタフェース内 TnBeanMetaDatapublic TnRelationPropertyType getRelationPropertyType(String propertyName) throws DfBeanPropertyNotFoundException
getRelationPropertyType インタフェース内 TnBeanMetaDataDfBeanPropertyNotFoundExceptionpublic int getPrimaryKeySize()
getPrimaryKeySize インタフェース内 TnBeanMetaDatapublic String getPrimaryKeyDbName(int index)
getPrimaryKeyDbName インタフェース内 TnBeanMetaDatapublic ColumnSqlName getPrimaryKeySqlName(int index)
getPrimaryKeySqlName インタフェース内 TnBeanMetaDatapublic int getIdentifierGeneratorSize()
getIdentifierGeneratorSize インタフェース内 TnBeanMetaDatapublic TnIdentifierGenerator getIdentifierGenerator(int index)
getIdentifierGenerator インタフェース内 TnBeanMetaDatapublic TnIdentifierGenerator getIdentifierGenerator(String propertyName)
getIdentifierGenerator インタフェース内 TnBeanMetaDatapublic Set<String> getModifiedPropertyNames(Object bean)
getModifiedPropertyNames インタフェース内 TnBeanMetaDatapublic void setVersionNoPropertyName(String versionNoPropertyName)
public void setTimestampPropertyName(String timestampPropertyName)
public void setBeanAnnotationReader(TnBeanAnnotationReader beanAnnotationReader)
public void setPropertyTypeFactory(TnPropertyTypeFactory propertyTypeFactory)
public void setRelationPropertyTypeFactory(TnRelationPropertyTypeFactory relationPropertyTypeFactory)
public TnModifiedPropertySupport getModifiedPropertySupport()
public void setModifiedPropertySupport(TnModifiedPropertySupport propertyModifiedSupport)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.