Java Code Examples for io.github.jhipster.service.filter.StringFilter

The following examples show how to use io.github.jhipster.service.filter.StringFilter. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jhipster   Source File: QueryService.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Helper function to return a specification for filtering on a {@link java.lang.String} field, where equality, containment,
 * and null/non-null conditions are supported.
 *
 * @param filter            the individual attribute filter coming from the frontend.
 * @param metaclassFunction lambda, which based on a Root<ENTITY> returns Expression - basicaly picks a column
 * @return a Specification
 */
protected Specification<ENTITY> buildSpecification(StringFilter filter, Function<Root<ENTITY>, Expression<String>> metaclassFunction) {
    if (filter.getEquals() != null) {
        return equalsSpecification(metaclassFunction, filter.getEquals());
    } else if (filter.getIn() != null) {
        return valueIn(metaclassFunction, filter.getIn());
    } else if (filter.getNotIn() != null) {
        return valueNotIn(metaclassFunction, filter.getNotIn());
    } else if (filter.getContains() != null) {
        return likeUpperSpecification(metaclassFunction, filter.getContains());
    } else if (filter.getDoesNotContain() != null) {
        return doesNotContainSpecification(metaclassFunction, filter.getDoesNotContain());
    } else if (filter.getNotEquals() != null) {
        return notEqualsSpecification(metaclassFunction, filter.getNotEquals());
    } else if (filter.getSpecified() != null) {
        return byFieldSpecified(metaclassFunction, filter.getSpecified());
    }
    return null;
}
 
Example 2
Source Project: alchemy   Source File: SinkCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getName() {
    return name;
}
 
Example 3
Source Project: alchemy   Source File: SinkCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setName(StringFilter name) {
    this.name = name;
}
 
Example 4
Source Project: alchemy   Source File: SinkCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getRemark() {
    return remark;
}
 
Example 5
Source Project: Spring-5.0-Projects   Source File: CountryCriteria.java    License: MIT License 4 votes vote down vote up
public StringFilter getRegion() {
    return region;
}
 
Example 6
Source Project: alchemy   Source File: SinkCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getCreatedBy() {
    return createdBy;
}
 
Example 7
Source Project: alchemy   Source File: SinkCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setCreatedBy(StringFilter createdBy) {
    this.createdBy = createdBy;
}
 
Example 8
Source Project: Spring-5.0-Projects   Source File: CountryCriteria.java    License: MIT License 4 votes vote down vote up
public void setCode(StringFilter code) {
    this.code = code;
}
 
Example 9
Source Project: alchemy   Source File: SinkCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setLastModifiedBy(StringFilter lastModifiedBy) {
    this.lastModifiedBy = lastModifiedBy;
}
 
Example 10
Source Project: alchemy   Source File: JobCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getName() {
    return name;
}
 
Example 11
Source Project: Spring-5.0-Projects   Source File: CountryCriteria.java    License: MIT License 4 votes vote down vote up
public StringFilter getCode() {
    return code;
}
 
Example 12
Source Project: Spring-5.0-Projects   Source File: CountryCriteria.java    License: MIT License 4 votes vote down vote up
public StringFilter getGovernmentForm() {
    return governmentForm;
}
 
Example 13
Source Project: alchemy   Source File: JobCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setRemark(StringFilter remark) {
    this.remark = remark;
}
 
Example 14
Source Project: alchemy   Source File: JobCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getClusterJobId() {
    return clusterJobId;
}
 
Example 15
Source Project: alchemy   Source File: JobCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setClusterJobId(StringFilter clusterJobId) {
    this.clusterJobId = clusterJobId;
}
 
Example 16
Source Project: alchemy   Source File: JobCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getCreatedBy() {
    return createdBy;
}
 
Example 17
Source Project: alchemy   Source File: JobCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setCreatedBy(StringFilter createdBy) {
    this.createdBy = createdBy;
}
 
Example 18
Source Project: alchemy   Source File: JobCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getLastModifiedBy() {
    return lastModifiedBy;
}
 
Example 19
Source Project: alchemy   Source File: JobCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setLastModifiedBy(StringFilter lastModifiedBy) {
    this.lastModifiedBy = lastModifiedBy;
}
 
Example 20
Source Project: alchemy   Source File: UdfCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getName() {
    return name;
}
 
Example 21
Source Project: alchemy   Source File: UdfCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setName(StringFilter name) {
    this.name = name;
}
 
Example 22
Source Project: alchemy   Source File: UdfCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getDependency() {
    return dependency;
}
 
Example 23
Source Project: alchemy   Source File: UdfCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setDependency(StringFilter dependency) {
    this.dependency = dependency;
}
 
Example 24
Source Project: alchemy   Source File: UdfCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getCreatedBy() {
    return createdBy;
}
 
Example 25
Source Project: alchemy   Source File: UdfCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setCreatedBy(StringFilter createdBy) {
    this.createdBy = createdBy;
}
 
Example 26
Source Project: alchemy   Source File: UdfCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getLastModifiedBy() {
    return lastModifiedBy;
}
 
Example 27
Source Project: alchemy   Source File: UdfCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setLastModifiedBy(StringFilter lastModifiedBy) {
    this.lastModifiedBy = lastModifiedBy;
}
 
Example 28
Source Project: alchemy   Source File: UdfCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setRemark(StringFilter remark) {
    this.remark = remark;
}
 
Example 29
Source Project: alchemy   Source File: JobSqlCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public StringFilter getCreatedBy() {
    return createdBy;
}
 
Example 30
Source Project: alchemy   Source File: JobSqlCriteria.java    License: Apache License 2.0 4 votes vote down vote up
public void setCreatedBy(StringFilter createdBy) {
    this.createdBy = createdBy;
}