@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
DynamicEntityService
PersistenceResponse
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 DynamicEntityService
persistencePackage
- 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 DynamicEntityService
ServiceException
public PersistenceResponse fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
fetch
in interface DynamicEntityService
ServiceException
public PersistenceResponse nonTransactionalFetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
nonTransactionalFetch
in interface DynamicEntityService
ServiceException
protected void cleanEntity(Entity entity) throws ServiceException
ServiceException
public PersistenceResponse add(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityService
ValidationException
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 DynamicEntityService
ServiceException
AdminEntityService#add(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest)}
public PersistenceResponse update(PersistencePackage persistencePackage) throws ServiceException
update
in interface DynamicEntityService
ServiceException
public PersistenceResponse remove(PersistencePackage persistencePackage) throws ServiceException
remove
in interface DynamicEntityService
ServiceException
public PersistenceResponse nonTransactionalAdd(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityService
DynamicEntityService.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 DynamicEntityService
ServiceException
public PersistenceResponse nonTransactionalUpdate(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityService
DynamicEntityService.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 DynamicEntityService
ServiceException
public PersistenceResponse nonTransactionalRemove(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityService
DynamicEntityService.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 DynamicEntityService
ServiceException
protected org.springframework.transaction.PlatformTransactionManager identifyTransactionManager(PersistencePackage persistencePackage) throws ServiceException
ServiceException
Copyright © 2022. All rights reserved.