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, String checklistKey) Full constructor. -
Method Summary
Methods inherited from class org.gbif.api.model.occurrence.DownloadRequest
getChecklistKey, getCreator, getDescription, getFileExtension, getFormat, getMachineDescription, getNotificationAddresses, getNotificationAddressesAsString, getSendNotification, getType, setChecklistKey, 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, @Nullable String checklistKey) 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:
hashCodein classDownloadRequest
-
equals
- Overrides:
equalsin classDownloadRequest
-
toString
- Overrides:
toStringin classDownloadRequest
-