Refactored project.

This commit is contained in:
Andrew Lalis 2023-12-30 23:11:59 -05:00
parent 00636debf3
commit d5bee39c20
31 changed files with 38 additions and 33 deletions

View File

@ -3,6 +3,7 @@ package com.andrewlalis.perfin;
import com.andrewlalis.javafx_scene_router.AnchorPaneRouterView;
import com.andrewlalis.javafx_scene_router.SceneRouter;
import com.andrewlalis.perfin.model.Profile;
import com.andrewlalis.perfin.view.SceneUtil;
import com.andrewlalis.perfin.view.StartupSplashScreen;
import javafx.application.Application;
import javafx.application.Platform;

View File

@ -1,7 +1,7 @@
package com.andrewlalis.perfin.control;
import com.andrewlalis.javafx_scene_router.RouteSelectionListener;
import com.andrewlalis.perfin.data.DateUtil;
import com.andrewlalis.perfin.data.util.DateUtil;
import com.andrewlalis.perfin.model.Account;
import com.andrewlalis.perfin.model.Profile;
import javafx.fxml.FXML;

View File

@ -2,7 +2,7 @@ package com.andrewlalis.perfin.control;
import com.andrewlalis.javafx_scene_router.RouteSelectionListener;
import com.andrewlalis.perfin.view.component.AccountTile;
import com.andrewlalis.perfin.data.CurrencyUtil;
import com.andrewlalis.perfin.data.util.CurrencyUtil;
import com.andrewlalis.perfin.data.pagination.PageRequest;
import com.andrewlalis.perfin.data.pagination.Sort;
import com.andrewlalis.perfin.model.Profile;

View File

@ -1,7 +1,7 @@
package com.andrewlalis.perfin.control;
import com.andrewlalis.javafx_scene_router.RouteSelectionListener;
import com.andrewlalis.perfin.data.DateUtil;
import com.andrewlalis.perfin.data.util.DateUtil;
import com.andrewlalis.perfin.model.Account;
import com.andrewlalis.perfin.model.CreditAndDebitAccounts;
import com.andrewlalis.perfin.model.Profile;

View File

@ -1,6 +1,6 @@
package com.andrewlalis.perfin.control;
import com.andrewlalis.perfin.data.FileUtil;
import com.andrewlalis.perfin.data.util.FileUtil;
import com.andrewlalis.perfin.model.Profile;
import com.andrewlalis.perfin.view.ProfilesStage;
import javafx.beans.binding.BooleanExpression;

View File

@ -1,7 +1,7 @@
package com.andrewlalis.perfin.control;
import com.andrewlalis.perfin.data.CurrencyUtil;
import com.andrewlalis.perfin.data.DateUtil;
import com.andrewlalis.perfin.data.util.CurrencyUtil;
import com.andrewlalis.perfin.data.util.DateUtil;
import com.andrewlalis.perfin.model.Attachment;
import com.andrewlalis.perfin.model.CreditAndDebitAccounts;
import com.andrewlalis.perfin.model.Profile;

View File

@ -1,8 +1,8 @@
package com.andrewlalis.perfin.control;
import com.andrewlalis.javafx_scene_router.RouteSelectionListener;
import com.andrewlalis.perfin.Pair;
import com.andrewlalis.perfin.SceneUtil;
import com.andrewlalis.perfin.data.util.Pair;
import com.andrewlalis.perfin.view.SceneUtil;
import com.andrewlalis.perfin.data.pagination.Page;
import com.andrewlalis.perfin.data.pagination.PageRequest;
import com.andrewlalis.perfin.data.pagination.Sort;

View File

@ -1,6 +1,9 @@
package com.andrewlalis.perfin.data;
import com.andrewlalis.perfin.data.pagination.PageRequest;
import com.andrewlalis.perfin.data.util.CurrencyUtil;
import com.andrewlalis.perfin.data.util.DbUtil;
import com.andrewlalis.perfin.data.util.ThrowableConsumer;
import com.andrewlalis.perfin.model.Account;
import javafx.application.Platform;

View File

@ -2,7 +2,7 @@ package com.andrewlalis.perfin.data.impl;
import com.andrewlalis.perfin.data.AccountEntryRepository;
import com.andrewlalis.perfin.data.AccountHistoryItemRepository;
import com.andrewlalis.perfin.data.DbUtil;
import com.andrewlalis.perfin.data.util.DbUtil;
import com.andrewlalis.perfin.model.AccountEntry;
import java.math.BigDecimal;

View File

@ -1,7 +1,7 @@
package com.andrewlalis.perfin.data.impl;
import com.andrewlalis.perfin.data.AccountHistoryItemRepository;
import com.andrewlalis.perfin.data.DbUtil;
import com.andrewlalis.perfin.data.util.DbUtil;
import com.andrewlalis.perfin.model.history.AccountHistoryItemType;
import java.sql.Connection;

View File

@ -1,8 +1,8 @@
package com.andrewlalis.perfin.data.impl;
import com.andrewlalis.perfin.data.AccountRepository;
import com.andrewlalis.perfin.data.DateUtil;
import com.andrewlalis.perfin.data.DbUtil;
import com.andrewlalis.perfin.data.util.DateUtil;
import com.andrewlalis.perfin.data.util.DbUtil;
import com.andrewlalis.perfin.data.pagination.Page;
import com.andrewlalis.perfin.data.pagination.PageRequest;
import com.andrewlalis.perfin.model.Account;

View File

@ -1,8 +1,8 @@
package com.andrewlalis.perfin.data.impl;
import com.andrewlalis.perfin.data.AttachmentRepository;
import com.andrewlalis.perfin.data.DbUtil;
import com.andrewlalis.perfin.data.FileUtil;
import com.andrewlalis.perfin.data.util.DbUtil;
import com.andrewlalis.perfin.data.util.FileUtil;
import com.andrewlalis.perfin.model.Attachment;
import com.github.f4b6a3.ulid.UlidCreator;

View File

@ -3,7 +3,7 @@ package com.andrewlalis.perfin.data.impl;
import com.andrewlalis.perfin.data.AccountHistoryItemRepository;
import com.andrewlalis.perfin.data.AttachmentRepository;
import com.andrewlalis.perfin.data.BalanceRecordRepository;
import com.andrewlalis.perfin.data.DbUtil;
import com.andrewlalis.perfin.data.util.DbUtil;
import com.andrewlalis.perfin.model.Attachment;
import com.andrewlalis.perfin.model.BalanceRecord;

View File

@ -1,6 +1,7 @@
package com.andrewlalis.perfin.data.impl;
import com.andrewlalis.perfin.data.*;
import com.andrewlalis.perfin.data.util.UncheckedSqlException;
import java.nio.file.Path;
import java.sql.Connection;

View File

@ -2,7 +2,7 @@ package com.andrewlalis.perfin.data.impl;
import com.andrewlalis.perfin.data.AccountEntryRepository;
import com.andrewlalis.perfin.data.AttachmentRepository;
import com.andrewlalis.perfin.data.DbUtil;
import com.andrewlalis.perfin.data.util.DbUtil;
import com.andrewlalis.perfin.data.TransactionRepository;
import com.andrewlalis.perfin.data.pagination.Page;
import com.andrewlalis.perfin.data.pagination.PageRequest;

View File

@ -1,4 +1,4 @@
package com.andrewlalis.perfin.data;
package com.andrewlalis.perfin.data.util;
import java.math.BigDecimal;
import java.math.RoundingMode;

View File

@ -1,4 +1,4 @@
package com.andrewlalis.perfin.data;
package com.andrewlalis.perfin.data.util;
import java.time.LocalDateTime;
import java.time.ZoneId;

View File

@ -1,4 +1,4 @@
package com.andrewlalis.perfin.data;
package com.andrewlalis.perfin.data.util;
import com.andrewlalis.perfin.data.pagination.Page;
import com.andrewlalis.perfin.data.pagination.PageRequest;

View File

@ -1,4 +1,4 @@
package com.andrewlalis.perfin.data;
package com.andrewlalis.perfin.data.util;
import java.io.IOException;
import java.nio.file.FileVisitResult;

View File

@ -1,4 +1,4 @@
package com.andrewlalis.perfin;
package com.andrewlalis.perfin.data.util;
public record Pair<A, B>(A first, B second) {
public static <A, B> Pair<A, B> of(A first, B second) {

View File

@ -1,4 +1,4 @@
package com.andrewlalis.perfin.data;
package com.andrewlalis.perfin.data.util;
import java.sql.ResultSet;
import java.sql.SQLException;

View File

@ -1,4 +1,4 @@
package com.andrewlalis.perfin.data;
package com.andrewlalis.perfin.data.util;
import java.sql.SQLException;

View File

@ -1,4 +1,4 @@
package com.andrewlalis.perfin.data;
package com.andrewlalis.perfin.data.util;
import java.sql.SQLException;

View File

@ -1,4 +1,4 @@
package com.andrewlalis.perfin.data;
package com.andrewlalis.perfin.data.util;
@FunctionalInterface
public interface ThrowableConsumer<T> {

View File

@ -1,4 +1,4 @@
package com.andrewlalis.perfin.data;
package com.andrewlalis.perfin.data.util;
import java.sql.SQLException;

View File

@ -1,6 +1,6 @@
package com.andrewlalis.perfin.model;
import com.andrewlalis.perfin.data.FileUtil;
import com.andrewlalis.perfin.data.util.FileUtil;
import java.nio.file.Path;
import java.time.LocalDateTime;

View File

@ -1,6 +1,6 @@
package com.andrewlalis.perfin.model;
import com.andrewlalis.perfin.data.DateUtil;
import com.andrewlalis.perfin.data.util.DateUtil;
import java.nio.file.Path;
import java.time.LocalDateTime;

View File

@ -1,6 +1,5 @@
package com.andrewlalis.perfin.view;
import com.andrewlalis.perfin.SceneUtil;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.Window;

View File

@ -1,5 +1,6 @@
package com.andrewlalis.perfin;
package com.andrewlalis.perfin.view;
import com.andrewlalis.perfin.data.util.Pair;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;

View File

@ -1,6 +1,6 @@
package com.andrewlalis.perfin.view;
import com.andrewlalis.perfin.data.ThrowableConsumer;
import com.andrewlalis.perfin.data.util.ThrowableConsumer;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.control.TextArea;

View File

@ -1,7 +1,7 @@
package com.andrewlalis.perfin.view.component;
import com.andrewlalis.perfin.data.CurrencyUtil;
import com.andrewlalis.perfin.data.DateUtil;
import com.andrewlalis.perfin.data.util.CurrencyUtil;
import com.andrewlalis.perfin.data.util.DateUtil;
import com.andrewlalis.perfin.model.CreditAndDebitAccounts;
import com.andrewlalis.perfin.model.Profile;
import com.andrewlalis.perfin.model.Transaction;