@Repository public class BusinessObjectDataDaoImpl extends AbstractHerdDao implements BusinessObjectDataDao
AbstractHerdDao.AggregateFunctionBUSINESS_OBJECT_DATA_PARTITIONS, BUSINESS_OBJECT_DATA_SUBPARTITIONS, configurationHelper, DEFAULT_SINGLE_DAY_DATE_MASK, MAX_PARTITION_FILTERS_PER_REQUESTentityManager| Constructor and Description |
|---|
BusinessObjectDataDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
BusinessObjectDataEntity |
getBusinessObjectDataByAltKey(BusinessObjectDataKey businessObjectDataKey)
Retrieves business object data by it's key.
|
BusinessObjectDataEntity |
getBusinessObjectDataByAltKeyAndStatus(BusinessObjectDataKey businessObjectDataKey,
String businessObjectDataStatus)
Retrieves business object data by it's key.
|
Long |
getBusinessObjectDataCount(BusinessObjectFormatKey businessObjectFormatKey)
Returns a number of business object data instances registered with this business object format.
|
List<BusinessObjectDataEntity> |
getBusinessObjectDataEntities(BusinessObjectDataKey businessObjectDataKey)
Retrieves business object data versions that match the specified business object data key with potentially missing business object format and/or data
version values.
|
List<BusinessObjectDataEntity> |
getBusinessObjectDataEntities(BusinessObjectFormatKey businessObjectFormatKey,
List<List<String>> partitionFilters,
Integer businessObjectDataVersion,
String businessObjectDataStatus,
String storageName)
Retrieves a list of business object data entities per specified parameters.
|
List<BusinessObjectDataEntity> |
getBusinessObjectDataEntitiesByPartitionValue(String partitionValue)
Retrieves a list of business object data by their partition value.
|
Map<BusinessObjectDataEntity,StoragePolicyEntity> |
getBusinessObjectDataEntitiesMatchingStoragePolicies(StoragePolicyPriorityLevel storagePolicyPriorityLevel,
List<String> supportedBusinessObjectDataStatuses,
int startPosition,
int maxResult)
Retrieves a map of business object data entities to their corresponding storage policy entities, where the business object data status is supported by
the storage policy feature and the business object data alternate key values match storage policy's filter and transition (not taking into account
storage policy rules).
|
List<BusinessObjectDataEntity> |
getBusinessObjectDataFromStorageOlderThan(String storageName,
int thresholdMinutes,
List<String> businessObjectDataStatusesToIgnore)
Selects business object data having storage files associated with the specified storage and with status not listed as ignored.
|
String |
getBusinessObjectDataMaxPartitionValue(int partitionColumnPosition,
BusinessObjectFormatKey businessObjectFormatKey,
Integer businessObjectDataVersion,
String businessObjectDataStatus,
List<String> storageNames,
String storagePlatformType,
String excludedStoragePlatformType,
String upperBoundPartitionValue,
String lowerBoundPartitionValue)
Retrieves a maximum available partition value per specified parameters.
|
Integer |
getBusinessObjectDataMaxVersion(BusinessObjectDataKey businessObjectDataKey)
Gets a maximum available version of the specified business object data.
|
String |
getBusinessObjectDataMinPartitionValue(int partitionColumnPosition,
BusinessObjectFormatKey businessObjectFormatKey,
Integer businessObjectDataVersion,
String businessObjectDataStatus,
List<String> storageNames,
String storagePlatformType,
String excludedStoragePlatformType)
Retrieves a minimum available partition value per specified parameters.
|
List<BusinessObjectData> |
searchBusinessObjectData(List<BusinessObjectDataSearchFilter> filters)
Retrieves a list of business object data by list of filters
|
getMaximumBusinessObjectDataVersionSubQuery, getQueryRestriction, getQueryRestriction, getQueryRestrictionOnBusinessObjectDataVersionAndStatus, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnPartitionValues, getQueryRestrictionOnStorage, savedelete, detach, executeSingleResultQuery, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, getPredicateForInClause, query, queryByNamedParams, saveAndRefreshclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, detach, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, query, queryByNamedParams, save, saveAndRefreshpublic BusinessObjectDataEntity getBusinessObjectDataByAltKey(BusinessObjectDataKey businessObjectDataKey)
BusinessObjectDataDaogetBusinessObjectDataByAltKey in interface BusinessObjectDataDaobusinessObjectDataKey - the business object data keypublic BusinessObjectDataEntity getBusinessObjectDataByAltKeyAndStatus(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataStatus)
BusinessObjectDataDaogetBusinessObjectDataByAltKeyAndStatus in interface BusinessObjectDataDaobusinessObjectDataKey - the business object data keybusinessObjectDataStatus - the business object data status. This parameter is ignored when the business object data version is specified.public Integer getBusinessObjectDataMaxVersion(BusinessObjectDataKey businessObjectDataKey)
BusinessObjectDataDaogetBusinessObjectDataMaxVersion in interface BusinessObjectDataDaobusinessObjectDataKey - the business object data keypublic String getBusinessObjectDataMaxPartitionValue(int partitionColumnPosition, BusinessObjectFormatKey businessObjectFormatKey, Integer businessObjectDataVersion, String businessObjectDataStatus, List<String> storageNames, String storagePlatformType, String excludedStoragePlatformType, String upperBoundPartitionValue, String lowerBoundPartitionValue)
BusinessObjectDataDaogetBusinessObjectDataMaxPartitionValue in interface BusinessObjectDataDaopartitionColumnPosition - the partition column position (1-based numbering)businessObjectFormatKey - the business object format key (case-insensitive). If a business object format version isn't specified, the latest
available format version for each partition value will be used.businessObjectDataVersion - the business object data version. If a business object data version isn't specified, the latest data version based on
the specified business object data status will be used for each partition value.businessObjectDataStatus - the business object data status. This parameter is ignored when the business object data version is specified.storageNames - the optional list of storage names (case-insensitive)storagePlatformType - the optional storage platform type, e.g. S3 for Hive DDL. It is ignored when the list of storages is not emptyexcludedStoragePlatformType - the optional storage platform type to be excluded from search. It is ignored when the list of storages is not empty or
the storage platform type is specifiedupperBoundPartitionValue - the optional inclusive upper bound for the maximum available partition valuelowerBoundPartitionValue - the optional inclusive lower bound for the maximum available partition valuepublic String getBusinessObjectDataMinPartitionValue(int partitionColumnPosition, BusinessObjectFormatKey businessObjectFormatKey, Integer businessObjectDataVersion, String businessObjectDataStatus, List<String> storageNames, String storagePlatformType, String excludedStoragePlatformType)
BusinessObjectDataDaogetBusinessObjectDataMinPartitionValue in interface BusinessObjectDataDaopartitionColumnPosition - the partition column position (1-based numbering)businessObjectFormatKey - the business object format key (case-insensitive). If a business object format version isn't specified, the latest
available format version for each partition value will be used.businessObjectDataVersion - the business object data version. If a business object data version isn't specified, the latest data version based on
the specified business object data status will be used for each partition value.businessObjectDataStatus - the business object data status. This parameter is ignored when the business object data version is specified.storageNames - the optional list of storage names (case-insensitive)storagePlatformType - the optional storage platform type, e.g. S3 for Hive DDL. It is ignored when the list of storages is not emptyexcludedStoragePlatformType - the optional storage platform type to be excluded from search. It is ignored when the list of storages is not empty or
the storage platform type is specifiedpublic Long getBusinessObjectDataCount(BusinessObjectFormatKey businessObjectFormatKey)
BusinessObjectDataDaogetBusinessObjectDataCount in interface BusinessObjectDataDaobusinessObjectFormatKey - the business object format keypublic List<BusinessObjectDataEntity> getBusinessObjectDataEntities(BusinessObjectDataKey businessObjectDataKey)
BusinessObjectDataDaogetBusinessObjectDataEntities in interface BusinessObjectDataDaobusinessObjectDataKey - the business object data key with potentially missing business object format and/or data version valuespublic List<BusinessObjectDataEntity> getBusinessObjectDataEntities(BusinessObjectFormatKey businessObjectFormatKey, List<List<String>> partitionFilters, Integer businessObjectDataVersion, String businessObjectDataStatus, String storageName)
BusinessObjectDataDaogetBusinessObjectDataEntities in interface BusinessObjectDataDaobusinessObjectFormatKey - the business object format key (case-insensitive). If a business object format version isn't specified, the latest
available format version for each partition value will be used.partitionFilters - the list of partition filter to be used to select business object data instances. Each partition filter contains a list of
primary and sub-partition values in the right order up to the maximum partition levels allowed by business object data registration - with partition
values for the relative partitions not to be used for selection passed as nulls.businessObjectDataVersion - the business object data version. If a business object data version isn't specified, the latest data version based on
the specified business object data status is returned.businessObjectDataStatus - the business object data status. This parameter is ignored when the business object data version is specified. When
business object data version and business object data status both are not specified, the latest data version for each set of partition values will be
used regardless of the status.storageName - the name of the storage where the business object data storage unit is located (case-insensitive)public List<BusinessObjectDataEntity> getBusinessObjectDataFromStorageOlderThan(String storageName, int thresholdMinutes, List<String> businessObjectDataStatusesToIgnore)
BusinessObjectDataDaogetBusinessObjectDataFromStorageOlderThan in interface BusinessObjectDataDaostorageName - the storage namethresholdMinutes - the expiration time in minutesbusinessObjectDataStatusesToIgnore - the list of business object data statuses to ignorepublic Map<BusinessObjectDataEntity,StoragePolicyEntity> getBusinessObjectDataEntitiesMatchingStoragePolicies(StoragePolicyPriorityLevel storagePolicyPriorityLevel, List<String> supportedBusinessObjectDataStatuses, int startPosition, int maxResult)
BusinessObjectDataDaogetBusinessObjectDataEntitiesMatchingStoragePolicies in interface BusinessObjectDataDaostoragePolicyPriorityLevel - the storage policy priority levelsupportedBusinessObjectDataStatuses - the list of business object data statuses that storage policies apply tostartPosition - the position of the first result, numbered from 0maxResult - the maximum number of results to retrievepublic List<BusinessObjectDataEntity> getBusinessObjectDataEntitiesByPartitionValue(String partitionValue)
BusinessObjectDataDaogetBusinessObjectDataEntitiesByPartitionValue in interface BusinessObjectDataDaopartitionValue - The partition valuepublic List<BusinessObjectData> searchBusinessObjectData(List<BusinessObjectDataSearchFilter> filters)
BusinessObjectDataDaosearchBusinessObjectData in interface BusinessObjectDataDaofilters - search filtersCopyright © 2017. All rights reserved.