package Ġio . pro venance . digital currency . report . domain Ċ Ċ import Ġorg . jetbrains . ex posed . dao . UUID Entity Ċ import Ġorg . jetbrains . ex posed . dao . UUID Entity Class Ċ import Ġorg . jetbrains . ex posed . dao . id . Entity ID Ċ import Ġorg . jetbrains . ex posed . dao . id . UUID Table Ċ import Ġjava . time . Offset DateTime Ċ import Ġjava . util . UUID Ċ Ċ type alias ĠS RT Ġ= ĠSet tlement Report Table Ċ Ċ object ĠSet tlement Report Table Ġ: ĠUUID Table ( name Ġ= Ġ" set tlement _ report ", ĠcolumnName Ġ= Ġ" uuid ") Ġ{ ĊĠĠĠ Ġval Ġfrom Block Height Ġ= Ġlong (" from _ block _ height ") ĊĠĠĠ Ġval Ġto Block Height Ġ= Ġlong (" to _ block _ height ") ĊĠĠĠ Ġval Ġcreated Ġ= Ġoffset Datetime (" created ") Ċ } Ċ Ċ open Ġclass ĠSet tlement Report Entity Ġ: ĠUUID Entity Class < Set tlement Report Record >( S RT ) Ġ{ ĊĊĠĠĠ Ġfun Ġinsert ( from Block Height : ĠLong , Ġto Block Height : ĠLong ) Ġ= ĊĠĠĠĠĠĠĠ Ġnew Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthis . from Block Height Ġ= Ġfrom Block Height ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthis . to Block Height Ġ= Ġto Block Height ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthis . created Ġ= ĠOffset DateTime . now () ĊĠĠĠĠĠĠĠ Ġ} Ċ } Ċ Ċ class ĠSet tlement Report Record ( uuid : ĠEntity ID < UUID >) Ġ: ĠUUID Entity ( uuid ) Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ: ĠSet tlement Report Entity () ĊĊĠĠĠ Ġvar Ġfrom Block Height Ġby ĠS RT . from Block Height ĊĠĠĠ Ġvar Ġto Block Height Ġby ĠS RT . to Block Height ĊĠĠĠ Ġvar Ġcreated Ġby ĠS RT . created ĊĊĠĠĠ Ġval Ġnet Entries Ġby ĠSet tlement Net Entry Record Ġref err ers On ĠS NET . report ĊĠĠĠ Ġval Ġwire Entries Ġby ĠSet tlement Wire Entry Record Ġref err ers On ĠSW ET . report Ċ } Ċ