| | |
| | | import java.util.List;
|
| | |
|
| | | public class MonitorPointExample {
|
| | | private static String tableNamePrefix = "monitorpoint.";
|
| | | protected String orderByClause;
|
| | |
|
| | | protected boolean distinct;
|
| | |
| | | if (condition == null) {
|
| | | throw new RuntimeException("Value for condition cannot be null");
|
| | | }
|
| | | criteria.add(new Criterion(condition));
|
| | | criteria.add(new Criterion(tableNamePrefix+condition));
|
| | | }
|
| | |
|
| | | protected void addCriterion(String condition, Object value, String property) {
|
| | | if (value == null) {
|
| | | throw new RuntimeException("Value for " + property + " cannot be null");
|
| | | }
|
| | | criteria.add(new Criterion(condition, value));
|
| | | criteria.add(new Criterion(tableNamePrefix+condition, value));
|
| | | }
|
| | |
|
| | | protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
| | | if (value1 == null || value2 == null) {
|
| | | throw new RuntimeException("Between values for " + property + " cannot be null");
|
| | | }
|
| | | criteria.add(new Criterion(condition, value1, value2));
|
| | | criteria.add(new Criterion(tableNamePrefix+condition, value1, value2));
|
| | | }
|
| | |
|
| | | public Criteria andIdIsNull() {
|
| | |
| | | protected Criteria() {
|
| | | super();
|
| | | }
|
| | | public void addRelationCriterion(String condition, Object value, String property) {
|
| | | if (value == null) {
|
| | | throw new RuntimeException("Value for " + property + " cannot be null");
|
| | | }
|
| | | criteria.add(new Criterion(condition, value));
|
| | | }
|
| | | public Criteria andTbAreaNameEqualTo(String value) {
|
| | | addRelationCriterion("area.name =", value, "area.name");
|
| | | return (Criteria) this;
|
| | | }
|
| | | }
|
| | |
|
| | | public static class Criterion {
|