- Category - Class in net.namibsun.papio.lib.db.models
-
Models a Category in the database
- Category(id, name) - Constructor for class net.namibsun.papio.lib.db.models.Category
-
Models a Category in the database
- Category.Companion - Class in net.namibsun.papio.lib.db.models
-
Static Methods
- close() - Method in class net.namibsun.papio.lib.db.DbHandler
-
Closes the database connection
- Companion - Static variable in class net.namibsun.papio.lib.db.models.Category
-
Static Methods
- Companion - Static variable in class net.namibsun.papio.lib.db.models.Transaction
-
Static Methods
- Companion - Static variable in class net.namibsun.papio.lib.db.models.TransactionPartner
-
Static Methods
- Companion - Static variable in class net.namibsun.papio.lib.db.models.Wallet
-
Static Methods
- Companion - Static variable in class net.namibsun.papio.lib.db.NamedDbModel
-
Static helper methods
- Companion - Static variable in enum net.namibsun.papio.lib.money.Currency
-
Helper methods for retrieving different types of currencies
- Companion - Static variable in class net.namibsun.papio.lib.money.Value
-
Contains static methods
- compareTo(other) - Method in class net.namibsun.papio.lib.date.IsoDate
-
Compares this IsoObject with another IsoDate object
- component1() - Method in class net.namibsun.papio.lib.money.Value
-
:
- component2() - Method in class net.namibsun.papio.lib.money.Value
-
:
- convert(currency) - Method in class net.namibsun.papio.lib.money.Value
-
Converts this Value to another currency
- convertCurrency(dbHandler, currency) - Method in class net.namibsun.papio.lib.db.models.Transaction
-
Converts the currency of a transaction
- convertCurrency(dbHandler, currency) - Method in class net.namibsun.papio.lib.db.models.Wallet
-
Converts the currency of the wallet. All transaction values in the wallet will also be converted.
- convertValue(value, source, destination) - Method in class net.namibsun.papio.lib.money.CurrencyConverter
-
Converts a value from one currency to another.
- copy(date) - Method in class net.namibsun.papio.lib.date.IsoDate
-
Class that models an ISO-8601 date string
- copy(value, currency) - Method in class net.namibsun.papio.lib.money.Value
-
Class that models a generic monetary value.
A Value object is immutable.
All changing operations yield a new Value object and do not affect the original object.
- create(dbHandler, name) - Method in class net.namibsun.papio.lib.db.models.Category.Companion
-
Creates a new Category in the database and returns the corresponding Category object.
If a category with the same name already exists, no new category will be created
and the existing one will be returned instead
- create(dbHandler, wallet, category, partner, description, amount, date) - Method in class net.namibsun.papio.lib.db.models.Transaction.Companion
-
Creates a new Transaction in the database and returns the corresponding Transaction object.
- create(dbHandler, wallet, category, partner, description, amount, date) - Static method in class net.namibsun.papio.lib.db.models.Transaction
-
Creates a new Transaction in the database and returns the corresponding Transaction object.
- create(dbHandler, name) - Method in class net.namibsun.papio.lib.db.models.TransactionPartner.Companion
-
Creates a new Transaction Partner in the database and returns the corresponding TransactionPartner object.
If a transaction partner with the same name already exists, no new partner will be created
and the existing one will be returned instead
- create(dbHandler, name, initialValue) - Method in class net.namibsun.papio.lib.db.models.Wallet.Companion
-
Creates a new Wallet in the database and returns the corresponding Wallet object.
If a Wallet with the same name already exists, no new partner will be created
and the existing one will be returned instead
- createHelper(dbHandler, table, name, stmt) - Method in class net.namibsun.papio.lib.db.NamedDbModel.Companion
-
Helper method that combines share aspects of a database row creation for named models.
If the model already exists in the database, the existing one will be returned
- createHelper(dbHandler, table, name, stmt) - Static method in class net.namibsun.papio.lib.db.NamedDbModel
-
Helper method that combines share aspects of a database row creation for named models.
If the model already exists in the database, the existing one will be returned
- Currency - Enum in net.namibsun.papio.lib.money
-
Enum that models Fiat (e.g. real-world) currencies like Euro or the US Dollar
as well as crypto-currencies like Bitcoin and Ethereum
- Currency(currencyType, displayAccuracy, symbol) - Constructor for enum net.namibsun.papio.lib.money.Currency
-
Enum that models Fiat (e.g. real-world) currencies like Euro or the US Dollar
as well as crypto-currencies like Bitcoin and Ethereum
- Currency.Companion - Class in net.namibsun.papio.lib.money
-
Helper methods for retrieving different types of currencies
- CurrencyConversionError - Exception in net.namibsun.papio.lib.exceptions
-
Exception that is thrown whenever a currency is converted when the corresponding
exchange rate data is not present.
- CurrencyConversionError(one, two) - Constructor for exception net.namibsun.papio.lib.exceptions.CurrencyConversionError
-
Exception that is thrown whenever a currency is converted when the corresponding
exchange rate data is not present.
- CurrencyConverter - Class in net.namibsun.papio.lib.money
-
Singleton object that handles the exchanging of monetary values from one currency to another.
- CurrencyType - Enum in net.namibsun.papio.lib.money
-
Enum that models different options for currency types
- CurrencyType() - Constructor for enum net.namibsun.papio.lib.money.CurrencyType
-
Enum that models different options for currency types
- generateCache() - Method in class net.namibsun.papio.lib.money.CurrencyConverter
-
Sets the cache to the current exchange rates and return that value.
- get(dbHandler, id) - Method in class net.namibsun.papio.lib.db.models.Category.Companion
-
Retrieves a Category from the database by its ID
- get(dbHandler, nameOrId) - Method in class net.namibsun.papio.lib.db.models.Category.Companion
-
Retrieves a Category from the database by its name or ID
- get(dbHandler, id) - Static method in class net.namibsun.papio.lib.db.models.Category
-
Retrieves a Category from the database by its ID
- get(dbHandler, nameOrId) - Static method in class net.namibsun.papio.lib.db.models.Category
-
Retrieves a Category from the database by its name or ID
- get(dbHandler, id) - Method in class net.namibsun.papio.lib.db.models.Transaction.Companion
-
Retrieves a Transaction from the database by its ID
- get(dbHandler, id) - Static method in class net.namibsun.papio.lib.db.models.Transaction
-
Retrieves a Transaction from the database by its ID
- get(dbHandler, id) - Method in class net.namibsun.papio.lib.db.models.TransactionPartner.Companion
-
Retrieves a Transaction Partner from the database by its ID
- get(dbHandler, nameOrId) - Method in class net.namibsun.papio.lib.db.models.TransactionPartner.Companion
-
Retrieves a Transaction Partner from the database by its name or ID
- get(dbHandler, id) - Static method in class net.namibsun.papio.lib.db.models.TransactionPartner
-
Retrieves a Transaction Partner from the database by its ID
- get(dbHandler, nameOrId) - Static method in class net.namibsun.papio.lib.db.models.TransactionPartner
-
Retrieves a Transaction Partner from the database by its name or ID
- get(dbHandler, id) - Method in class net.namibsun.papio.lib.db.models.Wallet.Companion
-
Retrieves a Wallet from the database by its ID
- get(dbHandler, nameOrId) - Method in class net.namibsun.papio.lib.db.models.Wallet.Companion
-
Retrieves a Wallet from the database by its name or ID
- get(dbHandler, id) - Static method in class net.namibsun.papio.lib.db.models.Wallet
-
Retrieves a Wallet from the database by its ID
- get(dbHandler, nameOrId) - Static method in class net.namibsun.papio.lib.db.models.Wallet
-
Retrieves a Wallet from the database by its name or ID
- getAll(dbHandler) - Method in class net.namibsun.papio.lib.db.models.Category.Companion
-
Retrieves a list of all Category objects in the database
- getAll(dbHandler) - Method in class net.namibsun.papio.lib.db.models.Transaction.Companion
-
Retrieves a list of all Transaction objects in the database
- getAll(dbHandler) - Method in class net.namibsun.papio.lib.db.models.TransactionPartner.Companion
-
Retrieves a list of all TransactionPartner objects in the database
- getAll(dbHandler) - Method in class net.namibsun.papio.lib.db.models.Wallet.Companion
-
Retrieves a list of all Wallet objects in the database
- getAllCryptoCurrencies() - Method in class net.namibsun.papio.lib.money.Currency.Companion
-
- getAllFiatCurrencies() - Method in class net.namibsun.papio.lib.money.Currency.Companion
-
- getAmount() - Method in class net.namibsun.papio.lib.db.models.Transaction
-
Retrieves the amount of money in this transaction
- getBalance(dbHandler) - Method in class net.namibsun.papio.lib.db.models.Wallet
-
Calculates the balance of all transactions
- getCategory() - Method in class net.namibsun.papio.lib.db.models.Transaction
-
:
- getConnection() - Method in class net.namibsun.papio.lib.db.DbHandler
-
:
- getCreatorSql() - Method in enum net.namibsun.papio.lib.db.Table
-
:
- getCurrency() - Method in class net.namibsun.papio.lib.db.models.Wallet
-
Retrieves the currency currently used within this wallet
- getCurrency() - Method in class net.namibsun.papio.lib.money.Value
-
:
- getCurrencyType() - Method in enum net.namibsun.papio.lib.money.Currency
-
:
- getDate() - Method in class net.namibsun.papio.lib.db.models.Transaction
-
:
- getDay() - Method in class net.namibsun.papio.lib.date.IsoDate
-
Retrieves the day of this date
- getDescription() - Method in class net.namibsun.papio.lib.db.models.Transaction
-
:
- getDisplayAccuracy() - Method in enum net.namibsun.papio.lib.money.Currency
-
:
- getExchangeRateData() - Method in class net.namibsun.papio.lib.money.CurrencyConverter
-
- getId() - Method in class net.namibsun.papio.lib.db.DbModel
-
:
- getModel(table, id) - Method in class net.namibsun.papio.lib.db.DbHandler
-
Retrieves a model from the database based on its ID.
- getModel(table, nameOrId) - Method in class net.namibsun.papio.lib.db.DbHandler
-
Retrieves a named model from the database based on a string that either represents their ID or name
- getModels(table) - Method in class net.namibsun.papio.lib.db.DbHandler
-
Retrieves all models in a database table
- getMonth() - Method in class net.namibsun.papio.lib.date.IsoDate
-
Retrieves the month of this date
- getName() - Method in class net.namibsun.papio.lib.db.NamedDbModel
-
:
- getNetworkDisabled() - Method in class net.namibsun.papio.lib.money.CurrencyConverter
-
Can be set to true to disable any network operations.
Originally added to enable testing the caching functionality.
- getPartner() - Method in class net.namibsun.papio.lib.db.models.Transaction
-
:
- getSymbol() - Method in enum net.namibsun.papio.lib.money.Currency
-
:
- getTable() - Method in class net.namibsun.papio.lib.db.DbModel
-
:
- getTableName() - Method in enum net.namibsun.papio.lib.db.Table
-
:
- getTransactionClassifier() - Method in enum net.namibsun.papio.lib.db.Table
-
:
- getTransactions(dbHandler) - Method in class net.namibsun.papio.lib.db.TransactionHolderModel
-
Retrieves all transactions for the model from the database
- getValue() - Method in class net.namibsun.papio.lib.money.Value
-
:
- getWallet() - Method in class net.namibsun.papio.lib.db.models.Transaction
-
:
- getYear() - Method in class net.namibsun.papio.lib.date.IsoDate
-
Retrieves the year of this date
- Table - Enum in net.namibsun.papio.lib.db
-
Enum that models the various tables in the database
- Table(tableName, transactionClassifier, creatorSql) - Constructor for enum net.namibsun.papio.lib.db.Table
-
Enum that models the various tables in the database
- times(multiplicand) - Method in class net.namibsun.papio.lib.money.Value
-
Multiplies the value by an integer value
- toString() - Method in class net.namibsun.papio.lib.date.IsoDate
-
Retrieves the raw date string
- toString() - Method in class net.namibsun.papio.lib.db.DbModel
-
Creates a semicolon-separated String representation of the Model
- toString() - Method in class net.namibsun.papio.lib.db.models.Transaction
-
Generates a String that represents the Transaction object
- toString() - Method in class net.namibsun.papio.lib.db.models.Wallet
-
Represents the wallet as a String
- toString(dbHandler) - Method in class net.namibsun.papio.lib.db.models.Wallet
-
Represents the wallet as String including the current balance
- toString() - Method in class net.namibsun.papio.lib.db.NamedDbModel
-
Creates a semicolon-separated String representation of the Model
- toString() - Method in class net.namibsun.papio.lib.money.Value
-
Creates a string representation of the value that is automatically used in string interpolation
- Transaction - Class in net.namibsun.papio.lib.db.models
-
Models a transaction in the database
A transaction always references a wallet, a category and a transaction partner
Transactions are immutable and have to be deleted and created anew to be changed.
An exception to this is the amount, which may be changed when the associated wallet
changes its currency.
- Transaction(id, wallet, category, partner, description, amount, date) - Constructor for class net.namibsun.papio.lib.db.models.Transaction
-
Models a transaction in the database
A transaction always references a wallet, a category and a transaction partner
Transactions are immutable and have to be deleted and created anew to be changed.
An exception to this is the amount, which may be changed when the associated wallet
changes its currency.
- Transaction.Companion - Class in net.namibsun.papio.lib.db.models
-
Static Methods
- TransactionHolderModel - Class in net.namibsun.papio.lib.db
-
Abstract class that models a database model that has associated transactions
- TransactionHolderModel(table, id, name) - Constructor for class net.namibsun.papio.lib.db.TransactionHolderModel
-
Abstract class that models a database model that has associated transactions
- TransactionPartner - Class in net.namibsun.papio.lib.db.models
-
Class that models a transaction partner in the database
- TransactionPartner(id, name) - Constructor for class net.namibsun.papio.lib.db.models.TransactionPartner
-
Class that models a transaction partner in the database
- TransactionPartner.Companion - Class in net.namibsun.papio.lib.db.models
-
Static Methods