Package org.gbif.api.model.occurrence
Class SqlDownloadRequest
java.lang.Object
org.gbif.api.model.occurrence.DownloadRequest
org.gbif.api.model.occurrence.SqlDownloadRequest
- All Implemented Interfaces:
Serializable
SQL Based downloads — experimental feature.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSqlDownloadRequest
(String sql, String creator, Collection<String> notificationAddresses, Boolean sendNotification, DownloadFormat format, DownloadType type, String description, com.fasterxml.jackson.databind.JsonNode machineDescription) Full constructor. -
Method Summary
Methods inherited from class org.gbif.api.model.occurrence.DownloadRequest
getCreator, getDescription, getFileExtension, getFormat, getMachineDescription, getNotificationAddresses, getNotificationAddressesAsString, getSendNotification, getType, setCreator, setDescription, setFormat, setMachineDescription, setNotificationAddresses, setNotificationAddressesAsString, setSendNotification, setType
-
Constructor Details
-
SqlDownloadRequest
public SqlDownloadRequest() -
SqlDownloadRequest
public SqlDownloadRequest(String sql, @Nullable String creator, @Nullable Collection<String> notificationAddresses, @Nullable Boolean sendNotification, @Nullable DownloadFormat format, @Nullable DownloadType type, @Nullable String description, @Nullable com.fasterxml.jackson.databind.JsonNode machineDescription) Full constructor. Used to create instances using JSON serialization.
-
-
Method Details
-
getSql
- Returns:
- the sql query.
-
setSql
This parameter when present provides the SQL query for custom download- Parameters:
sql
-
-
hashCode
- Overrides:
hashCode
in classDownloadRequest
-
equals
- Overrides:
equals
in classDownloadRequest
-
toString
- Overrides:
toString
in classDownloadRequest
-