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
,java.io.Serializable
- Direct Known Subclasses:
AbstractDataSetSearchCriteria
,AbstractSampleSearchCriteria
,ExperimentSearchCriteria
,MaterialSearchCriteria
@JsonObject("as.dto.common.search.AbstractEntitySearchCriteria") public abstract class AbstractEntitySearchCriteria<ID extends IObjectId> extends AbstractObjectSearchCriteria<ID>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractCompositeSearchCriteria
criteria, operator
-
-
Constructor Summary
Constructors Constructor Description AbstractEntitySearchCriteria()
-
Method Summary
-
Methods inherited from class ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractObjectSearchCriteria
withId
-
Methods inherited from class ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractCompositeSearchCriteria
getCriteria, getOperator, setCriteria, toString, toString, with, withOperator
-
Methods inherited from class ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.AbstractSearchCriteria
equals, hashCode
-
-
-
-
Method Detail
-
withCode
public CodeSearchCriteria withCode()
-
withCodes
public CodesSearchCriteria withCodes()
-
withPermId
public PermIdSearchCriteria withPermId()
-
withRegistrator
public RegistratorSearchCriteria withRegistrator()
-
withModifier
public ModifierSearchCriteria withModifier()
-
withRegistrationDate
public RegistrationDateSearchCriteria withRegistrationDate()
-
withModificationDate
public ModificationDateSearchCriteria withModificationDate()
-
withTag
public TagSearchCriteria withTag()
-
withNumberProperty
public NumberPropertySearchCriteria withNumberProperty(java.lang.String propertyName)
-
withProperty
@Deprecated public StringPropertySearchCriteria withProperty(java.lang.String propertyName)
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
public StrictlyStringPropertySearchCriteria withStringProperty(java.lang.String propertyName)
-
withDateProperty
public DatePropertySearchCriteria withDateProperty(java.lang.String propertyName)
-
withBooleanProperty
public BooleanPropertySearchCriteria withBooleanProperty(java.lang.String propertyName)
-
withAnyProperty
@Deprecated public AnyPropertySearchCriteria 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
public AnyStringPropertySearchCriteria withAnyStringProperty()
-
withAnyNumberProperty
public AnyNumberPropertySearchCriteria withAnyNumberProperty()
-
withAnyDateProperty
public AnyDatePropertySearchCriteria withAnyDateProperty()
-
withAnyBooleanProperty
public AnyBooleanPropertySearchCriteria withAnyBooleanProperty()
-
withAnyField
public AnyFieldSearchCriteria withAnyField()
-
withOrOperator
public abstract AbstractEntitySearchCriteria<ID> withOrOperator()
-
withAndOperator
public abstract AbstractEntitySearchCriteria<ID> withAndOperator()
-
setNegated
protected void setNegated(boolean negated)
- Overrides:
setNegated
in classAbstractSearchCriteria
-
isNegated
public boolean isNegated()
- Specified by:
isNegated
in interfaceISearchCriteria
- Overrides:
isNegated
in classAbstractSearchCriteria
-
negate
protected AbstractEntitySearchCriteria<ID> negate()
-
createBuilder
protected SearchCriteriaToStringBuilder createBuilder()
- Overrides:
createBuilder
in classAbstractCompositeSearchCriteria
-
-