Package org.jeasy.batch.core.record
Class Header
- java.lang.Object
-
- org.jeasy.batch.core.record.Header
-
public class Header extends java.lang.Object
The record header contains metadata about the record.- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
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.LocalDateTime
getCreationDate()
java.lang.Long
getNumber()
java.lang.String
getSource()
boolean
isScanned()
Return true if the record has been part of a batch scanning operation.void
setScanned(boolean scanned)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-