
org.jnosql.artemis.document.query.DocumentMapperNameCondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artemis-document Show documentation
Show all versions of artemis-document Show documentation
Eclipse JNoSQL Mapping, Artemis API, to document NoSQL databases
The newest version!
/*
*
* Copyright (c) 2017 Otávio Santana and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
*
* You may elect to redistribute this code under either of these licenses.
*
* Contributors:
*
* Otavio Santana
*
*/
package org.jnosql.artemis.document.query;
/**
* The base to name condition
*/
public interface DocumentMapperNameCondition {
/**
* Creates the equals condition {@link org.jnosql.diana.api.Condition#EQUALS}
*
* @param value the value to the condition
* @param the type
* @return the {@link DocumentMapperWhere}
* @throws NullPointerException when value is null
*/
DocumentMapperWhere eq(T value);
/**
* Creates the like condition {@link org.jnosql.diana.api.Condition#LIKE}
*
* @param value the value to the condition
* @return the {@link DocumentMapperWhere}
* @throws NullPointerException when value is null
*/
DocumentMapperWhere like(String value);
/**
* Creates the greater than condition {@link org.jnosql.diana.api.Condition#GREATER_THAN}
*
* @param the type
* @param value the value to the condition
* @return the {@link DocumentMapperWhere}
* @throws NullPointerException when value is null
*/
DocumentMapperWhere gt(T value);
/**
* Creates the greater equals than condition {@link org.jnosql.diana.api.Condition#GREATER_EQUALS_THAN}
*
* @param the type
* @param value the value to the condition
* @return the {@link DocumentMapperWhere}
* @throws NullPointerException when value is null
*/
DocumentMapperWhere gte(T value);
/**
* Creates the lesser than condition {@link org.jnosql.diana.api.Condition#LESSER_THAN}
*
* @param the type
* @param value the value to the condition
* @return the {@link DocumentMapperWhere}
* @throws NullPointerException when value is null
*/
DocumentMapperWhere lt(T value);
/**
* Creates the lesser equals than condition {@link org.jnosql.diana.api.Condition#LESSER_EQUALS_THAN}
*
* @param the type
* @param value the value to the condition
* @return the {@link DocumentMapperWhere}
* @throws NullPointerException when value is null
*/
DocumentMapperWhere lte(T value);
/**
* Creates the between condition {@link org.jnosql.diana.api.Condition#EQUALS}
*
* @param the type
* @param valueA the values within a given range
* @param valueB the values within a given range
* @return the {@link DocumentMapperWhere}
* @throws NullPointerException when either valueA or valueB are null
*/
DocumentMapperWhere between(T valueA, T valueB);
/**
* Creates in condition {@link org.jnosql.diana.api.Condition#IN}
*
* @param values the values
* @param the type
* @return the {@link DocumentMapperWhere}
* @throws NullPointerException when value is null
*/
DocumentMapperWhere in(Iterable values);
/**
* Creates the equals condition {@link org.jnosql.diana.api.Condition#NOT}
*
* @return {@link DocumentMapperNotCondition}
*/
DocumentMapperNotCondition not();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy