Flexberry ORM 8.0.0-beta01
Класс ICSSoft.STORMNET.Business.Utils

Набор служебной логики для сервиса данных. Подробнее...

Открытые статические члены

static bool IsInternalBaseType (object value)
 проверить - системный ли тип. Подробнее...
 
static int CountMasterKeysInSelect (STORMDO.Business.StorageStructForView storStruct)
 Вычислить количество мастеровых ключей в запросе к хранилищу. Подробнее...
 
static string ConvertSimpleValueString (object value)
 Привести к строке. Подробнее...
 
static ObjectStringDataView[] ProcessingRowSet2StringedView (object[][] resValue, System.Type[] dataObjectType, int PropCount, char separator, LoadingCustomizationStruct customizationStruct, STORMDO.Business.StorageStructForView[] StorageStruct, IDataService dataService, System.Collections.SortedList TypesByKeys, ref object[] prevState, ISecurityManager securityManager)
 
static ObjectStringDataView[] ProcessingRowSet2StringedView (object[][] resValue, bool forReadValues, Type[] dataObjectType, int propCount, char separator, LoadingCustomizationStruct customizationStruct, StorageStructForView[] storageStruct, IDataService dataService, SortedList typesByKeys, ref object[] prevState, DataObjectCache dataObjectCache, ISecurityManager securityManager)
 Преобразование RowSet к ObjectStringDataView. Подробнее...
 
static void GetMasterObjectStructs (object[] keysarr, ref int keyindex, int index, StorageStructForView.PropSource source, ArrayList res, string nameSpace)
 Построить структуру мастеров. Подробнее...
 
static void CreateMastersStruct (ICSSoft.STORMNET.DataObject dataObject, object[] keysarr, ref int keyindex, int index, ICSSoft.STORMNET.Business.StorageStructForView.PropSource source, System.Collections.SortedList sourceToDataObjectList, System.Collections.SortedList TypesByKeys, DataObjectCache dataObjectCache)
 
static void ProcessingRowsetDataRef (object[][] value, Type[] dataObjectType, StorageStructForView[] storageStruct, LoadingCustomizationStruct customizationStruct, DataObject[] res, IDataService dataService, SortedList typesByKeys, bool сlearDataObjects, DataObjectCache dataObjectCache, ISecurityManager securityManager, IDbConnection connection=null, IDbTransaction transaction=null)
 Преобразовать рекордсета в объекты. Подробнее...
 
static ICSSoft.STORMNET.DataObject[] ProcessingRowsetData (object[][] value, System.Type[] dataObjectType, STORMDO.Business.StorageStructForView[] StorageStruct, LoadingCustomizationStruct customizationStruct, IDataService dataService, System.Collections.SortedList TypesByKeys, DataObjectCache dataObjectCache, ISecurityManager securityManager, IDbConnection connection=null, IDbTransaction transaction=null)
 Преобразовать рекордсета в объекты. Подробнее...
 
static void getDetailsObjects (IDataService dataService, STORMDO.DataObject dobject, out STORMDO.DataObject[] readedDetailObjects, out STORMDO.DataObject[] mastersObjects, out STORMDO.View[] unreadedDetailsViewsForDetailPath)
 Получить детейловые объекты. Подробнее...
 
static void UpdateInternalDataInObjects (STORMDO.DataObject dobj, bool UpLevel, DataObjectCache dataObjectCache)
 Обновить внутренние данные объекта. Подробнее...
 
static STORMDO.View[] getUnreadedDetailsArrayReadView (IDataService dataService, System.Type dotype, string path, Collections.NameObjectCollection MasterTypes)
 
static bool ArraysEqual< T > (T[] a1, T[] a2)
 Сравнение двух массивов. Подробнее...
 
static void FillRowSetToDataObject (DataObject dobject, object[] values, StorageStructForView storageStruct, LoadingCustomizationStruct customizationStruct, System.Collections.SortedList typesByKeys, AdvansedColumn[] advCols, DataObjectCache dataObjectCache, ISecurityManager securityManager)
 Заполнить объект данных. Подробнее...
 

