Class JpaBatchItem
java.lang.Object
com.broadleafcommerce.dataimport.provider.jpa.domain.JpaBatchItem
A logical record from a flat file. This could have spanned multiple physical records from the
flat file if the logical "parent" record has dependents located within it, laid out in multiple
physical rows. Example could be a PRODUCT physical record that contains OPTION records laid out
as separate lines but grouped together
Persistent counter-part to a BatchItem for use with a JPA-supported datastore.
- Author:
- Phillip Verheyden (phillipuniverse)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanIdentifier that allows the resource tier to map back responses to a record within the batchItems that should be conceptually linked to the parent record that represents this itemIfsetStatus(BatchItemStatus)isBatchItemStatus.ERRORthen this contains a message detailing what the problem waslongcom.broadleafcommerce.common.dataimport.messaging.OperationTypeIn a multi-typed record file this holds the specific information of what was parsed out from the line in the file.getRow()A row of data being examinedinthashCode()voidsetCorrelationId(String correlationId) Identifier that allows the resource tier to map back responses to a record within the batchvoidsetDependents(List<JpaBatchItem> dependents) Items that should be conceptually linked to the parent record that represents this itemvoidsetErrorMessage(String errorMessage) IfsetStatus(BatchItemStatus)isBatchItemStatus.ERRORthen this contains a message detailing what the problem wasvoidsetLineNumber(long lineNumber) voidsetOperation(com.broadleafcommerce.common.dataimport.messaging.OperationType operation) voidsetRecordType(String recordType) In a multi-typed record file this holds the specific information of what was parsed out from the line in the file.voidsetResourceTierIdentifier(String resourceTierIdentifier) voidA row of data being examinedvoidsetStatus(BatchItemStatus status) toString()
-
Constructor Details
-
JpaBatchItem
public JpaBatchItem()
-
-
Method Details
-
getLineNumber
public long getLineNumber() -
getCorrelationId
Identifier that allows the resource tier to map back responses to a record within the batch -
getRecordType
In a multi-typed record file this holds the specific information of what was parsed out from the line in the file. For example in a product import there arePRODUCT,VARIANT,INCLUDED_PRODUCT -
getOperation
public com.broadleafcommerce.common.dataimport.messaging.OperationType getOperation() -
getResourceTierIdentifier
-
getStatus
-
getErrorMessage
IfsetStatus(BatchItemStatus)isBatchItemStatus.ERRORthen this contains a message detailing what the problem was -
getRow
A row of data being examined -
getDependents
Items that should be conceptually linked to the parent record that represents this item -
setLineNumber
public void setLineNumber(long lineNumber) -
setCorrelationId
Identifier that allows the resource tier to map back responses to a record within the batch -
setRecordType
In a multi-typed record file this holds the specific information of what was parsed out from the line in the file. For example in a product import there arePRODUCT,VARIANT,INCLUDED_PRODUCT -
setOperation
public void setOperation(com.broadleafcommerce.common.dataimport.messaging.OperationType operation) -
setResourceTierIdentifier
-
setStatus
-
setErrorMessage
IfsetStatus(BatchItemStatus)isBatchItemStatus.ERRORthen this contains a message detailing what the problem was -
setRow
A row of data being examined -
setDependents
Items that should be conceptually linked to the parent record that represents this item -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-