public abstract class AbstractHerdDao extends BaseJpaDaoImpl
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractHerdDao.AggregateFunction
Represents aggregate function.
|
| Modifier and Type | Field and Description |
|---|---|
protected static List<javax.persistence.metamodel.SingularAttribute<BusinessObjectDataEntity,String>> |
BUSINESS_OBJECT_DATA_PARTITIONS |
protected static List<javax.persistence.metamodel.SingularAttribute<BusinessObjectDataEntity,String>> |
BUSINESS_OBJECT_DATA_SUBPARTITIONS |
protected ConfigurationHelper |
configurationHelper |
static String |
DEFAULT_SINGLE_DAY_DATE_MASK
A default date mask for a single day formatted as yyyy-MM-dd.
|
static int |
MAX_PARTITION_FILTERS_PER_REQUEST |
entityManager| Constructor and Description |
|---|
AbstractHerdDao() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.persistence.criteria.Subquery<Integer> |
getMaximumBusinessObjectDataVersionSubQuery(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.CriteriaQuery<?> criteria,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity,
javax.persistence.criteria.From<?,BusinessObjectFormatEntity> businessObjectFormatEntity,
String businessObjectDataStatus,
List<String> storageNames,
String storagePlatformType,
String excludedStoragePlatformType,
boolean selectOnlyAvailableStorageUnits)
TODO This method may be bdata specific.
|
protected javax.persistence.criteria.Predicate |
getQueryRestriction(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity,
javax.persistence.criteria.From<?,BusinessObjectFormatEntity> businessObjectFormatEntity,
javax.persistence.criteria.From<?,FileTypeEntity> fileTypeEntity,
javax.persistence.criteria.From<?,BusinessObjectDefinitionEntity> businessObjectDefinitionEntity,
BusinessObjectDataKey businessObjectDataKey)
TODO This method may be bdata specific.
|
protected javax.persistence.criteria.Predicate |
getQueryRestriction(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectFormatEntity> businessObjectFormatEntity,
javax.persistence.criteria.From<?,FileTypeEntity> fileTypeEntity,
javax.persistence.criteria.From<?,BusinessObjectDefinitionEntity> businessObjectDefinitionEntity,
BusinessObjectFormatKey businessObjectFormatKey,
boolean ignoreBusinessObjectFormatVersion)
TODO This method may be bformat specific.
|
protected javax.persistence.criteria.Predicate |
getQueryRestriction(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectFormatEntity> businessObjectFormatEntity,
javax.persistence.criteria.From<?,FileTypeEntity> fileTypeEntity,
javax.persistence.criteria.From<?,BusinessObjectDefinitionEntity> businessObjectDefinitionEntity,
javax.persistence.criteria.From<?,NamespaceEntity> namespaceEntity,
BusinessObjectFormatKey businessObjectFormatKey,
boolean ignoreBusinessObjectFormatVersion)
Builds a query restriction predicate for the specified business object format entity as per business object format key values.
|
protected javax.persistence.criteria.Predicate |
getQueryRestrictionOnBusinessObjectDataVersionAndStatus(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity,
javax.persistence.criteria.From<?,BusinessObjectDataStatusEntity> businessObjectDataStatusEntity,
Integer businessObjectDataVersion,
String businessObjectDataStatus)
TODO This method may be bdata specific.
|
protected javax.persistence.criteria.Predicate |
getQueryRestrictionOnPartitionValues(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity,
BusinessObjectDataKey businessObjectDataKey)
TODO This method may be bdata specific.
|
protected javax.persistence.criteria.Predicate |
getQueryRestrictionOnPartitionValues(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> subBusinessObjectDataEntity,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> mainBusinessObjectDataEntity)
TODO This method may be bdata specific.
|
protected javax.persistence.criteria.Predicate |
getQueryRestrictionOnPartitionValues(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity,
List<List<String>> partitionFilters)
TODO This method may be bdata specific.
|
protected javax.persistence.criteria.Predicate |
getQueryRestrictionOnPartitionValues(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity,
String primaryPartitionValue,
List<String> subPartitionValues)
TODO This method may be bdata specific.
|
protected javax.persistence.criteria.Predicate |
getQueryRestrictionOnStorage(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,StorageEntity> storageEntity,
javax.persistence.criteria.From<?,StoragePlatformEntity> storagePlatformEntity,
List<String> storageNames,
String storagePlatformType,
String excludedStoragePlatformType)
Builds a query restriction predicate for the storage.
|
<T> T |
save(T entity)
Saves an entity.
|
delete, detach, executeSingleResultQuery, findAll, findById, findByNamedProperties, findUniqueByNamedProperties, getCurrentTimestamp, getEntityManager, getPredicateForInClause, query, queryByNamedParams, saveAndRefreshpublic static final String DEFAULT_SINGLE_DAY_DATE_MASK
public static final int MAX_PARTITION_FILTERS_PER_REQUEST
protected static final List<javax.persistence.metamodel.SingularAttribute<BusinessObjectDataEntity,String>> BUSINESS_OBJECT_DATA_PARTITIONS
protected static final List<javax.persistence.metamodel.SingularAttribute<BusinessObjectDataEntity,String>> BUSINESS_OBJECT_DATA_SUBPARTITIONS
@Autowired protected ConfigurationHelper configurationHelper
protected javax.persistence.criteria.Predicate getQueryRestriction(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity,
javax.persistence.criteria.From<?,BusinessObjectFormatEntity> businessObjectFormatEntity,
javax.persistence.criteria.From<?,FileTypeEntity> fileTypeEntity,
javax.persistence.criteria.From<?,BusinessObjectDefinitionEntity> businessObjectDefinitionEntity,
BusinessObjectDataKey businessObjectDataKey)
builder - the criteria builderbusinessObjectDataEntity - the business object data entity that appears in the from clausebusinessObjectFormatEntity - the business object format entity that appears in the from clausefileTypeEntity - the file type entity that appears in the from clausebusinessObjectDefinitionEntity - the business object definition entity that appears in the from clausebusinessObjectDataKey - the business object data keyprotected javax.persistence.criteria.Predicate getQueryRestrictionOnPartitionValues(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity,
BusinessObjectDataKey businessObjectDataKey)
builder - the criteria builderbusinessObjectDataEntity - the business object data entity that appears in the from clausebusinessObjectDataKey - the business object data keyprotected javax.persistence.criteria.Predicate getQueryRestrictionOnPartitionValues(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity,
String primaryPartitionValue,
List<String> subPartitionValues)
builder - the criteria builderbusinessObjectDataEntity - the business object data entity that appears in the from clauseprimaryPartitionValue - the primary partition value of the business object datasubPartitionValues - the list of sub-partition values for the business object dataprotected javax.persistence.criteria.Predicate getQueryRestriction(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectFormatEntity> businessObjectFormatEntity,
javax.persistence.criteria.From<?,FileTypeEntity> fileTypeEntity,
javax.persistence.criteria.From<?,BusinessObjectDefinitionEntity> businessObjectDefinitionEntity,
BusinessObjectFormatKey businessObjectFormatKey,
boolean ignoreBusinessObjectFormatVersion)
builder - the criteria builderbusinessObjectFormatEntity - the business object format entity that appears in the from clausefileTypeEntity - the file type entity that appears in the from clausebusinessObjectDefinitionEntity - the business object definition entity that appears in the from clausebusinessObjectFormatKey - the business object format keyignoreBusinessObjectFormatVersion - specifies whether to ignore the business object format version when building the predicateprotected javax.persistence.criteria.Predicate getQueryRestriction(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectFormatEntity> businessObjectFormatEntity,
javax.persistence.criteria.From<?,FileTypeEntity> fileTypeEntity,
javax.persistence.criteria.From<?,BusinessObjectDefinitionEntity> businessObjectDefinitionEntity,
javax.persistence.criteria.From<?,NamespaceEntity> namespaceEntity,
BusinessObjectFormatKey businessObjectFormatKey,
boolean ignoreBusinessObjectFormatVersion)
builder - the criteria builderbusinessObjectFormatEntity - the business object format entity that appears in the from clausefileTypeEntity - the file type entity that appears in the from clausebusinessObjectDefinitionEntity - the business object definition entity that appears in the from clausenamespaceEntity - the namespace entity that appears in the from clausebusinessObjectFormatKey - the business object format keyignoreBusinessObjectFormatVersion - specifies whether to ignore the business object format version when building the predicateprotected javax.persistence.criteria.Predicate getQueryRestrictionOnPartitionValues(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity,
List<List<String>> partitionFilters)
builder - the criteria builderbusinessObjectDataEntity - the business object data entity that appears in the from clausepartitionFilters - 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.protected javax.persistence.criteria.Predicate getQueryRestrictionOnPartitionValues(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> subBusinessObjectDataEntity,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> mainBusinessObjectDataEntity)
builder - the criteria buildersubBusinessObjectDataEntity - the sub-query business object data entity that appears in the from clausemainBusinessObjectDataEntity - the main query business object data entity that appears in the from clauseprotected javax.persistence.criteria.Predicate getQueryRestrictionOnBusinessObjectDataVersionAndStatus(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity,
javax.persistence.criteria.From<?,BusinessObjectDataStatusEntity> businessObjectDataStatusEntity,
Integer businessObjectDataVersion,
String businessObjectDataStatus)
builder - the criteria builderbusinessObjectDataEntity - the business object data entity that appears in the from clausebusinessObjectDataStatusEntity - the business object data status entity that appears in the from clausebusinessObjectDataVersion - the business object data versionbusinessObjectDataStatus - the business object data status. This parameter is ignored when the business object data version is specified.protected javax.persistence.criteria.Predicate getQueryRestrictionOnStorage(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,StorageEntity> storageEntity,
javax.persistence.criteria.From<?,StoragePlatformEntity> storagePlatformEntity,
List<String> storageNames,
String storagePlatformType,
String excludedStoragePlatformType)
builder - the criteria builderstorageEntity - the storage entity that appears in the from clausestoragePlatformEntity - the storage platform entity that appears in the from clausestorageNames - the list of storage names where the business object data storage units should be looked for (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 specifiedprotected javax.persistence.criteria.Subquery<Integer> getMaximumBusinessObjectDataVersionSubQuery(javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.CriteriaQuery<?> criteria, javax.persistence.criteria.From<?,BusinessObjectDataEntity> businessObjectDataEntity, javax.persistence.criteria.From<?,BusinessObjectFormatEntity> businessObjectFormatEntity, String businessObjectDataStatus, List<String> storageNames, String storagePlatformType, String excludedStoragePlatformType, boolean selectOnlyAvailableStorageUnits)
builder - the criteria buildercriteria - the criteria querybusinessObjectDataEntity - the business object data entity that appears in the from clause of the main querybusinessObjectFormatEntity - the business object format entity that appears in the from clause of the main querybusinessObjectDataStatus - the business object data statusstorageNames - the list of storage names where the business object data storage units should be looked for (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 specifiedselectOnlyAvailableStorageUnits - specifies if only available storage units will be selected or any storage units regardless of their statuspublic <T> T save(T entity)
save in interface BaseJpaDaosave in class BaseJpaDaoImplT - the type of entity.entity - the entity to save.Copyright © 2019. All rights reserved.