@Service(value="blDynamicEntityRemoteService") public class DynamicEntityRemoteService extends Object implements DynamicEntityService
| Modifier and Type | Field and Description |
|---|---|
protected ExploitProtectionService |
exploitProtectionService |
protected static Map<BatchPersistencePackage,BatchDynamicResultSet> |
METADATA_CACHE |
protected PersistenceService |
persistenceService |
protected PersistenceThreadManager |
persistenceThreadManager |
protected StreamingTransactionCapableUtil |
transUtil |
| Constructor and Description |
|---|
DynamicEntityRemoteService() |
protected static final Map<BatchPersistencePackage,BatchDynamicResultSet> METADATA_CACHE
protected ExploitProtectionService exploitProtectionService
protected PersistenceService persistenceService
protected PersistenceThreadManager persistenceThreadManager
protected StreamingTransactionCapableUtil transUtil
protected ServiceException recreateSpecificServiceException(ServiceException e, String message, Throwable cause)
public PersistenceResponse inspect(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityServicePersistenceResponse
that is returned will not have the PersistenceResponse.getEntity() property set and this will return null.
Instead, this will populate PersistenceResponse.getDynamicResultSet().inspect in interface DynamicEntityServicepersistencePackage - the package that should be passed through the admin pipeline to build the metadataPersistenceResponse with the PersistenceResponse.getDynamicResultSet() set with the
metadata of the built properties for this particular entityServiceException - wraps whatever internal exception that might have occurred as a result of the inspectpublic PersistenceResponse nonTransactionalInspect(PersistencePackage persistencePackage) throws ServiceException
nonTransactionalInspect in interface DynamicEntityServiceServiceExceptionpublic PersistenceResponse fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
fetch in interface DynamicEntityServiceServiceExceptionpublic PersistenceResponse nonTransactionalFetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
nonTransactionalFetch in interface DynamicEntityServiceServiceExceptionprotected void cleanEntity(Entity entity) throws ServiceException
ServiceExceptionpublic PersistenceResponse add(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityServiceValidationException and not attempt to swallow them and wrap any other exceptions within
a ServiceException that might have resulted in adding the given package.add in interface DynamicEntityServiceServiceExceptionAdminEntityService#add(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest)}public PersistenceResponse update(PersistencePackage persistencePackage) throws ServiceException
update in interface DynamicEntityServiceServiceExceptionpublic PersistenceResponse remove(PersistencePackage persistencePackage) throws ServiceException
remove in interface DynamicEntityServiceServiceExceptionpublic PersistenceResponse nonTransactionalAdd(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityServiceDynamicEntityService.add(PersistencePackage) except this is not bound to a transaction. This is useful when
transactions are handled by the caller that has its own rollback logic (like when batching multiple adds).nonTransactionalAdd in interface DynamicEntityServiceServiceExceptionpublic PersistenceResponse nonTransactionalUpdate(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityServiceDynamicEntityService.update(PersistencePackage) except this is not bound to a transaction. This is useful when
transactions are handled by the caller that has its own rollback logic (like when batching multiple updates).nonTransactionalUpdate in interface DynamicEntityServiceServiceExceptionpublic PersistenceResponse nonTransactionalRemove(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityServiceDynamicEntityService.remove(PersistencePackage) except this is not bound to a transaction. This is useful when
transactions are handled by the caller that has its own rollback logic (like when batching multiple removes).nonTransactionalRemove in interface DynamicEntityServiceServiceExceptionprotected org.springframework.transaction.PlatformTransactionManager identifyTransactionManager(PersistencePackage persistencePackage) throws ServiceException
ServiceExceptionCopyright © 2022. All rights reserved.