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

fr.ouestfrance.querydsl.postgrest.mappers.ContainedMapper Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package fr.ouestfrance.querydsl.postgrest.mappers;

import fr.ouestfrance.querydsl.FilterOperation;
import fr.ouestfrance.querydsl.postgrest.PostgrestFilterOperation;
import fr.ouestfrance.querydsl.postgrest.model.Filter;
import fr.ouestfrance.querydsl.postgrest.model.impl.QueryFilter;


/**
 * Concrete mapping for equals
 */
public class ContainedMapper extends AbstractMapper {

    @Override
    public Filter getFilter(String field, Object value) {
        return QueryFilter.of(field, Operators.CONTAINED, value);
    }

    @Override
    public Class operation() {
        return PostgrestFilterOperation.CD.class;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy