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
public class SqlDownloadRequest extends DownloadRequest
SQL Based downloads — experimental feature.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqlDownloadRequest()
SqlDownloadRequest(String sql, String creator, Collection<String> notificationAddresses, Boolean sendNotification, DownloadType type, DownloadFormat format)
Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@Valid String
getSql()
int
hashCode()
void
setSql(String sql)
This parameter when present provides the SQL query for custom downloadString
toString()
-
Methods inherited from class org.gbif.api.model.occurrence.DownloadRequest
getCreator, getFileExtension, getFormat, getNotificationAddresses, getNotificationAddressesAsString, getSendNotification, getType, setCreator, setFormat, setNotificationAddresses, setNotificationAddressesAsString, setSendNotification, setType
-
-
-
-
Constructor Detail
-
SqlDownloadRequest
public SqlDownloadRequest()
-
SqlDownloadRequest
public SqlDownloadRequest(String sql, @Nullable String creator, @Nullable Collection<String> notificationAddresses, @Nullable Boolean sendNotification, @Nullable DownloadType type, @Nullable DownloadFormat format)
Full constructor. Used to create instances using JSON serialization.
-
-
Method Detail
-
setSql
public void setSql(String sql)
This parameter when present provides the SQL query for custom download- Parameters:
sql
-
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDownloadRequest
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classDownloadRequest
-
toString
public String toString()
- Overrides:
toString
in classDownloadRequest
-
-