qortal/src/test
catbref 3d78d5dad9 More refactoring - DOES NOT COMPILE
qora.* packages are business logic/handler/processing
data.* packages are "value objects" or are they "business objects"?

toBytes(), fromBytes() (which used to be called parse()) and toJSON() moved to transform.* packages

new issues:

Lost control of SQL Transactions. Previously, some class "knew" whether to call COMMIT or not.
e.g. simply saving a payment transaction would involve updating Transactions table first, then the PaymentTransactions table after (to satisfy foreign key constraints) then commit.
Processing a block would involve a new transaction, a savepoint, a rollback and then maybe a further commit or rollback.
Not sure how this is going to work with the repository, especially if business logic isn't supposed to be aware of such things.

Growing number of stupid try-catch blocks. Probably best to ditch TransformationException (was ParseException) and throw IllegalStateExceptions instead as they're "unchecked".

What happens if the repository fails to save() to the database? It can't throw SQLException any more as that has no meaning outside the repository. Ditto with delete().
2018-06-08 17:40:27 +01:00
..
blockchain.java Basic block and genesis transaction processing + some refactoring. 2018-05-25 11:48:47 +01:00
blocks.java More refactoring - DOES NOT COMPILE 2018-06-08 17:40:27 +01:00
common.java Convertion to thread-local Connection 2018-06-06 11:39:58 +01:00
connections.java Convertion to thread-local Connection 2018-06-06 11:39:58 +01:00
crypto.java Rework DB connection arg passing 2018-05-24 11:26:59 +01:00
exceptions.java IssueAssetTransactions 2018-06-06 09:52:42 +01:00
load.java More refactoring - DOES NOT COMPILE 2018-06-08 17:40:27 +01:00
migrate.java More refactoring - DOES NOT COMPILE 2018-06-08 17:40:27 +01:00
navigation.java Basic block and genesis transaction processing + some refactoring. 2018-05-25 11:48:47 +01:00
save.java Convertion to thread-local Connection 2018-06-06 11:39:58 +01:00
signatures.java More work on transactions/blocks 2018-06-04 11:45:40 +01:00
transactions.java More refactoring - DOES NOT COMPILE 2018-06-08 17:40:27 +01:00
updates.java Basic block and genesis transaction processing + some refactoring. 2018-05-25 11:48:47 +01:00