Skip to content

Instantly share code, notes, and snippets.

@masztalski
Created November 27, 2017 13:39
Show Gist options
  • Save masztalski/897880ade9f5a86b275f272a51b10722 to your computer and use it in GitHub Desktop.
Save masztalski/897880ade9f5a86b275f272a51b10722 to your computer and use it in GitHub Desktop.
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