public abstract class SingleRecordBulkEntity extends BulkEntity
Constructor and Description |
---|
SingleRecordBulkEntity() |
Modifier and Type | Method and Description |
---|---|
String |
getClientId() |
List<BulkError> |
getErrors() |
Calendar |
getLastModifiedTime()
Gets the last modified time for the entity.
|
boolean |
hasErrors()
Determines whether the bulk entity has associated errors.
|
abstract void |
processMappingsFromRowValues(RowValues values)
Process specific entity mappings from CSV values.
|
abstract void |
processMappingsToRowValues(RowValues values,
boolean excludeReadonlyData)
Process specific entity mappings to CSV values.
|
void |
readAdditionalData(BulkRecordReader reader) |
void |
readFromRowValues(RowValues values)
Reads common mappings and calls abstract method to read entity-specific mappings.
|
void |
readRelatedData(BulkRecordReader reader)
Reads object data from consecutive rows.
|
void |
setClientId(String clientId) |
void |
write(BulkObjectWriter rowWriter,
boolean excludeReadonlyData)
Writes entity data to bulk file
|
void |
writeAdditionalData(BulkObjectWriter writer) |
void |
writeToRowValues(RowValues values,
boolean excludeReadonlyData)
Writes common mappings and calls abstract method to read entity-specific mappings.
|
validateListNotNullOrEmpty, validatePropertyNotNull
canEncloseInMultilineEntity, encloseInMultilineEntity
public void readFromRowValues(RowValues values)
readFromRowValues
in class BulkObject
values
- CSV row valuespublic abstract void processMappingsFromRowValues(RowValues values)
values
- Set of values and mappings corresponding to one row/single line entitypublic void writeToRowValues(RowValues values, boolean excludeReadonlyData)
writeToRowValues
in class BulkObject
values
- CSV row valuesexcludeReadonlyData
- indicates whether readonly data should be written (such as errors, performance data etc.)public abstract void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData)
values
- Row valuesexcludeReadonlyData
- indicates whether readonly data should be written (such as errors, performance data etc.)public void readRelatedData(BulkRecordReader reader)
BulkObject
readRelatedData
in class BulkObject
public void readAdditionalData(BulkRecordReader reader)
public boolean hasErrors()
BulkEntity
hasErrors
in class BulkEntity
public void write(BulkObjectWriter rowWriter, boolean excludeReadonlyData) throws IOException
write
in class BulkObject
rowWriter
- Writer object, allowing to write consecutive bulk rowsexcludeReadonlyData
- indicates whether readonly data should be written (such as errors, performance data etc.)IOException
public void writeAdditionalData(BulkObjectWriter writer) throws IOException
IOException
public Calendar getLastModifiedTime()
BulkEntity
getLastModifiedTime
in class BulkEntity
public String getClientId()
public void setClientId(String clientId)
Copyright © 2024. All rights reserved.