public class TransactionHolderModel
extends NamedDbModel
Abstract class that models a database model that has associated transactions
NamedDbModel.Companion
Companion
Constructor and Description |
---|
TransactionHolderModel(Table table,
int id,
java.lang.String name)
Abstract class that models a database model that has associated transactions
|
Modifier and Type | Method and Description |
---|---|
java.util.List<net.namibsun.papio.lib.db.models.Transaction> |
getTransactions(DbHandler dbHandler)
Retrieves all transactions for the model from the database
|
createHelper, getName, toString
public TransactionHolderModel(Table table, int id, java.lang.String name)
Abstract class that models a database model that has associated transactions
table
- : The table in which the model is storedid
- : The ID of the model in the tablename
- : The unique name of the model in the database tabletable
- : The table in which the model is storedid
- : The ID of the model in the tablename
- : The unique name of the model in the database tablepublic java.util.List<net.namibsun.papio.lib.db.models.Transaction> getTransactions(DbHandler dbHandler)
Retrieves all transactions for the model from the database
dbHandler
- : The database handler to use