kd.bos.entity

## 类 MainEntityType

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

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

      @KSObject
      public class MainEntityType
      extends EntityType

  ORM实体描述
  另请参阅:
    序列化表格

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static MainEntityType` | `Empty`

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

      `LOCALEID, LocalePropertyName`

  - ### 构造器概要

    构造器
    构造器和说明
    `MainEntityType()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `java.lang.Object` | `clone()`
    `java.util.List<java.util.Map<java.lang.String,java.lang.Object>>` | `createEntityTreeNodes(EntityTreeNode parentEntityTreeNode, boolean isIncludeEntry, boolean isAllNode)`
    `void` | `createPropIndexsNoCache()`
    `void` | `endInit()`
    `java.util.Map<java.lang.String,EntityType>` | `getAllEntities()`
    `java.util.Map<java.lang.String,kd.bos.dataentity.metadata.IDataEntityProperty>` | `getAllFields()`
    `java.lang.String` | `getAppId()`
    `java.lang.String` | `getBOSVer()`
    `long` | `getCheckVersionTimeMillis()`
    `java.lang.String` | `getMainOrg()`
    `PermissionControlType` | `getPermissionControlType()` 权限控制
    `java.util.List<kd.bos.dataentity.metadata.ISimpleProperty>` | `getPkList()`
    `java.util.List<RefPropType>` | `getRefPropTypes()`
    `java.lang.String` | `getUserOption()`
    `java.lang.String` | `getVersion()`
    `void` | `setAppId(java.lang.String appId)`
    `void` | `setBOSVer(java.lang.String bosver)`
    `void` | `setCheckVersionTimeMillis(long checkVersionTimeMillis)`
    `void` | `setMainOrg(java.lang.String mainOrg)`
    `void` | `setPermissionControlType(PermissionControlType permissionControlType)`
    `void` | `setUserOption(java.lang.String userOption)`
    `void` | `setVersion(java.lang.String version)`

    - ### 从类继承的方法 kd.bos.entity.EntityType

      `addProperty, beginInit, createPropIndexs, findProperty, getFields, getRuleCount, getSubEntityType, isDbIgnore, isInitialized, setRuleCount`

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

      `checkUnmodifiable, 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`

- - ### 字段详细资料

    - #### Empty

          public static MainEntityType Empty

  - ### 构造器详细资料

    - #### MainEntityType

          public MainEntityType()

  - ### 方法详细资料

    - #### getPkList

          public java.util.List<kd.bos.dataentity.metadata.ISimpleProperty> getPkList()

    - #### getVersion

          @KSMethod
          public java.lang.String getVersion()

      返回:
        the version

    - #### setVersion

          public void setVersion(java.lang.String version)

      参数:
        `version` - the version to set

    - #### getBOSVer

          @KSMethod
          public java.lang.String getBOSVer()

    - #### setBOSVer

          public void setBOSVer(java.lang.String bosver)

    - #### getRefPropTypes

          public java.util.List<RefPropType> getRefPropTypes()

    - #### endInit

          public void endInit()

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

    - #### getAllEntities

          @KSMethod
          public java.util.Map<java.lang.String,EntityType> getAllEntities()

      返回:
        获取本对象的全部实体

    - #### createEntityTreeNodes

          public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> createEntityTreeNodes(EntityTreeNode parentEntityTreeNode,
                                                                                                        boolean isIncludeEntry,
                                                                                                        boolean isAllNode)

    - #### getAllFields

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

      返回:
        获取全部字段清单，排除系统字段

    - #### getUserOption

          public java.lang.String getUserOption()

      返回:
        用户选项

    - #### setUserOption

          public void setUserOption(java.lang.String userOption)

      参数:
        `用户选项` -

    - #### getMainOrg

          @KSMethod
          public java.lang.String getMainOrg()

      返回:
        主业务组织

    - #### setMainOrg

          public void setMainOrg(java.lang.String mainOrg)

      参数:
        `主业务组织` -

    - #### getAppId

          public java.lang.String getAppId()

      返回:
        应用标识

    - #### setAppId

          public void setAppId(java.lang.String appId)

      参数:
        `用户标识` -

    - #### getPermissionControlType

          public PermissionControlType getPermissionControlType()

      权限控制
      返回:

    - #### setPermissionControlType

          public void setPermissionControlType(PermissionControlType permissionControlType)

    - #### getCheckVersionTimeMillis

          public long getCheckVersionTimeMillis()

    - #### setCheckVersionTimeMillis

          public void setCheckVersionTimeMillis(long checkVersionTimeMillis)

    - #### clone

          public java.lang.Object clone()
                                 throws java.lang.CloneNotSupportedException

      指定者:
        `clone` 在接口中 `kd.bos.dataentity.metadata.IMetadata`
      覆盖:
        `clone` 在类中 `kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType`
      抛出:
        `java.lang.CloneNotSupportedException`

    - #### createPropIndexsNoCache

          public void createPropIndexsNoCache()