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.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> businessObjectFormatEntityFrom,
BusinessObjectDefinitionEntity businessObjectDefinitionEntity,
String businessObjectFormatUsage,
FileTypeEntity fileTypeEntity,
Integer businessObjectFormatVersion)
Builds a query restriction predicate for the specified business object format entity as per business object format alternate key values.
|
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,
Integer businessObjectDataVersion,
BusinessObjectDataStatusEntity businessObjectDataStatusEntity)
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> storageEntityFrom,
List<StorageEntity> storageEntities,
StoragePlatformEntity storagePlatformEntity,
StoragePlatformEntity excludedStoragePlatformEntity)
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 getQueryRestriction(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,BusinessObjectFormatEntity> businessObjectFormatEntityFrom,
BusinessObjectDefinitionEntity businessObjectDefinitionEntity,
String businessObjectFormatUsage,
FileTypeEntity fileTypeEntity,
Integer businessObjectFormatVersion)
builder - the criteria builderbusinessObjectFormatEntityFrom - the business object format entity that appears in the from clause of the main querybusinessObjectDefinitionEntity - the business object definition entitybusinessObjectFormatUsage - the business object format usage (case-insensitive)fileTypeEntity - the file type entitybusinessObjectFormatVersion - the optional business object format versionprotected 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,
Integer businessObjectDataVersion,
BusinessObjectDataStatusEntity businessObjectDataStatusEntity)
builder - the criteria builderbusinessObjectDataEntity - the business object data entity that appears in the from clausebusinessObjectDataVersion - the business object data versionbusinessObjectDataStatusEntity - the optional business object data status entity. This parameter is ignored when the business object data version is
specifiedprotected javax.persistence.criteria.Predicate getQueryRestrictionOnStorage(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.From<?,StorageEntity> storageEntityFrom,
List<StorageEntity> storageEntities,
StoragePlatformEntity storagePlatformEntity,
StoragePlatformEntity excludedStoragePlatformEntity)
builder - the criteria builderstorageEntityFrom - the storage entity that appears in the from clausestorageEntities - the optional list of storage entities where business object data storage units should be looked forstoragePlatformEntity - the optional storage platform entity, e.g. S3 for Hive DDL. It is ignored when the list of storage entities is not emptyexcludedStoragePlatformEntity - the optional storage platform entity to be excluded from search. It is ignored when the list of storage entities is
not empty or the storage platform entity is specifiedpublic <T> T save(T entity)
save in interface BaseJpaDaosave in class BaseJpaDaoImplT - the type of entity.entity - the entity to save.Copyright © 2021. All rights reserved.