Long create(Library library) throws IOException;
void update(Library library) throws IOException;
boolean delete(Library library) throws IOException;
int count() throws IOException;
long countBySearch(String querystr) throws IOException;
<BUG>List<Library> getAll() throws IOException;

List<Library> getAllByPageAndSize(int offset, int size, String sortDir, String sortCol) throws IOException;

List<Library> getAllByPageSizeAndSearch(int offset, int size, String querystr, String sortDir, String sortCol) throws IOException;
</BUG>
Library getAdjacentLibrary(long libraryId, boolean before) throws IOException;

Long create(Library library) throws IOException;
void update(Library library) throws IOException;
boolean delete(Library library) throws IOException;
int count() throws IOException;
long countBySearch(String querystr) throws IOException;
List<Library> list() throws IOException;
List<Library> listByPageAndSize(int offset, int size, String sortDir, String sortCol) throws IOException;
List<Library> listByPageSizeAndSearch(int offset, int size, String querystr, String sortDir, String sortCol) throws IOException;
Library getAdjacentLibrary(long libraryId, boolean before) throws IOException;
