Class BulkImportResult
java.lang.Object
com.helger.photon.exchange.bulkimport.BulkImportResult
- All Implemented Interfaces:
com.helger.commons.state.ISuccessIndicator
@ThreadSafe
public class BulkImportResult
extends Object
implements com.helger.commons.state.ISuccessIndicator
This class represents the results of a bulk import.
- Author:
- boris, philip
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault value for maximum number of warnings to maintain in a list.static final booleanDefault success valueprotected final com.helger.commons.concurrent.SimpleReadWriteLock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddWarning(String sWarningMsg) final booleancontainsAdded(com.helger.commons.type.ITypedObject<String> aObj) final booleancontainsChanged(com.helger.commons.type.ITypedObject<String> aObj) final booleancontainsFailed(String sID) final intfinal com.helger.commons.collection.impl.ICommonsList<com.helger.commons.type.ITypedObject<String>>final com.helger.commons.collection.impl.ICommonsList<com.helger.commons.type.ITypedObject<String>>final com.helger.commons.collection.impl.ICommonsList<String>final com.helger.commons.collection.impl.ICommonsList<String>final intfinal intfinal intfinal booleanIndicates, that the overall import succeeded.final voidregisterAdded(com.helger.commons.type.ITypedObject<String> aObj) final voidregisterChanged(com.helger.commons.type.ITypedObject<String> aObj) final voidregisterFailed(String sID) final voidsetSuccess(boolean bSuccess) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.commons.state.ISuccessIndicator
and, isFailure, or
-
Field Details
-
DEFAULT_SUCCESS
public static final boolean DEFAULT_SUCCESSDefault success value- See Also:
-
DEFAULT_MAX_WARNINGS
public static final int DEFAULT_MAX_WARNINGSDefault value for maximum number of warnings to maintain in a list.- See Also:
-
m_aRWLock
protected final com.helger.commons.concurrent.SimpleReadWriteLock m_aRWLock
-
-
Constructor Details
-
BulkImportResult
public BulkImportResult() -
BulkImportResult
-
-
Method Details
-
registerAdded
-
getAllAdded
-
getAddedCount
-
containsAdded
-
registerChanged
-
getAllChanged
-
getChangedCount
-
containsChanged
-
registerFailed
-
getAllFailed
@Nonnull @ReturnsMutableCopy public final com.helger.commons.collection.impl.ICommonsList<String> getAllFailed()- Returns:
- All failed IDs.
-
getFailedCount
-
containsFailed
-
addWarning
-
getAllWarnings
-
getWarningsCount
- Returns:
- The number of all warnings. Always ≥ 0.
-
setSuccess
public final void setSuccess(boolean bSuccess) -
isSuccess
public final boolean isSuccess()Indicates, that the overall import succeeded. Default istrue.- Specified by:
isSuccessin interfacecom.helger.commons.state.ISuccessIndicator- Returns:
truefor import success,falsefor import failure.
-