Correct wrong constructors in HSQLDB*TransactionRepository classes

This commit is contained in:
catbref 2018-06-13 17:11:55 +01:00
parent fc3e951e8e
commit c5818543ea
6 changed files with 8 additions and 5 deletions

View File

@ -13,7 +13,7 @@ import repository.hsqldb.HSQLDBSaver;
public class HSQLDBCreateOrderTransactionRepository extends HSQLDBTransactionRepository {
public HSQLDBCreateOrderTransactionRepository(HSQLDBRepository repository) {
super(repository);
this.repository = repository;
}
TransactionData fromBase(byte[] signature, byte[] reference, byte[] creatorPublicKey, long timestamp, BigDecimal fee) throws DataException {

View File

@ -13,7 +13,7 @@ import repository.hsqldb.HSQLDBSaver;
public class HSQLDBGenesisTransactionRepository extends HSQLDBTransactionRepository {
public HSQLDBGenesisTransactionRepository(HSQLDBRepository repository) {
super(repository);
this.repository = repository;
}
TransactionData fromBase(byte[] signature, byte[] reference, byte[] creatorPublicKey, long timestamp, BigDecimal fee) throws DataException {

View File

@ -13,7 +13,7 @@ import repository.hsqldb.HSQLDBSaver;
public class HSQLDBIssueAssetTransactionRepository extends HSQLDBTransactionRepository {
public HSQLDBIssueAssetTransactionRepository(HSQLDBRepository repository) {
super(repository);
this.repository = repository;
}
TransactionData fromBase(byte[] signature, byte[] reference, byte[] creatorPublicKey, long timestamp, BigDecimal fee) throws DataException {

View File

@ -13,7 +13,7 @@ import repository.hsqldb.HSQLDBSaver;
public class HSQLDBMessageTransactionRepository extends HSQLDBTransactionRepository {
public HSQLDBMessageTransactionRepository(HSQLDBRepository repository) {
super(repository);
this.repository = repository;
}
TransactionData fromBase(byte[] signature, byte[] reference, byte[] creatorPublicKey, long timestamp, BigDecimal fee) throws DataException {

View File

@ -13,7 +13,7 @@ import repository.hsqldb.HSQLDBSaver;
public class HSQLDBPaymentTransactionRepository extends HSQLDBTransactionRepository {
public HSQLDBPaymentTransactionRepository(HSQLDBRepository repository) {
super(repository);
this.repository = repository;
}
TransactionData fromBase(byte[] signature, byte[] reference, byte[] creatorPublicKey, long timestamp, BigDecimal fee) throws DataException {

View File

@ -31,6 +31,9 @@ public class HSQLDBTransactionRepository implements TransactionRepository {
this.messageTransactionRepository = new HSQLDBMessageTransactionRepository(repository);
}
protected HSQLDBTransactionRepository() {
}
public TransactionData fromSignature(byte[] signature) throws DataException {
try {
ResultSet rs = this.repository.checkedExecute("SELECT type, reference, creator, creation, fee FROM Transactions WHERE signature = ?", signature);