Skip to content
Snippets Groups Projects
Commit ce2b5e77 authored by Moritz Staudinger's avatar Moritz Staudinger
Browse files

Added NonNull Annotations again for page and size

parent ef1b131b
No related branches found
No related tags found
4 merge requests!81New stable release,!43Merge dev to master,!33Draft: merge dev to master,!29Resolve "Error querying an empty table"
...@@ -173,17 +173,11 @@ public class MariaDataService extends JdbcConnector implements DataService { ...@@ -173,17 +173,11 @@ public class MariaDataService extends JdbcConnector implements DataService {
@Override @Override
@Transactional @Transactional
public QueryResultDto selectAll(@NonNull Long databaseId, @NonNull Long tableId, Instant timestamp, public QueryResultDto selectAll(@NonNull Long databaseId, @NonNull Long tableId, Instant timestamp,
Long page, Long size) throws TableNotFoundException, @NonNull Long page, @NonNull Long size) throws TableNotFoundException,
DatabaseNotFoundException, ImageNotSupportedException, DatabaseConnectionException, TableMalformedException { DatabaseNotFoundException, ImageNotSupportedException, DatabaseConnectionException, TableMalformedException {
if(timestamp == null) { if(timestamp == null) {
timestamp = Instant.now(); timestamp = Instant.now();
} }
if(page == null ) {
page = 0L;
}
if(size == null) {
size = 100L;
}
if (page < 0) { if (page < 0) {
throw new TableMalformedException("Page number cannot be lower than 0"); throw new TableMalformedException("Page number cannot be lower than 0");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment