-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#29] Optional params and missing methods for query endpoints added.
- Loading branch information
1 parent
2e3ba81
commit f794fc0
Showing
2 changed files
with
76 additions
and
18 deletions.
There are no files selected for viewing
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
44 changes: 44 additions & 0 deletions
44
src/main/java/org/example/Properties/Query/QueryExecuteSpecifcQueryParams.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package org.example.Properties.Query; | ||
|
||
import javax.swing.text.html.Option; | ||
import java.util.Optional; | ||
import java.util.OptionalInt; | ||
|
||
public class QueryExecuteSpecifcQueryParams { | ||
Optional<String> args = Optional.empty(); | ||
Optional<String> argsDelimiter = Optional.empty(); | ||
OptionalInt offset = OptionalInt.empty(); | ||
OptionalInt count = OptionalInt.empty(); | ||
|
||
public Optional<String> getArgs() { | ||
return args; | ||
} | ||
|
||
public void setArgs(String args) { | ||
this.args = Optional.of(args); | ||
} | ||
|
||
public Optional<String> getArgsDelimiter() { | ||
return argsDelimiter; | ||
} | ||
|
||
public void setArgsDelimiter(String argsDelimiter) { | ||
this.argsDelimiter = Optional.of(argsDelimiter); | ||
} | ||
|
||
public OptionalInt getOffset() { | ||
return offset; | ||
} | ||
|
||
public void setOffset(int offset) { | ||
this.offset = OptionalInt.of(offset); | ||
} | ||
|
||
public OptionalInt getCount() { | ||
return count; | ||
} | ||
|
||
public void setCount(int count) { | ||
this.count = OptionalInt.of(count); | ||
} | ||
} |