Package org.jeasy.batch.core.record
Class Header
- java.lang.Object
-
- org.jeasy.batch.core.record.Header
-
public class Header extends java.lang.ObjectThe record header contains metadata about the record.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Constructor Summary
Constructors Constructor Description Header(java.lang.Long number, java.lang.String source, java.time.LocalDateTime creationDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDateTimegetCreationDate()java.lang.LonggetNumber()java.lang.StringgetSource()booleanisScanned()Return true if the record has been part of a batch scanning operation.voidsetScanned(boolean scanned)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Header
public Header(java.lang.Long number, java.lang.String source, java.time.LocalDateTime creationDate)- Parameters:
number- physical record number in the data source (if defined).source- data source name from which this record has been read.creationDate- date at which the record has been read.
-
-
Method Detail
-
getNumber
public java.lang.Long getNumber()
- Returns:
- the physical record number in the data source (if defined).
-
getSource
public java.lang.String getSource()
- Returns:
- the data source name from which this record has been read.
-
getCreationDate
public java.time.LocalDateTime getCreationDate()
- Returns:
- the date at which the record has been read.
-
isScanned
public boolean isScanned()
Return true if the record has been part of a batch scanning operation.- Returns:
- true if the record has been part of a batch scanning operation.
-
setScanned
public void setScanned(boolean scanned)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-