com.trendmicro.grid.acl.ds.jpa
Class AbstractReceivedResultsHandler.StorageContext
java.lang.Object
com.trendmicro.grid.acl.ds.jpa.AbstractReceivedResultsHandler.StorageContext
- Enclosing class:
- AbstractReceivedResultsHandler<T>
protected static class AbstractReceivedResultsHandler.StorageContext
- extends Object
Defines a storage context for handlers that summarizes the information needed to
process a single transaction.
Constructor Summary |
AbstractReceivedResultsHandler.StorageContext(javax.persistence.EntityManager em,
Collection<com.trendmicro.grid.acl.l0.datatypes.ProcessPackageDataSet> receivedDataSets,
boolean ignoreAllUpdates,
boolean ignoreNullMetadataUpdates,
boolean enableHistoryRecording)
Constructs a new instance bound to the given EntityManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
em
protected final javax.persistence.EntityManager em
receivedDataSets
protected final Collection<com.trendmicro.grid.acl.l0.datatypes.ProcessPackageDataSet> receivedDataSets
ignoreAllUpdates
protected final boolean ignoreAllUpdates
ignoreNullMetadataUpdates
protected final boolean ignoreNullMetadataUpdates
enableHistoryRecording
protected final boolean enableHistoryRecording
AbstractReceivedResultsHandler.StorageContext
public AbstractReceivedResultsHandler.StorageContext(javax.persistence.EntityManager em,
Collection<com.trendmicro.grid.acl.l0.datatypes.ProcessPackageDataSet> receivedDataSets,
boolean ignoreAllUpdates,
boolean ignoreNullMetadataUpdates,
boolean enableHistoryRecording)
- Constructs a new instance bound to the given EntityManager.
- Parameters:
em
- the shared entity manager to use to storing the content.receivedDataSets
- the received datasets that need to be stored.ignoreAllUpdates
- whether handlers should not handle any updates at all.ignoreNullMetadataUpdates
- whether handlers should ignore metadata updates when to null
(do not remove existing metadata).enableHistoryRecording
- disable or enable the recording of history data in the history tables
(FILE_CONTENT_HISTORY, PACKAGE_HISTORY, PACKAGE_FILES_HISTORY)
Default is enabled
getRootPackageReference
protected JpaPackageDetails getRootPackageReference(JpaPackageRepository repository)
- Returns a reference to the root package if available or 'null'.
- Parameters:
repository
- the repository to use for retrieving the reference.
- Returns:
- a reference to the root package if available or 'null'.