Подробное описание

Набор служебной логики для сервиса данных.

Методы

◆ ArraysEqual< T >()

static bool ICSSoft.STORMNET.Business.Utils.ArraysEqual< T > ( T[]  a1,
T[]  a2 
)
inlinestatic

Сравнение двух массивов.

Параметры шаблона
TТип элементов массива.
Аргументы
a1Массив 1.
a2Массив 2.
Возвращает
Равны или нет.

◆ ConvertSimpleValueString()

static string ICSSoft.STORMNET.Business.Utils.ConvertSimpleValueString ( object  value)
inlinestatic

Привести к строке.

Аргументы
value
Возвращает

◆ CountMasterKeysInSelect()

static int ICSSoft.STORMNET.Business.Utils.CountMasterKeysInSelect ( STORMDO.Business.StorageStructForView  storStruct)
inlinestatic

Вычислить количество мастеровых ключей в запросе к хранилищу.

Аргументы
storStructSTORMDO.Business.StorageStructForView.
Возвращает

◆ CreateMastersStruct()

static void ICSSoft.STORMNET.Business.Utils.CreateMastersStruct ( ICSSoft.STORMNET.DataObject  dataObject,
object[]  keysarr,
ref int  keyindex,
int  index,
ICSSoft.STORMNET.Business.StorageStructForView.PropSource  source,
System.Collections.SortedList  sourceToDataObjectList,
System.Collections.SortedList  TypesByKeys,
DataObjectCache  dataObjectCache 
)
inlinestatic

Аргументы
dataObject
keysarr
keyindex
index
source
sourceToDataObjectList
TypesByKeys

◆ FillRowSetToDataObject()

static void ICSSoft.STORMNET.Business.Utils.FillRowSetToDataObject ( DataObject  dobject,
object[]  values,
StorageStructForView  storageStruct,
LoadingCustomizationStruct  customizationStruct,
System.Collections.SortedList  typesByKeys,
AdvansedColumn[]  advCols,
DataObjectCache  dataObjectCache,
ISecurityManager  securityManager 
)
inlinestatic

Заполнить объект данных.

Аргументы
dobjectОбъект данных.
valuesЗначения для заполнения.
storageStructМетаданные структуры хранения.
customizationStructНастройка выборки данных.
typesByKeysСлужебная структура, увязывающая типы мастеров и их ключи.
advColsДополнительные колонки.
dataObjectCacheКэш объектов данных.
securityManagerМенеджер полномочий.

◆ getDetailsObjects()

static void ICSSoft.STORMNET.Business.Utils.getDetailsObjects ( IDataService  dataService,
STORMDO.DataObject  dobject,
out STORMDO.DataObject[]  readedDetailObjects,
out STORMDO.DataObject[]  mastersObjects,
out STORMDO.View[]  unreadedDetailsViewsForDetailPath 
)
inlinestatic

Получить детейловые объекты.

Аргументы
dataService
dobject
readedDetailObjects
unreadedDetailsViewsForDetailPath

◆ GetMasterObjectStructs()

static void ICSSoft.STORMNET.Business.Utils.GetMasterObjectStructs ( object[]  keysarr,
ref int  keyindex,
int  index,
StorageStructForView.PropSource  source,
ArrayList  res,
string  nameSpace 
)
inlinestatic

Построить структуру мастеров.

Аргументы
keysarrмассив ключей.
keyindexтекущий индекс.
indexиндекс вышестоящего источника.
sourceтекущий источник.
resдин.массив, куда складываем пезультат.
nameSpaceтекущий NameSpace.

◆ getUnreadedDetailsArrayReadView()

static STORMDO.View [] ICSSoft.STORMNET.Business.Utils.getUnreadedDetailsArrayReadView ( IDataService  dataService,
System.Type  dotype,
string  path,
Collections.NameObjectCollection  MasterTypes 
)
inlinestatic

Аргументы
dataService
dotype
path
MasterTypes
Возвращает

◆ IsInternalBaseType()

static bool ICSSoft.STORMNET.Business.Utils.IsInternalBaseType ( object  value)
inlinestatic

проверить - системный ли тип.

Аргументы
value
Возвращает

◆ ProcessingRowSet2StringedView()

static ObjectStringDataView [] ICSSoft.STORMNET.Business.Utils.ProcessingRowSet2StringedView ( object  resValue[][],
bool  forReadValues,
Type[]  dataObjectType,
int  propCount,
char  separator,
LoadingCustomizationStruct  customizationStruct,
StorageStructForView[]  storageStruct,
IDataService  dataService,
SortedList  typesByKeys,
ref object[]  prevState,
DataObjectCache  dataObjectCache,
ISecurityManager  securityManager 
)
inlinestatic

Преобразование RowSet к ObjectStringDataView.

Аргументы
resValueсами данные.
forReadValues
dataObjectTypeтипы объекта данных.
propCountколичество свойств.
separatorразделитель.
customizationStructструктура настройки выборки.
storageStructструктура хранилища.
dataServiceсервис данный, выполнивший запрос.
typesByKeys
prevStateПредыдущее состояние вычитки для порционного чтения.
dataObjectCacheкэш объектов данных.
securityManagerМенеджер полномочий.
Возвращает
ObjectStringDataView.

◆ ProcessingRowsetData()

static ICSSoft.STORMNET.DataObject [] ICSSoft.STORMNET.Business.Utils.ProcessingRowsetData ( object  value[][],
System.Type[]  dataObjectType,
STORMDO.Business.StorageStructForView[]  StorageStruct,
LoadingCustomizationStruct  customizationStruct,
IDataService  dataService,
System.Collections.SortedList  TypesByKeys,
DataObjectCache  dataObjectCache,
ISecurityManager  securityManager,
IDbConnection  connection = null,
IDbTransaction  transaction = null 
)
inlinestatic

Преобразовать рекордсета в объекты.

Аргументы
value
dataObjectType
StorageStruct
customizationStruct
dataService
TypesByKeys
dataObjectCacheКэш объектов данных.
securityManagerМенеджер полномочий.
connectionКоннекция, через которую желательно выполнять все вычитки объектов.
transactionТранзакция, через которую желательно выполнять все вычитки объектов.
Возвращает

◆ ProcessingRowsetDataRef()

static void ICSSoft.STORMNET.Business.Utils.ProcessingRowsetDataRef ( object  value[][],
Type[]  dataObjectType,
StorageStructForView[]  storageStruct,
LoadingCustomizationStruct  customizationStruct,
DataObject[]  res,
IDataService  dataService,
SortedList  typesByKeys,
bool  сlearDataObjects,
DataObjectCache  dataObjectCache,
ISecurityManager  securityManager,
IDbConnection  connection = null,
IDbTransaction  transaction = null 
)
inlinestatic

Преобразовать рекордсета в объекты.

Аргументы
valueЗначения.
dataObjectTypeТипы объектов.
storageStructСтруктуры выборки для типов.
customizationStructНастройка выборки.
resРезультат.
dataServiceСервис данных,которым читали.
typesByKeys
сlearDataObjectsОчищать ли существующие объекты.
dataObjectCacheКэш объектов данных.
securityManagerМенеджер полномочий.
connectionКоннекция, через которую желательно выполнять все вычитки объектов.
transactionТранзакция, через которую желательно выполнять все вычитки объектов.

◆ UpdateInternalDataInObjects()

static void ICSSoft.STORMNET.Business.Utils.UpdateInternalDataInObjects ( STORMDO.DataObject  dobj,
bool  UpLevel,
DataObjectCache  dataObjectCache 
)
inlinestatic

Обновить внутренние данные объекта.

Аргументы
dobjобъект.
UpLevelверхнего ли уровня.