Created
November 27, 2017 13:39
-
-
Save masztalski/897880ade9f5a86b275f272a51b10722 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface BaseRepository<T,I> { | |
List<T> findAll(); | |
T findById(I id); | |
boolean create(T r); | |
boolean update(T r); | |
boolean delete(T r); | |
boolean deleteAll(); | |
void bathCreate(List<T> objectList); | |
void bathUpdate(List<T> objectList); | |
void bathDelete(List<T> objectList); | |
boolean isEmpty(); | |
long count(); | |
boolean doesTableExists(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment