run two transactions to populate and print the database . a transactionrunner is used to ensure consistent handling of transactions , including deadlock retries . but the best transaction handling mechanism to use depends on the application . concode_field_sep SampleDatabase db concode_elem_sep SampleViews views concode_field_sep void addShipments concode_elem_sep void addParts concode_elem_sep void doWork concode_elem_sep void doWork concode_elem_sep void main concode_elem_sep void close concode_elem_sep void addSuppliers concode_elem_sep void printValues
void function ( ) { TransactionRunner loc0 = new TransactionRunner ( db . getEnvironment ( ) ) ; loc0 . run ( new PopulateDatabase ( ) ) ; loc0 . run ( new PrintDatabase ( ) ) ; }