kd.bos.entity

## 类 EntityType

- java.lang.Object
- - kd.bos.dataentity.metadata.dynamicobject.DynamicMetadata
  - - kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType
    - - kd.bos.entity.EntityType

- 所有已实现的接口:
    java.io.Serializable, java.lang.Cloneable, kd.bos.dataentity.entity.ISupportInitialize, kd.bos.dataentity.metadata.IDataEntityType, kd.bos.dataentity.metadata.IMetadata
  直接已知子类:
    EntryType, MainEntityType

      public abstract class EntityType
      extends kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType
      implements kd.bos.dataentity.entity.ISupportInitialize

  抽象实体模型
  另请参阅:
    序列化表格

- - ### 字段概要

    - ### 从类继承的字段 kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType

      `LOCALEID, LocalePropertyName`

  - ### 构造器概要

    构造器
    构造器和说明
    `EntityType()`
    `EntityType(java.lang.String name)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addProperty(kd.bos.dataentity.metadata.dynamicobject.DynamicProperty prop)`
    `void` | `beginInit()`
    `void` | `createPropIndexs()` 创建实体属性关系
    `void` | `endInit()`
    `kd.bos.dataentity.metadata.IDataEntityProperty` | `findProperty(java.lang.String name)` 查找属性
    `java.util.Map<java.lang.String,kd.bos.dataentity.metadata.IDataEntityProperty>` | `getFields()` 获取本实体的字段清单
    `int` | `getRuleCount()`
    `EntityType` | `getSubEntityType(java.util.Collection<java.lang.String> properties)` 根据实体属性构造一个新的属性
    `boolean` | `isDbIgnore()`
    `boolean` | `isInitialized()`
    `void` | `setRuleCount(int ruleCount)`

    - ### 从类继承的方法 kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType

      `checkUnmodifiable, clone, createHashCode, createInstance, Extract, getAlias, getCacheType, getCacheTypeId, getClrType, getDBRouteKey, getDirtyProperties, getDirtyProperties, getDisplayName, getExtendName, getFlag, getFullIndexFields, getJsonSerializerProperties, getLocaleProperty, getName, getOrCreateLocaleType, getParent, getParent, getPkSnapshot, getPrimaryKey, getProperties, getProperty, getSortProperties, isDirty, isEmpty, isFullIndexDataSynced, isUnmodifiable, registerCollectionProperty, registerComplexProperty, registerProperty, registerSimpleProperty, setAlias, setCacheType, setCacheTypeId, setDBRouteKey, setDirty, setDisplayName, setExtendName, setFromDatabase, setName, setPkSnapshot, toString`

    - ### 从类继承的方法 kd.bos.dataentity.metadata.dynamicobject.DynamicMetadata

      `equals, hashCode, setDbIgnore`

    - ### 从类继承的方法 java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### EntityType

          public EntityType()

    - #### EntityType

          public EntityType(java.lang.String name)

  - ### 方法详细资料

    - #### getRuleCount

          public int getRuleCount()

      返回:
        规则数量

    - #### setRuleCount

          public void setRuleCount(int ruleCount)

      参数:
        `ruleCount` - 规则数量

    - #### findProperty

          @KSMethod
          public kd.bos.dataentity.metadata.IDataEntityProperty findProperty(java.lang.String name)

      查找属性
      参数:
        `name` - 属性名称
      返回:
        实体属性

    - #### getFields

          @KSMethod
          public java.util.Map<java.lang.String,kd.bos.dataentity.metadata.IDataEntityProperty> getFields()

      获取本实体的字段清单
      返回:
        实体属性列表

    - #### addProperty

          public void addProperty(kd.bos.dataentity.metadata.dynamicobject.DynamicProperty prop)

      覆盖:
        `addProperty` 在类中 `kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType`

    - #### createPropIndexs

          public void createPropIndexs()

      创建实体属性关系

    - #### isDbIgnore

          @KSMethod
          public boolean isDbIgnore()

      指定者:
        `isDbIgnore` 在接口中 `kd.bos.dataentity.metadata.IMetadata`
      覆盖:
        `isDbIgnore` 在类中 `kd.bos.dataentity.metadata.dynamicobject.DynamicMetadata`

    - #### getSubEntityType

          @KSMethod
          public final EntityType getSubEntityType(java.util.Collection<java.lang.String> properties)

      根据实体属性构造一个新的属性
      参数:
        `properties` - 属性列表
        `includeRefId` - 是否包含引用属性
      返回:
        返回实体属性

    - #### beginInit

          public void beginInit()

      指定者:
        `beginInit` 在接口中 `kd.bos.dataentity.entity.ISupportInitialize`

    - #### isInitialized

          public boolean isInitialized()

      指定者:
        `isInitialized` 在接口中 `kd.bos.dataentity.entity.ISupportInitialize`

    - #### endInit

          public void endInit()

      指定者:
        `endInit` 在接口中 `kd.bos.dataentity.entity.ISupportInitialize`