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

The following examples show how to use io.github.jhipster.service.filter.StringFilter. 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 File: QueryService.java    From jhipster with 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 File: FieldCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public StringFilter getCreatedBy() {
    return createdBy;
}
 
Example #3
Source File: TeamCriteria.java    From TeamDojo with Apache License 2.0 4 votes vote down vote up
public void setContactPerson(StringFilter contactPerson) {
    this.contactPerson = contactPerson;
}
 
Example #4
Source File: ImageCriteria.java    From TeamDojo with Apache License 2.0 4 votes vote down vote up
public StringFilter getName() {
    return name;
}
 
Example #5
Source File: ImageCriteria.java    From TeamDojo with Apache License 2.0 4 votes vote down vote up
public void setName(StringFilter name) {
    this.name = name;
}
 
Example #6
Source File: ActivityCriteria.java    From TeamDojo with Apache License 2.0 4 votes vote down vote up
public void setData(StringFilter data) {
    this.data = data;
}
 
Example #7
Source File: ReportCriteria.java    From TeamDojo with Apache License 2.0 4 votes vote down vote up
public void setDescription(StringFilter description) {
    this.description = description;
}
 
Example #8
Source File: CountryCriteria.java    From Spring-5.0-Projects with MIT License 4 votes vote down vote up
public void setRegion(StringFilter region) {
    this.region = region;
}
 
Example #9
Source File: ReportCriteria.java    From TeamDojo with Apache License 2.0 4 votes vote down vote up
public void setTitle(StringFilter title) {
    this.title = title;
}
 
Example #10
Source File: QuoteCriteria.java    From tutorials with MIT License 4 votes vote down vote up
public StringFilter getSymbol() {
    return symbol;
}
 
Example #11
Source File: CommentCriteria.java    From TeamDojo with Apache License 2.0 4 votes vote down vote up
public StringFilter getText() {
    return text;
}
 
Example #12
Source File: DimensionCriteria.java    From TeamDojo with Apache License 2.0 4 votes vote down vote up
public void setName(StringFilter name) {
    this.name = name;
}
 
Example #13
Source File: DimensionCriteria.java    From TeamDojo with Apache License 2.0 4 votes vote down vote up
public StringFilter getName() {
    return name;
}
 
Example #14
Source File: FieldCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public void setLastModifiedBy(StringFilter lastModifiedBy) {
    this.lastModifiedBy = lastModifiedBy;
}
 
Example #15
Source File: FieldCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public StringFilter getLastModifiedBy() {
    return lastModifiedBy;
}
 
Example #16
Source File: BaseEntityQueryService.java    From jhipster with Apache License 2.0 4 votes vote down vote up
public StringFilter getName() {
    return name;
}
 
Example #17
Source File: DimensionCriteria.java    From TeamDojo with Apache License 2.0 4 votes vote down vote up
public StringFilter getDescription() {
    return description;
}
 
Example #18
Source File: FieldCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public void setConfig(StringFilter config) {
    this.config = config;
}
 
Example #19
Source File: FieldCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public StringFilter getConfig() {
    return config;
}
 
Example #20
Source File: FieldCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public void setColumnType(StringFilter columnType) {
    this.columnType = columnType;
}
 
Example #21
Source File: FieldCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public StringFilter getColumnType() {
    return columnType;
}
 
Example #22
Source File: FieldCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public void setColumnName(StringFilter columnName) {
    this.columnName = columnName;
}
 
Example #23
Source File: FieldCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public StringFilter getColumnName() {
    return columnName;
}
 
Example #24
Source File: SourceCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public void setLastModifiedBy(StringFilter lastModifiedBy) {
    this.lastModifiedBy = lastModifiedBy;
}
 
Example #25
Source File: SourceCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public StringFilter getLastModifiedBy() {
    return lastModifiedBy;
}
 
Example #26
Source File: SourceCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public void setCreatedBy(StringFilter createdBy) {
    this.createdBy = createdBy;
}
 
Example #27
Source File: SourceCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public StringFilter getCreatedBy() {
    return createdBy;
}
 
Example #28
Source File: SourceCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public void setRemark(StringFilter remark) {
    this.remark = remark;
}
 
Example #29
Source File: SourceCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public StringFilter getRemark() {
    return remark;
}
 
Example #30
Source File: SourceCriteria.java    From alchemy with Apache License 2.0 4 votes vote down vote up
public void setName(StringFilter name) {
    this.name = name;
}