Added some docs.
This commit is contained in:
parent
7f7d13b5ad
commit
db8d121141
|
@ -15,7 +15,16 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
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 {
|
public interface DataSource {
|
||||||
|
/**
|
||||||
|
* Gets the directory in which file content is stored.
|
||||||
|
* @return The content directory.
|
||||||
|
*/
|
||||||
Path getContentDir();
|
Path getContentDir();
|
||||||
|
|
||||||
AccountRepository getAccountRepository();
|
AccountRepository getAccountRepository();
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package com.andrewlalis.perfin.data.impl;
|
package com.andrewlalis.perfin.data.impl;
|
||||||
|
|
||||||
import com.andrewlalis.perfin.data.AccountRepository;
|
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.Page;
|
||||||
import com.andrewlalis.perfin.data.pagination.PageRequest;
|
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.Account;
|
||||||
import com.andrewlalis.perfin.model.AccountEntry;
|
import com.andrewlalis.perfin.model.AccountEntry;
|
||||||
import com.andrewlalis.perfin.model.AccountType;
|
import com.andrewlalis.perfin.model.AccountType;
|
||||||
|
|
Loading…
Reference in New Issue