Interface TransactionStorage
- All Known Implementing Classes:
TransactionMySQLStorage,TransactionSQL,TransactionSQLiteStorage,TransactionStorageYaml
public interface TransactionStorage
Storage of transaction handler class
Create the database to contain this class
Create the database to contain this class
- Since:
- 1.5b
-
Method Summary
Modifier and Type Method Description booleancreateStorageTransaction(Transaction transaction)Create an transactionjava.util.ArrayList<TransactionResult>getList()Deprecated.Every transaction has just one private key.TransactionResultgetTransaction(java.lang.String id)Get the transaction storage in database via id.voidpush(Transaction transaction)Push the transaction into the database.booleanupdateTransaction(Transaction transaction)Update the transaction
-
Method Details
-
push
Push the transaction into the database. If the transaction is available, callingupdateTransaction(Transaction).- Parameters:
transaction-Transactionthe transaction class
-
getList
java.util.ArrayList<TransactionResult> getList()Deprecated.Every transaction has just one private key. Please usinggetTransaction(String)Get the transaction list- Returns:
Transaction
-
getTransaction
Get the transaction storage in database via id. It's work by find the first value and put it.- Parameters:
id- id of transaction- Returns:
- The transaction
-
updateTransaction
Update the transaction- Parameters:
transaction-Transactionobject- Returns:
- the state are update or not
-
createStorageTransaction
Create an transaction- Parameters:
transaction- the transaction to create- Returns:
- return state transaction
-