Class JpaCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
java.lang.Object
com.broadleafcommerce.sandbox.provider.jpa.repository.nontrackable.JpaCustomizedChangeSummaryGroupRepository<D>
- All Implemented Interfaces:
com.broadleafcommerce.common.extension.DomainTypeAware,CustomizedChangeSummaryGroupRepository<D>
public class JpaCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
extends Object
implements CustomizedChangeSummaryGroupRepository<D>
- Author:
- Jeff Fischer
-
Constructor Summary
ConstructorsConstructorDescriptionJpaCustomizedChangeSummaryGroupRepository(com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.RSQLVisitorHolder<?> rsqlVisitorHolder) -
Method Summary
Modifier and TypeMethodDescriptionvoidarchiveChangeSummaryGroupsForSandbox(String sandboxId) Archives the group ofChangeSummaryfor the specified sandbox id.booleanbatchTransition(PromoteBatchFlushContext flushContext) Given aPromoteBatchFlushContextcontainingChangeSummaryGrouptransition information, update the state of the group, especially as it relates to transitionedChangeSummaryinstances.booleanbatchTransition(StateChangeOnlyBatchFlushContext flushContext) Given aStateChangeOnlyBatchFlushContextcontainingChangeSummaryGroupandChangeSummarystate change information, perform a batch update of the prescribed state.cleanupBatch(String startingId, boolean archive, List<ChangeStatusType> detectStatuses, List<ChangeState> detectStates, ChangeStatusType targetStatus, ChangeState targetState, List<ChangeStatusType> summaryDetectStatuses, List<ChangeState> summaryDetectStates, Object source) Check a bag of ChangeSummaryGroup entities for completion state.findChangeSummaryGroupByIdsCount(List<String> changeSummaryGroupIds, List<String> states, List<String> statuses, @NonNull String sandbox) Given a list ofChangeSummaryGroupids, find the count of groups that match the state requirements defined in the params.findChangeSummaryGroupsByIds(List<String> changeSummaryGroupIds) Find allChangeSummaryGroupinstances matching primarily a list of ids.findChangeSummaryGroupsByIds(List<String> changeSummaryGroupIds, @NonNull String sandbox, List<String> whereStates, List<String> whereStatuses) Find allChangeSummaryGroupinstances matching primarily a list of ids.findChangeSummaryGroupsByIds(List<String> changeSummaryGroupIds, @NonNull String sandbox, List<String> whereStates, List<String> whereStatuses, boolean vendorNarrowing, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allChangeSummaryGroupinstances matching primarily a list of ids.findChangeSummaryGroupsBySandbox(@NonNull String sandbox, @NonNull String state, List<String> status) Find allChangeSummaryGroupinstances matching primarily the sandbox.findChangeSummaryGroupsBySandbox(@NonNull String sandbox, @NonNull String state, List<String> status, boolean vendorNarrowing, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allChangeSummaryGroupinstances matching primarily the sandbox.protected JpaVendorNarrowingQueryCustomizerprotected booleanWhether or not vendor processing is enabled.readByIdAndArchivedNot(String id, boolean archived, boolean vendorNarrowing, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TakesChangeSummaryGroup.getArchived()into account when retrieving a group with the given ID.org.springframework.data.domain.Page<D>readPageByStateAndSandboxAndArchivedNot(@NonNull String state, @NonNull String sandbox, Boolean archived, cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable pageable) Retrieve a page of records filtered by state and sandboxorg.springframework.data.domain.Page<D>readPageByStateAndSandboxAndArchivedNot(@NonNull String state, @NonNull String sandbox, Boolean archived, cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable pageable, boolean vendorNarrowing, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve a page of records filtered by state and sandboxorg.springframework.data.domain.Page<D>readPageByStateAndSandboxAndAuthorAndArchivedNot(@NonNull String state, @NonNull String sandbox, @NonNull String author, Boolean archived, cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable pageable) Retrieve a page of records filtered by state, sandbox, and authororg.springframework.data.domain.Page<D>readPageByStateAndSandboxAndAuthorAndArchivedNot(@NonNull String state, @NonNull String sandbox, @NonNull String author, Boolean archived, cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable pageable, boolean vendorNarrowing, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve a page of records filtered by state, sandbox, and authorbooleanremoveFromAffectedVendors(String changeSummaryGroupId, String vendorRef) Atomically removes the givenvendorReffromChangeSummaryGroup.getAffectedVendorRefs()of the givenchangeSummaryGroupIdif present.voidsetEventPublisher(org.springframework.context.ApplicationEventPublisher eventPublisher) voidsetJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) voidsetProperties(CompletionCleanupProperties properties) voidsetVendorNarrowingQueryCustomizerProvider(org.springframework.beans.factory.ObjectProvider<JpaVendorNarrowingQueryCustomizer> vendorNarrowingQueryCustomizerProvider) If vendor processing is enabled, this bean will be injected and and used for vendor narrowing.voidsetVendorProcessingEnabled(boolean vendorProcessingEnabled) Whether or not vendor processing is enabled.booleanupdateVals(@NonNull String changeSummaryGroupId, List<String> whereStates, List<String> whereStatus, Map<String, Object> vals, boolean enforceArchive) Update the fields for a record matching the idvoidupdateVals(@NonNull List<String> changeSummaryGroupIds, String whereState, List<String> whereStatus, @NonNull Map<String, Object> vals) Update the fields for multiple records matching the ids
-
Constructor Details
-
JpaCustomizedChangeSummaryGroupRepository
public JpaCustomizedChangeSummaryGroupRepository(com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.RSQLVisitorHolder<?> rsqlVisitorHolder)
-
-
Method Details
-
getDomainType
- Specified by:
getDomainTypein interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-
readByIdAndArchivedNot
public Optional<D> readByIdAndArchivedNot(String id, boolean archived, boolean vendorNarrowing, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedChangeSummaryGroupRepositoryTakesChangeSummaryGroup.getArchived()into account when retrieving a group with the given ID.- Specified by:
readByIdAndArchivedNotin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
id- ID of the group to retrievearchived-ChangeSummaryGroup.getArchived()value to not matchvendorNarrowing- whether or not to filter results based on the current authentication's vendor restrictions if vendor processing is enabledcontextInfo- context information about sandboxing and multitenant state- Returns:
- A
ChangeSummaryGroupmatching the given ID and not matching the given archived status
-
updateVals
@Transactional("sandboxTransactionManager") public boolean updateVals(@NonNull @NonNull String changeSummaryGroupId, @Nullable List<String> whereStates, @Nullable List<String> whereStatus, Map<String, Object> vals, boolean enforceArchive) Description copied from interface:CustomizedChangeSummaryGroupRepositoryUpdate the fields for a record matching the id- Specified by:
updateValsin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
changeSummaryGroupId- The id requested to mutatewhereStates- The list of validChangeStatevalues for whichChangeSummaryGroup.getState()should matchwhereStatus- The list ofChangeStatusTypevalues for whichChangeSummaryGroup.getStatus()should match one or more of. Can be empty to indicate no filtrationvals- Map of field to value changes to make to the ChangeSummaryGroup instanceenforceArchive- Whether archive status should be checked before updating- Returns:
- Whether or not an update was performed. If no record found matching the id and state, will return false.
-
updateVals
@Transactional("sandboxTransactionManager") public void updateVals(@NonNull @NonNull List<String> changeSummaryGroupIds, @Nullable String whereState, @Nullable List<String> whereStatus, @NonNull @NonNull Map<String, Object> vals) Description copied from interface:CustomizedChangeSummaryGroupRepositoryUpdate the fields for multiple records matching the ids- Specified by:
updateValsin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
changeSummaryGroupIds- The ids requested to mutatewhereState- The validChangeStatevalue for whichChangeSummaryGroup.getState()should matchwhereStatus- The list ofChangeStatusTypevalues for whichChangeSummaryGroup.getStatus()should match one or more of. Can be empty to indicate no filtrationvals- Map of field to value changes to make to the ChangeSummaryGroup instance
-
batchTransition
@Transactional("sandboxTransactionManager") public boolean batchTransition(PromoteBatchFlushContext flushContext) Description copied from interface:CustomizedChangeSummaryGroupRepositoryGiven aPromoteBatchFlushContextcontainingChangeSummaryGrouptransition information, update the state of the group, especially as it relates to transitionedChangeSummaryinstances.- Specified by:
batchTransitionin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
flushContext- Context object containing the change summary group transition information to commit
-
batchTransition
@Transactional("sandboxTransactionManager") public boolean batchTransition(StateChangeOnlyBatchFlushContext flushContext) Description copied from interface:CustomizedChangeSummaryGroupRepositoryGiven aStateChangeOnlyBatchFlushContextcontainingChangeSummaryGroupandChangeSummarystate change information, perform a batch update of the prescribed state. This does not involved changes to notification states and does not result in state related to sending messages.- Specified by:
batchTransitionin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
flushContext- Context containingChangeSummaryGroupandChangeSummarystate change information- Returns:
- Whether or not the transition was performed
-
findChangeSummaryGroupsBySandbox
public Stream<D> findChangeSummaryGroupsBySandbox(@NonNull @NonNull String sandbox, @NonNull @NonNull String state, @Nullable List<String> status) Description copied from interface:CustomizedChangeSummaryGroupRepositoryFind allChangeSummaryGroupinstances matching primarily the sandbox.- Specified by:
findChangeSummaryGroupsBySandboxin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
sandbox- The sandbox for which theChangeSummaryGroup.getSandbox()should matchstate- TheChangeStatevalue for whichChangeSummaryGroup.getState()should matchstatus- The list ofChangeStatusTypevalues for whichChangeSummaryGroup.getStatus()should match one or more of. Can be empty- Returns:
- A Stream that can be iterated, possibly containing a large number of records or an empty stream if no matches
-
findChangeSummaryGroupsBySandbox
public Stream<D> findChangeSummaryGroupsBySandbox(@NonNull @NonNull String sandbox, @NonNull @NonNull String state, @Nullable List<String> status, boolean vendorNarrowing, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedChangeSummaryGroupRepositoryFind allChangeSummaryGroupinstances matching primarily the sandbox.- Specified by:
findChangeSummaryGroupsBySandboxin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
sandbox- The sandbox for which theChangeSummaryGroup.getSandbox()should matchstate- TheChangeStatevalue for whichChangeSummaryGroup.getState()should matchstatus- The list ofChangeStatusTypevalues for whichChangeSummaryGroup.getStatus()should match one or more of. Can be emptyvendorNarrowing- whether or not to filter results based on the current authentication's vendor restrictions if vendor processing is enabledcontextInfo- context information about sandboxing and multitenant state- Returns:
- A Stream that can be iterated, possibly containing a large number of records or an empty stream if no matches
-
findChangeSummaryGroupsByIds
public Stream<D> findChangeSummaryGroupsByIds(List<String> changeSummaryGroupIds, @NonNull @NonNull String sandbox, List<String> whereStates, @Nullable List<String> whereStatuses) Description copied from interface:CustomizedChangeSummaryGroupRepositoryFind allChangeSummaryGroupinstances matching primarily a list of ids.- Specified by:
findChangeSummaryGroupsByIdsin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
changeSummaryGroupIds- The list ofChangeSummaryGroup.getId()values to matchsandbox- The sandbox for which theChangeSummaryGroup.getSandbox()should matchwhereStates- TheChangeStatevalue for whichChangeSummaryGroup.getState()should match. Cannot be emptywhereStatuses- The list ofChangeStatusTypevalues for whichChangeSummaryGroup.getStatus()should match one of more of. Can be empty to indiciate no filtration- Returns:
- A Stream that can be iterated, possibly containing a large number of records or an empty stream if no matches
-
findChangeSummaryGroupsByIds
public Stream<D> findChangeSummaryGroupsByIds(List<String> changeSummaryGroupIds, @NonNull @NonNull String sandbox, List<String> whereStates, @Nullable List<String> whereStatuses, boolean vendorNarrowing, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedChangeSummaryGroupRepositoryFind allChangeSummaryGroupinstances matching primarily a list of ids.- Specified by:
findChangeSummaryGroupsByIdsin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
changeSummaryGroupIds- The list ofChangeSummaryGroup.getId()values to matchsandbox- The sandbox for which theChangeSummaryGroup.getSandbox()should matchwhereStates- TheChangeStatevalue for whichChangeSummaryGroup.getState()should match. Cannot be emptywhereStatuses- The list ofChangeStatusTypevalues for whichChangeSummaryGroup.getStatus()should match one of more of. Can be empty to indiciate no filtrationvendorNarrowing- whether or not to filter results based on the current authentication's vendor restrictions if vendor processing is enabledcontextInfo- context information about sandboxing and multitenant state- Returns:
- A Stream that can be iterated, possibly containing a large number of records or an empty stream if no matches
-
findChangeSummaryGroupsByIds
Description copied from interface:CustomizedChangeSummaryGroupRepositoryFind allChangeSummaryGroupinstances matching primarily a list of ids.- Specified by:
findChangeSummaryGroupsByIdsin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
changeSummaryGroupIds- The list ofChangeSummaryGroup.getId()values to match- Returns:
- A Stream that can be iterated, possibly containing a large number of records or an empty stream if no matches
-
findChangeSummaryGroupByIdsCount
public Long findChangeSummaryGroupByIdsCount(List<String> changeSummaryGroupIds, List<String> states, @Nullable List<String> statuses, @NonNull @NonNull String sandbox) Description copied from interface:CustomizedChangeSummaryGroupRepositoryGiven a list ofChangeSummaryGroupids, find the count of groups that match the state requirements defined in the params.- Specified by:
findChangeSummaryGroupByIdsCountin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
changeSummaryGroupIds- The group ids to checkstates- TheChangeStatevalue for whichChangeSummaryGroup.getState()should match. Cannot be emptystatuses- he list ofChangeStatusTypevalues for whichChangeSummaryGroup.getStatus()should match one of more of. Can be empty to indicate no filtrationsandbox- The sandbox for which theChangeSummaryGroup.getSandbox()should match- Returns:
- The count of entities matching the requested params
-
readPageByStateAndSandboxAndArchivedNot
public org.springframework.data.domain.Page<D> readPageByStateAndSandboxAndArchivedNot(@NonNull @NonNull String state, @NonNull @NonNull String sandbox, @Nullable Boolean archived, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @NonNull @NonNull org.springframework.data.domain.Pageable pageable) Description copied from interface:CustomizedChangeSummaryGroupRepositoryRetrieve a page of records filtered by state and sandbox- Specified by:
readPageByStateAndSandboxAndArchivedNotin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
state- TheChangeSummaryGroup.getState()value to filter results bysandbox- TheChangeSummaryGroup.getSandbox()()} value to filter results byarchived-ChangeSummaryGroup.getArchived()value to not matchfilters- the RSQLNodeused to restrict resultpageable- The page setup information- Returns:
- The page of records
-
readPageByStateAndSandboxAndArchivedNot
public org.springframework.data.domain.Page<D> readPageByStateAndSandboxAndArchivedNot(@NonNull @NonNull String state, @NonNull @NonNull String sandbox, @Nullable Boolean archived, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @NonNull @NonNull org.springframework.data.domain.Pageable pageable, boolean vendorNarrowing, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedChangeSummaryGroupRepositoryRetrieve a page of records filtered by state and sandbox- Specified by:
readPageByStateAndSandboxAndArchivedNotin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
state- TheChangeSummaryGroup.getState()value to filter results bysandbox- TheChangeSummaryGroup.getSandbox()()} value to filter results byarchived-ChangeSummaryGroup.getArchived()value to not matchfilters- the RSQLNodeused to restrict resultpageable- The page setup informationvendorNarrowing- whether or not to filter results based on the current authentication's vendor restrictions if vendor processing is enabledcontextInfo- context information about sandboxing and multitenant state- Returns:
- The page of records
-
readPageByStateAndSandboxAndAuthorAndArchivedNot
public org.springframework.data.domain.Page<D> readPageByStateAndSandboxAndAuthorAndArchivedNot(@NonNull @NonNull String state, @NonNull @NonNull String sandbox, @NonNull @NonNull String author, @Nullable Boolean archived, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @NonNull @NonNull org.springframework.data.domain.Pageable pageable) Description copied from interface:CustomizedChangeSummaryGroupRepositoryRetrieve a page of records filtered by state, sandbox, and author- Specified by:
readPageByStateAndSandboxAndAuthorAndArchivedNotin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
state- TheChangeSummaryGroup.getState()value to filter results bysandbox- TheChangeSummaryGroup.getSandbox()value to filter results byauthor- TheChangeSummaryGroup.getAuthor()value to filter records byarchived-ChangeSummaryGroup.getArchived()value to not matchfilters- the RSQLNodeused to restrict resultpageable- The page setup information- Returns:
- The page of records
-
readPageByStateAndSandboxAndAuthorAndArchivedNot
public org.springframework.data.domain.Page<D> readPageByStateAndSandboxAndAuthorAndArchivedNot(@NonNull @NonNull String state, @NonNull @NonNull String sandbox, @NonNull @NonNull String author, @Nullable Boolean archived, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @NonNull @NonNull org.springframework.data.domain.Pageable pageable, boolean vendorNarrowing, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedChangeSummaryGroupRepositoryRetrieve a page of records filtered by state, sandbox, and author- Specified by:
readPageByStateAndSandboxAndAuthorAndArchivedNotin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
state- TheChangeSummaryGroup.getState()value to filter results bysandbox- TheChangeSummaryGroup.getSandbox()value to filter results byauthor- TheChangeSummaryGroup.getAuthor()value to filter records byarchived-ChangeSummaryGroup.getArchived()value to not matchfilters- the RSQLNodeused to restrict resultpageable- The page setup informationvendorNarrowing- whether or not to filter results based on the current authentication's vendor restrictions if vendor processing is enabledcontextInfo- context information about sandboxing and multitenant state- Returns:
- The page of records
-
archiveChangeSummaryGroupsForSandbox
Description copied from interface:CustomizedChangeSummaryGroupRepositoryArchives the group ofChangeSummaryfor the specified sandbox id.- Specified by:
archiveChangeSummaryGroupsForSandboxin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
sandboxId- the sandbox id associated to the change summary groups
-
removeFromAffectedVendors
@Transactional("sandboxTransactionManager") public boolean removeFromAffectedVendors(String changeSummaryGroupId, String vendorRef) Description copied from interface:CustomizedChangeSummaryGroupRepositoryAtomically removes the givenvendorReffromChangeSummaryGroup.getAffectedVendorRefs()of the givenchangeSummaryGroupIdif present.- Specified by:
removeFromAffectedVendorsin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
changeSummaryGroupId- the ID of the group to updatevendorRef- the vendor ref to remove fromChangeSummaryGroup.getAffectedVendorRefs()- Returns:
trueif the removal was successful,falseotherwise
-
cleanupBatch
@Nullable public String cleanupBatch(@Nullable String startingId, boolean archive, List<ChangeStatusType> detectStatuses, List<ChangeState> detectStates, ChangeStatusType targetStatus, ChangeState targetState, List<ChangeStatusType> summaryDetectStatuses, List<ChangeState> summaryDetectStates, Object source) Description copied from interface:CustomizedChangeSummaryGroupRepositoryCheck a bag of ChangeSummaryGroup entities for completion state. If complete, update status and state.- Specified by:
cleanupBatchin interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>- Parameters:
startingId- The ChangeSummaryGroup entity id that represents the start of the collection of entities to check. The size of the collection is determined byCompletionCleanupProperties.getCleanupBatchSize().archive- Whether to archive the ChangeSummaryGroup upon completiondetectStatuses- The list of statuses to match. One of these statuses must match an entity status to be considered as part of the cleanup routine.detectStates- The list of states to match. One of these statuses must match an entity state to be considered as part of the cleanup routine.targetStatus- The status to set on one or more entities if determined to be completetargetState- The state to set on one or more entities if determined to be completesummaryDetectStatuses- The list of associated ChangeSummary statuses to NOT match. Associated ChangeSummary instances must not be in any of these statuses for the related ChangeDeploy to be considered complete.summaryDetectStates- The list of associated ChangeSummary states to NOT match. Associated ChangeSummary instances must not be in any of these states for the related ChangeDeploy to be considered complete.source- The specific cleanup service instance making the call- Returns:
- The last ChangeSummaryGroup entity id used as part of the executed batch. This value
is interesting to provide as the
startingIdfor subsequent calls to this method when performing a paged style execution approach. May be null if no values were found, or if fewer than the configured batch size were found.
-
getVendorNarrowingQueryCustomizer
-
isVendorProcessingEnabled
protected boolean isVendorProcessingEnabled()Whether or not vendor processing is enabled. This will determine how certain vendor-related fields on domains are initialized. -
setVendorProcessingEnabled
@Autowired public void setVendorProcessingEnabled(@Value("${broadleaf.sandbox.propagation.enabled:false}") boolean vendorProcessingEnabled) Whether or not vendor processing is enabled. This will determine how certain vendor-related fields on domains are initialized. -
setVendorNarrowingQueryCustomizerProvider
@Autowired public void setVendorNarrowingQueryCustomizerProvider(org.springframework.beans.factory.ObjectProvider<JpaVendorNarrowingQueryCustomizer> vendorNarrowingQueryCustomizerProvider) If vendor processing is enabled, this bean will be injected and and used for vendor narrowing.We leverage
ObjectProviderhere since we want both optional and lazy injection. This is to avoid a situation where the query customizer creates a circular dependency. -
setJdbcTemplate
@Autowired @Qualifier("summaryCompletionJdbcTemplate") public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) -
setProperties
-
setEventPublisher
@Autowired public void setEventPublisher(@Nullable org.springframework.context.ApplicationEventPublisher eventPublisher)
-