kd.bos.servicehelper

## 类 BusinessDataServiceHelper

- java.lang.Object
- - kd.bos.servicehelper.BusinessDataServiceHelper

-     @KSObject
      public class BusinessDataServiceHelper
      extends java.lang.Object

  数据操作服务类，提供查询、保存等功能

- - ### 构造器概要

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

  - ### 方法概要

    所有方法 静态方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static void` | `delete(kd.bos.dataentity.metadata.IDataEntityType type, java.lang.Object[] pks)` 已过时。
    `static kd.bos.dataentity.entity.DynamicObject[]` | `load(java.lang.Object[] pkArray, kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type)`
    `static java.lang.Object[]` | `load(java.lang.Object[] pkArray, kd.bos.dataentity.metadata.IDataEntityType type)`
    `static kd.bos.dataentity.entity.DynamicObject[]` | `load(java.lang.String entityName, java.lang.String selectProperties, kd.bos.orm.query.QFilter[] filters)`
    `static kd.bos.dataentity.entity.DynamicObject[]` | `load(java.lang.String entityName, java.lang.String selectProperties, kd.bos.orm.query.QFilter[] filters, java.lang.String orderby)`
    `static kd.bos.dataentity.entity.DynamicObject[]` | `load(java.lang.String entityName, java.lang.String selectProperties, kd.bos.orm.query.QFilter[] filters, java.lang.String orderby, int top)`
    `static kd.bos.dataentity.entity.DynamicObject[]` | `load(java.lang.String entityName, java.lang.String selectProperties, kd.bos.orm.query.QFilter[] filters, java.lang.String orderby, int pageIndex, int pagesize)`
    `static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject>` | `loadFromCache(kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type, kd.bos.orm.query.QFilter[] filters)`
    `static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject>` | `loadFromCache(java.lang.Object[] pkArray, kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type)`
    `static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject>` | `loadFromCache(java.lang.Object[] pkArray, java.lang.String entityName)`
    `static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject>` | `loadFromCache(java.lang.String entityName, kd.bos.orm.query.QFilter[] filters)`
    `static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject>` | `loadFromCache(java.lang.String entityName, java.lang.String selectProperties, kd.bos.orm.query.QFilter[] filters)`
    `static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject>` | `loadFromCache(java.lang.String entityName, java.lang.String selectProperties, kd.bos.orm.query.QFilter[] filters, java.lang.String orderby)`
    `static void` | `loadRefence(java.lang.Object[] dataEntitys, kd.bos.dataentity.metadata.IDataEntityType type)`
    `static kd.bos.dataentity.entity.DynamicObject` | `loadSingle(java.lang.Object pk, kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type)`
    `static kd.bos.dataentity.entity.DynamicObject` | `loadSingle(java.lang.Object pk, java.lang.String entityName)`
    `static kd.bos.dataentity.entity.DynamicObject` | `loadSingle(java.lang.Object pk, java.lang.String entityName, java.lang.String selectProperties)`
    `static kd.bos.dataentity.entity.DynamicObject` | `loadSingle(java.lang.String entityName, java.lang.String selectProperties, kd.bos.orm.query.QFilter[] filters)`
    `static kd.bos.dataentity.entity.DynamicObject` | `loadSingleFromCache(java.lang.Object pk, kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type)`
    `static kd.bos.dataentity.entity.DynamicObject` | `loadSingleFromCache(java.lang.Object pk, java.lang.String entityName)`
    `static kd.bos.dataentity.entity.DynamicObject` | `loadSingleFromCache(java.lang.Object pk, java.lang.String entityName, java.lang.String selectProperties)`
    `static kd.bos.dataentity.entity.DynamicObject` | `loadSingleFromCache(java.lang.String entityName, kd.bos.orm.query.QFilter[] filters)`
    `static kd.bos.dataentity.entity.DynamicObject` | `loadSingleFromCache(java.lang.String entityName, java.lang.String selectProperties, kd.bos.orm.query.QFilter[] filters)`
    `static kd.bos.dataentity.entity.DynamicObject` | `newDynamicObject(java.lang.String entityName)`
    `static void` | `removeCache(kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type)`
    `static java.lang.Object[]` | `save(kd.bos.dataentity.metadata.IDataEntityType type, java.lang.Object[] dataEntities)` 已过时。

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

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

    - #### BusinessDataServiceHelper

          public BusinessDataServiceHelper()

  - ### 方法详细资料

    - #### newDynamicObject

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject newDynamicObject(java.lang.String entityName)

      参数:
        `entityName` - 实体标识
      返回:
        动态实体实例

    - #### loadSingle

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject loadSingle(java.lang.Object pk,
                                                                                     kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type)

      参数:
        `pk` - 主键
        `type` - 实体类型
      返回:
        动态实体实例

    - #### loadSingle

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject loadSingle(java.lang.Object pk,
                                                                                     java.lang.String entityName)

      参数:
        `pk` - 主键
        `entityName` - 实体标识
      返回:
        动态实体实例

    - #### loadSingle

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject loadSingle(java.lang.Object pk,
                                                                                     java.lang.String entityName,
                                                                                     java.lang.String selectProperties)

      参数:
        `pk` - 主键
        `entityName` - 实体标识
        `selectProperties` - 选择的字段
      返回:
        动态实体实例

    - #### loadSingle

          public static kd.bos.dataentity.entity.DynamicObject loadSingle(java.lang.String entityName,
                                                                          java.lang.String selectProperties,
                                                                          kd.bos.orm.query.QFilter[] filters)

      参数:
        `entityName` - 实体标识
        `selectProperties` - 选择的字段
        `filters` - 查询条件
      返回:
        满足条件的第一个对象

    - #### loadSingleFromCache

          public static kd.bos.dataentity.entity.DynamicObject loadSingleFromCache(java.lang.Object pk,
                                                                                   java.lang.String entityName)

      参数:
        `pk` - PK
        `entityName` - 实体标识
      返回:
        缓存对象

    - #### loadSingleFromCache

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject loadSingleFromCache(java.lang.Object pk,
                                                                                              java.lang.String entityName,
                                                                                              java.lang.String selectProperties)

      参数:
        `pk` -
        `entityName` - 实体标识
        `selectProperties` - 选中的数据
      返回:

    - #### loadSingleFromCache

          public static kd.bos.dataentity.entity.DynamicObject loadSingleFromCache(java.lang.String entityName,
                                                                                   kd.bos.orm.query.QFilter[] filters)

      参数:
        `entityName` - 实体标识
        `filters` - 查询条件
      返回:
        缓存对象

    - #### loadSingleFromCache

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject loadSingleFromCache(java.lang.String entityName,
                                                                                              java.lang.String selectProperties,
                                                                                              kd.bos.orm.query.QFilter[] filters)

      参数:
        `entityName` - 实体标识
        `selectProperties` - 属性列表
        `filters` - 查询条件
      返回:
        缓存对象

    - #### loadSingleFromCache

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject loadSingleFromCache(java.lang.Object pk,
                                                                                              kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type)

    - #### load

          @KSMethod
          public static java.lang.Object[] load(java.lang.Object[] pkArray,
                                                           kd.bos.dataentity.metadata.IDataEntityType type)

    - #### load

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject[] load(java.lang.Object[] pkArray,
                                                                                 kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type)

    - #### load

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject[] load(java.lang.String entityName,
                                                                                 java.lang.String selectProperties,
                                                                                 kd.bos.orm.query.QFilter[] filters)

    - #### load

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject[] load(java.lang.String entityName,
                                                                                 java.lang.String selectProperties,
                                                                                 kd.bos.orm.query.QFilter[] filters,
                                                                                 java.lang.String orderby)

    - #### load

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject[] load(java.lang.String entityName,
                                                                                 java.lang.String selectProperties,
                                                                                 kd.bos.orm.query.QFilter[] filters,
                                                                                 java.lang.String orderby,
                                                                                 int top)

    - #### load

          @KSMethod
          public static kd.bos.dataentity.entity.DynamicObject[] load(java.lang.String entityName,
                                                                                 java.lang.String selectProperties,
                                                                                 kd.bos.orm.query.QFilter[] filters,
                                                                                 java.lang.String orderby,
                                                                                 int pageIndex,
                                                                                 int pagesize)

    - #### loadFromCache

          @KSMethod
          public static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject> loadFromCache(java.lang.Object[] pkArray,
                                                                                                                        kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type)

    - #### loadFromCache

          public static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject> loadFromCache(java.lang.Object[] pkArray,
                                                                                                             java.lang.String entityName)

      参数:
        `pk` - PK[]
        `entityName` - 实体标识
      返回:
        缓存对象Map

    - #### loadFromCache

          @KSMethod
          public static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject> loadFromCache(java.lang.String entityName,
                                                                                                                        java.lang.String selectProperties,
                                                                                                                        kd.bos.orm.query.QFilter[] filters)

      参数:
        `entityName` -
        `selectProperties` -
        `filters` -
      返回:

    - #### loadFromCache

          @KSMethod
          public static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject> loadFromCache(java.lang.String entityName,
                                                                                                                        java.lang.String selectProperties,
                                                                                                                        kd.bos.orm.query.QFilter[] filters,
                                                                                                                        java.lang.String orderby)

      参数:
        `entityName` - 实体标识
        `selectProperties` - 指定属性
        `filters` - 条件
        `orderby` - 排序方式
      返回:

    - #### loadFromCache

          public static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject> loadFromCache(java.lang.String entityName,
                                                                                                             kd.bos.orm.query.QFilter[] filters)

      参数:
        `entityName` - 实体标识
        `filters` - 查询条件
      返回:
        对象数组

    - #### loadFromCache

          @KSMethod
          public static java.util.Map<java.lang.Object,kd.bos.dataentity.entity.DynamicObject> loadFromCache(kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type,
                                                                                                                        kd.bos.orm.query.QFilter[] filters)

    - #### removeCache

          public static void removeCache(kd.bos.dataentity.metadata.dynamicobject.DynamicObjectType type)

    - #### loadRefence

          @KSMethod
          public static void loadRefence(java.lang.Object[] dataEntitys,
                                                    kd.bos.dataentity.metadata.IDataEntityType type)

    - #### delete

          @Deprecated
          public static void delete(kd.bos.dataentity.metadata.IDataEntityType type,
                                                 java.lang.Object[] pks)

      已过时。
      参数:
        `type` -
        `pks` -

    - #### save

          @Deprecated
          public static java.lang.Object[] save(kd.bos.dataentity.metadata.IDataEntityType type,
                                                             java.lang.Object[] dataEntities)

      已过时。
      参数:
        `type` - 实体类型
        `dataEntities` -
      返回: