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 boolean
createStorageTransaction(Transaction transaction)
Create an transactionjava.util.ArrayList<TransactionResult>
getList()
Deprecated.Every transaction has just one private key.TransactionResult
getTransaction(java.lang.String id)
Get the transaction storage in database via id.void
push(Transaction transaction)
Push the transaction into the database.boolean
updateTransaction(Transaction transaction)
Update the transaction
-
Method Details
-
push
Push the transaction into the database. If the transaction is available, callingupdateTransaction(Transaction)
.- Parameters:
transaction
-Transaction
the 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
-Transaction
object- Returns:
- the state are update or not
-
createStorageTransaction
Create an transaction- Parameters:
transaction
- the transaction to create- Returns:
- return state transaction
-