Skip navigation links
C D E F G H I M N P S T U V W 

C

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

D

DbHandler - Class in net.namibsun.papio.lib.db
Class that manages database calls
DbHandler(connection) - Constructor for class net.namibsun.papio.lib.db.DbHandler
Class that manages database calls
DbModel - Class in net.namibsun.papio.lib.db
Abstract class that models a database model with an ID
DbModel(table, id) - Constructor for class net.namibsun.papio.lib.db.DbModel
Abstract class that models a database model with an ID
delete(dbHandler) - Method in class net.namibsun.papio.lib.db.DbModel
Deletes the model from the database
deserialize(serialized) - Method in class net.namibsun.papio.lib.money.Value.Companion
Generates a Value object from a serialized String

E

equals(p) - Method in class net.namibsun.papio.lib.date.IsoDate
 
equals(other) - Method in class net.namibsun.papio.lib.db.models.Category
Checks for equality with another object
equals(other) - Method in class net.namibsun.papio.lib.db.models.Transaction
Checks for equality with another object
equals(other) - Method in class net.namibsun.papio.lib.db.models.TransactionPartner
Checks for equality with another object
equals(other) - Method in class net.namibsun.papio.lib.db.models.Wallet
Checks for equality with another object
equals(other) - Method in class net.namibsun.papio.lib.money.Value
Overrides the data class equals method to use the compareTo instead of equals method of the BigDecimal class. This ensures that 0.00 and 0.0 are treated the same.

F

format(useCurrencySymbol, decimalSymbol, currencySymbolPositionBack, overrideAccuracy) - Method in class net.namibsun.papio.lib.money.Value
Formats the value into a configurable human-readable String
fromResultSet(resultSet) - Method in class net.namibsun.papio.lib.db.models.Category.Companion
Generates a Category object from a ResultSet
fromResultSet(resultSet) - Static method in class net.namibsun.papio.lib.db.models.Category
Generates a Category object from a ResultSet
fromResultSet(resultSet, dbHandler) - Method in class net.namibsun.papio.lib.db.models.Transaction.Companion
Generates a Transaction object from a ResultSet
fromResultSet(resultSet, dbHandler) - Static method in class net.namibsun.papio.lib.db.models.Transaction
Generates a Transaction object from a ResultSet
fromResultSet(resultSet) - Method in class net.namibsun.papio.lib.db.models.TransactionPartner.Companion
Generates a TransactionPartner object from a TransactionPartner
fromResultSet(resultSet) - Static method in class net.namibsun.papio.lib.db.models.TransactionPartner
Generates a TransactionPartner object from a TransactionPartner
fromResultSet(resultSet) - Method in class net.namibsun.papio.lib.db.models.Wallet.Companion
Generates a Wallet object from a ResultSet
fromResultSet(resultSet) - Static method in class net.namibsun.papio.lib.db.models.Wallet
Generates a Wallet object from a ResultSet

G

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

H

hashCode() - Method in class net.namibsun.papio.lib.date.IsoDate
 
hashCode() - Method in class net.namibsun.papio.lib.money.Value
 

I

INSTANCE - Static variable in class net.namibsun.papio.lib.money.CurrencyConverter
Singleton object that handles the exchanging of monetary values from one currency to another.
IsoDate - Class in net.namibsun.papio.lib.date
Class that models an ISO-8601 date string
IsoDate(date) - Constructor for class net.namibsun.papio.lib.date.IsoDate
Class that models an ISO-8601 date string
IsoDate() - Constructor for class net.namibsun.papio.lib.date.IsoDate
Class that models an ISO-8601 date string
isValid() - Method in class net.namibsun.papio.lib.money.CurrencyConverter
Checks if the values are currently valid

M

minus(value) - Method in class net.namibsun.papio.lib.money.Value
Subtracts a value from this value and returns the result

N

NamedDbModel - Class in net.namibsun.papio.lib.db
Abstract class that models a database model with an ID and name
NamedDbModel(table, id, name) - Constructor for class net.namibsun.papio.lib.db.NamedDbModel
Abstract class that models a database model with an ID and name
NamedDbModel.Companion - Class in net.namibsun.papio.lib.db
Static helper methods
net.namibsun.papio.lib.date - package net.namibsun.papio.lib.date
 
net.namibsun.papio.lib.db - package net.namibsun.papio.lib.db
 
net.namibsun.papio.lib.db.models - package net.namibsun.papio.lib.db.models
 
net.namibsun.papio.lib.exceptions - package net.namibsun.papio.lib.exceptions
 
net.namibsun.papio.lib.money - package net.namibsun.papio.lib.money
 
not() - Method in class net.namibsun.papio.lib.money.Value
Negates the value of this Value object. Equivalent to multiplying with -1

P

plus(value) - Method in class net.namibsun.papio.lib.money.Value
Adds two Values and returns the sum

S

serialize() - Method in class net.namibsun.papio.lib.money.Value
Serializes the value
setCache(cache) - Method in class net.namibsun.papio.lib.money.CurrencyConverter
Sets the cache variable as a fallback for currency exchange rates that could not be found
setCacheFile(cacheFile) - Method in class net.namibsun.papio.lib.money.CurrencyConverter
Sets the cache file. This file will be used to store cached exchange rates
setNetworkDisabled(p) - 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.

T

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

U

update(force, reset) - Method in class net.namibsun.papio.lib.money.CurrencyConverter
Updates the exchange rate data. Will only update if more than a minute has passed since the last update or if the force variable is set to true.

V

Value - Class in net.namibsun.papio.lib.money
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.
Value(value, currency) - Constructor for 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.
Value(value, currency) - Constructor for class net.namibsun.papio.lib.money.Value
Generates a Value object from a String and a currency.
Value.Companion - Class in net.namibsun.papio.lib.money
Contains static methods

W

Wallet - Class in net.namibsun.papio.lib.db.models
Models a Wallet in the database
Wallet(id, name, startingValue) - Constructor for class net.namibsun.papio.lib.db.models.Wallet
Models a Wallet in the database
Wallet.Companion - Class in net.namibsun.papio.lib.db.models
Static Methods
C D E F G H I M N P S T U V W 
Skip navigation links