Class AbstractEntitySearchCriteria<ID extends IObjectId>
java.lang.Object
ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractSearchCriteria
ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractCompositeSearchCriteria
ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractObjectSearchCriteria<ID>
ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractEntitySearchCriteria<ID>
- All Implemented Interfaces:
ISearchCriteria,Serializable
- Direct Known Subclasses:
AbstractDataSetSearchCriteria,AbstractSampleSearchCriteria,ExperimentSearchCriteria
@JsonObject("as.dto.common.search.AbstractEntitySearchCriteria")
public abstract class AbstractEntitySearchCriteria<ID extends IObjectId>
extends AbstractObjectSearchCriteria<ID>
- See Also:
-
Field Summary
Fields inherited from class ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractCompositeSearchCriteria
criteria, operator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SearchCriteriaToStringBuilderbooleanprotected AbstractEntitySearchCriteria<ID> negate()protected voidsetNegated(boolean negated) abstract AbstractEntitySearchCriteria<ID> Deprecated.This method does not cast any string to the actual type of the property being queried.withBooleanProperty(String propertyName) withCode()withDateProperty(String propertyName) withNumberProperty(String propertyName) abstract AbstractEntitySearchCriteria<ID> withProperty(String propertyName) Deprecated.This method casts any string to the actual type of the property being queried.withSampleProperty(String propertyName) withStringProperty(String propertyName) withTag()withVocabularyProperty(String propertyName) Methods inherited from class ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractObjectSearchCriteria
withIdMethods inherited from class ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractCompositeSearchCriteria
getCriteria, getOperator, setCriteria, toString, toString, with, withOperatorMethods inherited from class ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractSearchCriteria
equals, hashCode
-
Constructor Details
-
AbstractEntitySearchCriteria
public AbstractEntitySearchCriteria()
-
-
Method Details
-
withCode
-
withCodes
-
withPermId
-
withRegistrator
-
withModifier
-
withRegistrationDate
-
withModificationDate
-
withTag
-
withNumberProperty
-
withProperty
Deprecated.This method casts any string to the actual type of the property being queried. This leads in some cases to cast errors or missing operators for the type later on during query parsing. More often than not, these errors are completely avoidable simply by using the typed methods:withDateProperty(String)withNumberProperty(String)withStringProperty(String)withBooleanProperty(String) -
withStringProperty
-
withDateProperty
-
withBooleanProperty
-
withSampleProperty
-
withVocabularyProperty
-
withAnyProperty
Deprecated.This method does not cast any string to the actual type of the property being queried. Instead it does string comparison, which is inconsistent with the rest of the query engine. It is an inefficient replacement of full text search that actually does a very slow full table scan that can lead to heavy slowdowns on big databases.withAnyDateProperty()withAnyNumberProperty()withAnyStringProperty()withAnyBooleanProperty() -
withAnyStringProperty
-
withAnyNumberProperty
-
withAnyDateProperty
-
withAnyBooleanProperty
-
withAnyField
-
withOrOperator
-
withAndOperator
-
setNegated
protected void setNegated(boolean negated) - Overrides:
setNegatedin classAbstractSearchCriteria
-
isNegated
public boolean isNegated()- Specified by:
isNegatedin interfaceISearchCriteria- Overrides:
isNegatedin classAbstractSearchCriteria
-
negate
-
createBuilder
- Overrides:
createBuilderin classAbstractCompositeSearchCriteria
-