@Override
@SuppressWarnings ("unchecked")
- public List<BillableReceipt> allReceipts () {
+ public List<BillableReceipt> fetchAllReceipts () {
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allReceipts(): CALLED!", this.getClass().getSimpleName())); //NOI18N
@Override
@SuppressWarnings ("unchecked")
- public List<BillableReceipt> allUsersReceipts (final User user) {
+ public List<BillableReceipt> fetchAllUsersReceipts (final User user) {
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allUsersReceipts(): user={1} - CALLED!", this.getClass().getSimpleName(), user)); //NOI18N
@Override
public boolean isReceiptRegistered (final BillableReceipt receipt) {
// Get all receipts
- final List<BillableReceipt> receipts = this.allReceipts();
+ final List<BillableReceipt> receipts = this.fetchAllReceipts();
// Is the list empty?
if (receipts.isEmpty()) {
* Get all receipt's receipt items. No need to look global as people may
* buy the same item again and again ... ;-)
*/
- final List<BillableReceiptItem> receiptItems = this.receiptItemBean.allReceiptItems(receiptItem.getItemReceipt());
+ final List<BillableReceiptItem> receiptItems = this.receiptItemBean.fetchReceiptItemsByReceipt(receiptItem.getItemReceipt());
// Loop through all entries
for (final BillableReceiptItem item : receiptItems) {
@Override
@SuppressWarnings ("unchecked")
- public List<BillableReceiptItem> allReceiptItems () {
+ public List<BillableReceiptItem> fetchAllReceiptItems () {
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allReceiptItems(): CALLED!", this.getClass().getSimpleName())); //NOI18N
@Override
@SuppressWarnings ("unchecked")
- public List<BillableReceiptItem> allReceiptItems (final BillableReceipt receipt) {
+ public List<BillableReceiptItem> fetchReceiptItemsByReceipt (final BillableReceipt receipt) {
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allReceiptItems(): receipt={1} - CALLED!", this.getClass().getSimpleName(), receipt)); //NOI18N
@Override
@SuppressWarnings ("unchecked")
- public List<BillableReceiptItem> allUsersReceiptItems (final User user) {
+ public List<BillableReceiptItem> fetchReceiptItemsByUserUser (final User user) {
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.allUsersReceiptItems(): user={1} - CALLED!", this.getClass().getSimpleName(), user)); //NOI18N
* Get all receipt's receipt items. No need to look global as people may
* buy the same item again and again ... ;-)
*/
- final List<BillableReceiptItem> receiptItems = this.allReceiptItems(receiptItem.getItemReceipt());
+ final List<BillableReceiptItem> receiptItems = this.fetchReceiptItemsByReceipt(receiptItem.getItemReceipt());
// Loop through all entries
for (final BillableReceiptItem item : receiptItems) {