mirror of
https://github.com/Qortal/qortal.git
synced 2025-03-26 23:44:34 +00:00
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 class HSQLDBCreateOrderTransactionRepository extends HSQLDBTransactionRepository {
|
||||||
|
|
||||||
public HSQLDBCreateOrderTransactionRepository(HSQLDBRepository repository) {
|
public HSQLDBCreateOrderTransactionRepository(HSQLDBRepository repository) {
|
||||||
super(repository);
|
this.repository = repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransactionData fromBase(byte[] signature, byte[] reference, byte[] creatorPublicKey, long timestamp, BigDecimal fee) throws DataException {
|
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 class HSQLDBGenesisTransactionRepository extends HSQLDBTransactionRepository {
|
||||||
|
|
||||||
public HSQLDBGenesisTransactionRepository(HSQLDBRepository repository) {
|
public HSQLDBGenesisTransactionRepository(HSQLDBRepository repository) {
|
||||||
super(repository);
|
this.repository = repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransactionData fromBase(byte[] signature, byte[] reference, byte[] creatorPublicKey, long timestamp, BigDecimal fee) throws DataException {
|
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 class HSQLDBIssueAssetTransactionRepository extends HSQLDBTransactionRepository {
|
||||||
|
|
||||||
public HSQLDBIssueAssetTransactionRepository(HSQLDBRepository repository) {
|
public HSQLDBIssueAssetTransactionRepository(HSQLDBRepository repository) {
|
||||||
super(repository);
|
this.repository = repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransactionData fromBase(byte[] signature, byte[] reference, byte[] creatorPublicKey, long timestamp, BigDecimal fee) throws DataException {
|
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 class HSQLDBMessageTransactionRepository extends HSQLDBTransactionRepository {
|
||||||
|
|
||||||
public HSQLDBMessageTransactionRepository(HSQLDBRepository repository) {
|
public HSQLDBMessageTransactionRepository(HSQLDBRepository repository) {
|
||||||
super(repository);
|
this.repository = repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransactionData fromBase(byte[] signature, byte[] reference, byte[] creatorPublicKey, long timestamp, BigDecimal fee) throws DataException {
|
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 class HSQLDBPaymentTransactionRepository extends HSQLDBTransactionRepository {
|
||||||
|
|
||||||
public HSQLDBPaymentTransactionRepository(HSQLDBRepository repository) {
|
public HSQLDBPaymentTransactionRepository(HSQLDBRepository repository) {
|
||||||
super(repository);
|
this.repository = repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransactionData fromBase(byte[] signature, byte[] reference, byte[] creatorPublicKey, long timestamp, BigDecimal fee) throws DataException {
|
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);
|
this.messageTransactionRepository = new HSQLDBMessageTransactionRepository(repository);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected HSQLDBTransactionRepository() {
|
||||||
|
}
|
||||||
|
|
||||||
public TransactionData fromSignature(byte[] signature) throws DataException {
|
public TransactionData fromSignature(byte[] signature) throws DataException {
|
||||||
try {
|
try {
|
||||||
ResultSet rs = this.repository.checkedExecute("SELECT type, reference, creator, creation, fee FROM Transactions WHERE signature = ?", signature);
|
ResultSet rs = this.repository.checkedExecute("SELECT type, reference, creator, creation, fee FROM Transactions WHERE signature = ?", signature);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user