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.SerializableDescription 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 booleanequals(java.lang.Object obj)Returnstrueif and only if the specified object is of typeQueryDescriptionand has the same ID as this.java.lang.StringgetDescription()Returns an optional description or empty string if undefined.longgetId()Returns the ID of the query.java.lang.StringgetName()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.inthashCode()Returns the ID.voidsetDescription(java.lang.String description)voidsetId(long id)voidsetName(java.lang.String name)voidsetParameters(java.util.List<java.lang.String> parameters)java.lang.StringtoString()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)
Returnstrueif and only if the specified object is of typeQueryDescriptionand has the same ID as this.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Returns the ID.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the name.- Overrides:
toStringin classjava.lang.Object
-
-