org.springframework.data.jpa.datatables.parameter.SearchParameter Maven / Gradle / Ivy
package org.springframework.data.jpa.datatables.parameter;
import javax.validation.constraints.NotNull;
public class SearchParameter {
/**
* Global search value. To be applied to all columns which have searchable as true.
*/
@NotNull
private String value;
/**
* true if the global filter should be treated as a regular expression for advanced searching,
* false otherwise. Note that normally server-side processing scripts will not perform regular
* expression searching for performance reasons on large data sets, but it is technically possible
* and at the discretion of your script.
*/
@NotNull
private Boolean regex;
public SearchParameter() {}
public SearchParameter(String value, Boolean regex) {
super();
this.value = value;
this.regex = regex;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public Boolean getRegex() {
return regex;
}
public void setRegex(Boolean regex) {
this.regex = regex;
}
@Override
public String toString() {
return "SearchParameter [value=" + value + ", regex=" + regex + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy