Added some docs.

This commit is contained in:
Andrew Lalis 2024-01-01 11:27:01 -05:00
parent 7f7d13b5ad
commit db8d121141
2 changed files with 11 additions and 2 deletions

View File

@ -15,7 +15,16 @@ import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
/**
* Interface for methods to obtain any data from a {@link com.andrewlalis.perfin.model.Profile}
* instance. Usually, you'll obtain a repository to interact with entities of a
* certain type.
*/
public interface DataSource {
/**
* Gets the directory in which file content is stored.
* @return The content directory.
*/
Path getContentDir();
AccountRepository getAccountRepository();

View File

@ -1,10 +1,10 @@
package com.andrewlalis.perfin.data.impl;
import com.andrewlalis.perfin.data.AccountRepository;
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.data.util.DateUtil;
import com.andrewlalis.perfin.data.util.DbUtil;
import com.andrewlalis.perfin.model.Account;
import com.andrewlalis.perfin.model.AccountEntry;
import com.andrewlalis.perfin.model.AccountType;