forked from Qortal/qortal
Correct wrong constructors in HSQLDB*TransactionRepository classes
This commit is contained in:
parent
fc3e951e8e
commit
c5818543ea
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user