All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jparams.store.query.Query Maven / Gradle / Ivy

There is a newer version: 3.1.4
Show newest version
package com.jparams.store.query;

public interface Query
{
    /**
     * Build query definition
     *
     * @return definition
     */
    QueryDefinition build();

    /**
     * Create a new query
     *
     * @param indexName    index name
     * @param valueToMatch value to match
     * @return query
     */
    static BasicQuery where(final String indexName, final Object valueToMatch)
    {
        final QueryImpl query = new QueryImpl();
        query.and(indexName, valueToMatch);
        return query;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy