Class QueryDescription
- java.lang.Object
-
- ch.systemsx.cisd.openbis.plugin.query.shared.api.v1.dto.QueryDescription
-
- All Implemented Interfaces:
java.io.Serializable
@JsonObject("QueryDescription") public class QueryDescription extends java.lang.Object implements java.io.Serializable
Description of a query. Contains everything needed on client side to show to the user what queries are available, to specify parameter bindings, and to identify a query uniquely.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Returnstrue
if and only if the specified object is of typeQueryDescription
and has the same ID as this.java.lang.String
getDescription()
Returns an optional description or empty string if undefined.long
getId()
Returns the ID of the query.java.lang.String
getName()
Returns the name of the query.java.util.List<java.lang.String>
getParameters()
Returns the list of parameters to which values should be bound when executing the query.int
hashCode()
Returns the ID.void
setDescription(java.lang.String description)
void
setId(long id)
void
setName(java.lang.String name)
void
setParameters(java.util.List<java.lang.String> parameters)
java.lang.String
toString()
Returns the name.
-
-
-
Method Detail
-
getId
public long getId()
Returns the ID of the query. Will be used to identify the query to be executed.
-
setId
public void setId(long id)
-
getName
public java.lang.String getName()
Returns the name of the query.
-
setName
public void setName(java.lang.String name)
-
getDescription
public java.lang.String getDescription()
Returns an optional description or empty string if undefined.
-
setDescription
public void setDescription(java.lang.String description)
-
getParameters
public java.util.List<java.lang.String> getParameters()
Returns the list of parameters to which values should be bound when executing the query.- Returns:
- an empty list if there are no parameters.
-
setParameters
public void setParameters(java.util.List<java.lang.String> parameters)
-
equals
public boolean equals(java.lang.Object obj)
Returnstrue
if and only if the specified object is of typeQueryDescription
and has the same ID as this.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Returns the ID.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the name.- Overrides:
toString
in classjava.lang.Object
-
-