123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920 |
- /*
- * Copyright 2010 The YAPULAN Software Foundation
- *
- * Licensed under the YAPULAN License, Version 2.0 (the "License");
- */
- package com.miniframe.system.model;
- import java.util.ArrayList;
- import java.util.HashMap;
- import java.util.List;
- import java.util.Map;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- public class SysFunctionSQLBuilder {
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- protected String orderByClause;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- protected boolean distinct;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- protected boolean NoWait;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- protected boolean forUpdate;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- protected List<Criteria> oredCriteria;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- private Integer oracleStart;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- private Integer oracleEnd;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- private Integer startOffSet;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- private Integer pageSize;
- /**
- * @generated
- */
- public SysFunctionSQLBuilder() {
- oredCriteria = new ArrayList<Criteria>();
- }
- /**
- * @generated
- */
- protected SysFunctionSQLBuilder(SysFunctionSQLBuilder example) {
- this.orderByClause = example.orderByClause;
- this.oredCriteria = example.oredCriteria;
- this.distinct = example.distinct;
- this.forUpdate = example.forUpdate;
- this.NoWait = example.NoWait;
- }
- /**
- * 设置排序
- * @generated
- */
- public void setOrderByClause(String orderByClause) {
- this.orderByClause = orderByClause;
- }
- /**
- * 获取排序
- * @generated
- */
- public String getOrderByClause() {
- return orderByClause;
- }
- /**
- * 设置是否过滤重复
- * @generated
- */
- public void setDistinct(boolean distinct) {
- this.distinct = distinct;
- }
- /**
- * 获取是否过滤重复
- * @generated
- */
- public boolean isDistinct() {
- return distinct;
- }
- /**
- * 设置是否上锁是否不等待
- * @generated
- */
- public void setNoWait(boolean NoWait) {
- this.NoWait = NoWait;
- }
- /**
- * 设置是否上锁是否不等待
- * @generated
- */
- public boolean isNoWait() {
- return NoWait;
- }
- /**
- * 设置是否行锁定
- * @generated
- */
- public void setForUpdate(boolean forUpdate) {
- this.forUpdate = forUpdate;
- }
- /**
- * 获取是否行锁定
- * @generated
- */
- public boolean isForUpdate() {
- return forUpdate;
- }
- /**
- * @generated
- */
- public List<Criteria> getOredCriteria() {
- return oredCriteria;
- }
- /**
- * @generated
- */
- public void or(Criteria criteria) {
- oredCriteria.add(criteria);
- }
- /**
- * 或
- * @generated
- */
- public Criteria or() {
- Criteria criteria = createCriteriaInternal();
- oredCriteria.add(criteria);
- return criteria;
- }
- /**
- * @generated
- */
- public Criteria createCriteria() {
- Criteria criteria = createCriteriaInternal();
- if (oredCriteria.size() == 0) {
- oredCriteria.add(criteria);
- }
- return criteria;
- }
- /**
- * @generated
- */
- protected Criteria createCriteriaInternal() {
- Criteria criteria = new Criteria();
- return criteria;
- }
- /**
- * 清除
- * @generated
- */
- public void clear() {
- oredCriteria.clear();
- orderByClause = null;
- distinct = false;
- forUpdate = false;
- NoWait = false;
- }
- /**
- * 设置开始行,从1开始
- * @generated
- */
- public void setOracleStart(Integer oracleStart) {
- this.oracleStart = oracleStart;
- this.startOffSet = this.oracleStart - 1;
- if(this.oracleEnd!=null){
- this.pageSize = this.oracleEnd - this.oracleStart + 1;
- }
- }
- /**
- * 获取开始行,从1开始
- * @generated
- */
- public Integer getOracleStart() {
- return oracleStart;
- }
- /**
- * 设置结束行
- * @generated
- */
- public void setOracleEnd(Integer oracleEnd) {
- if(this.oracleStart==null){
- this.oracleStart =1;
- this.startOffSet =0;
- }
- this.oracleEnd = oracleEnd;
- this.pageSize = this.oracleEnd - this.oracleStart + 1;
- }
- /**
- * 获取结束行
- * @generated
- */
- public Integer getOracleEnd() {
- return oracleEnd;
- }
- /**
- * 设置偏移量,从0开始
- * @generated
- */
- public void setStartOffSet(Integer startOffSet) {
- this.startOffSet = startOffSet;
- this.oracleStart = this.startOffSet + 1;
- if(this.pageSize!=null){
- this.oracleEnd = this.oracleStart - 1 + this.pageSize;
- }
- }
- /**
- * 获取偏移量,从0开始
- * @generated
- */
- public Integer getStartOffSet() {
- return startOffSet;
- }
- /**
- * 设置页尺寸
- * @generated
- */
- public void setPageSize(Integer pageSize) {
- if(this.oracleStart==null){
- this.oracleStart =1;
- this.startOffSet =0;
- }
- this.pageSize = pageSize;
- this.oracleEnd = this.pageSize + this.oracleStart - 1;
- }
- /**
- * 获取页尺寸
- * @generated
- */
- public Integer getPageSize() {
- return pageSize;
- }
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- protected abstract static class GeneratedCriteria {
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- protected List<String> criteriaWithoutValue;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- protected List<Map<String, Object>> criteriaWithSingleValue;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- protected List<Map<String, Object>> criteriaWithListValue;
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- protected List<Map<String, Object>> criteriaWithBetweenValue;
- /**
- * @generated
- */
- protected GeneratedCriteria() {
- super();
- criteriaWithoutValue = new ArrayList<String>();
- criteriaWithSingleValue = new ArrayList<Map<String, Object>>();
- criteriaWithListValue = new ArrayList<Map<String, Object>>();
- criteriaWithBetweenValue = new ArrayList<Map<String, Object>>();
- }
- /**
- * 验证
- * @generated
- */
- public boolean isValid() {
- return criteriaWithoutValue.size() > 0
- || criteriaWithSingleValue.size() > 0
- || criteriaWithListValue.size() > 0
- || criteriaWithBetweenValue.size() > 0;
- }
- /**
- * @generated
- */
- public List<String> getCriteriaWithoutValue() {
- return criteriaWithoutValue;
- }
- /**
- * @generated
- */
- public void setCriteriaWithoutValue(List<String> criteriaWithoutValue) {
- this.criteriaWithoutValue = criteriaWithoutValue;
- }
- /**
- * @generated
- */
- public List<Map<String, Object>> getCriteriaWithSingleValue() {
- return criteriaWithSingleValue;
- }
- /**
- * @generated
- */
- public void setCriteriaWithSingleValue(List<Map<String, Object>> criteriaWithSingleValue) {
- this.criteriaWithSingleValue = criteriaWithSingleValue;
- }
- /**
- * @generated
- */
- public List<Map<String, Object>> getCriteriaWithListValue() {
- return criteriaWithListValue;
- }
- /**
- * @generated
- */
- public void setCriteriaWithListValue(List<Map<String, Object>> criteriaWithListValue) {
- this.criteriaWithListValue = criteriaWithListValue;
- }
- /**
- * @generated
- */
- public List<Map<String, Object>> getCriteriaWithBetweenValue() {
- return criteriaWithBetweenValue;
- }
- /**
- * @generated
- */
- public void setCriteriaWithBetweenValue(List<Map<String, Object>> criteriaWithBetweenValue) {
- this.criteriaWithBetweenValue = criteriaWithBetweenValue;
- }
- /**
- * @generated
- */
- public void whereSQL(String condition) {
- if (condition == null) {
- throw new RuntimeException("Value for condition cannot be null");
- }
- criteriaWithoutValue.add(condition);
- }
- /**
- * @generated
- */
- protected void addCriterion(String condition) {
- if (condition == null) {
- throw new RuntimeException("Value for condition cannot be null");
- }
- criteriaWithoutValue.add(condition);
- }
- /**
- * @generated
- */
- protected void addCriterion(String condition, Object value, String property) {
- if (value == null) {
- throw new RuntimeException("Value for " + property + " cannot be null");
- }
- Map<String, Object> map = new HashMap<String, Object>();
- map.put("condition", condition);
- map.put("value", value);
- criteriaWithSingleValue.add(map);
- }
- /**
- * @generated
- */
- protected void addCriterion(String condition, List<? extends Object> values, String property) {
- if (values == null || values.size() == 0) {
- throw new RuntimeException("Value list for " + property + " cannot be null or empty");
- }
- Map<String, Object> map = new HashMap<String, Object>();
- map.put("condition", condition);
- map.put("values", values);
- criteriaWithListValue.add(map);
- }
- /**
- * @generated
- */
- 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");
- }
- List<Object> list = new ArrayList<Object>();
- list.add(value1);
- list.add(value2);
- Map<String, Object> map = new HashMap<String, Object>();
- map.put("condition", condition);
- map.put("values", list);
- criteriaWithBetweenValue.add(map);
- }
- /**
- * @generated
- */
- public Criteria andFunctionidIsNull() {
- addCriterion("functionid is null");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidIsNotNull() {
- addCriterion("functionid <> ''");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidEqualTo(String value) {
- addCriterion("functionid =", value, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidNotEqualTo(String value) {
- addCriterion("functionid <>", value, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidGreaterThan(String value) {
- addCriterion("functionid >", value, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidGreaterThanOrEqualTo(String value) {
- addCriterion("functionid >=", value, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidLessThan(String value) {
- addCriterion("functionid <", value, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidLessThanOrEqualTo(String value) {
- addCriterion("functionid <=", value, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidLike(String value) {
- addCriterion("functionid like", value, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidNotLike(String value) {
- addCriterion("functionid not like", value, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidIn(List<String> values) {
- addCriterion("functionid in", values, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidNotIn(List<String> values) {
- addCriterion("functionid not in", values, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidBetween(String value1, String value2) {
- addCriterion("functionid between", value1, value2, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionidNotBetween(String value1, String value2) {
- addCriterion("functionid not between", value1, value2, "functionid");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameIsNull() {
- addCriterion("classname is null");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameIsNotNull() {
- addCriterion("classname <> ''");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameEqualTo(String value) {
- addCriterion("classname =", value, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameNotEqualTo(String value) {
- addCriterion("classname <>", value, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameGreaterThan(String value) {
- addCriterion("classname >", value, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameGreaterThanOrEqualTo(String value) {
- addCriterion("classname >=", value, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameLessThan(String value) {
- addCriterion("classname <", value, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameLessThanOrEqualTo(String value) {
- addCriterion("classname <=", value, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameLike(String value) {
- addCriterion("classname like", value, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameNotLike(String value) {
- addCriterion("classname not like", value, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameIn(List<String> values) {
- addCriterion("classname in", values, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameNotIn(List<String> values) {
- addCriterion("classname not in", values, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameBetween(String value1, String value2) {
- addCriterion("classname between", value1, value2, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andClassnameNotBetween(String value1, String value2) {
- addCriterion("classname not between", value1, value2, "classname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameIsNull() {
- addCriterion("functionname is null");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameIsNotNull() {
- addCriterion("functionname <> ''");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameEqualTo(String value) {
- addCriterion("functionname =", value, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameNotEqualTo(String value) {
- addCriterion("functionname <>", value, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameGreaterThan(String value) {
- addCriterion("functionname >", value, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameGreaterThanOrEqualTo(String value) {
- addCriterion("functionname >=", value, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameLessThan(String value) {
- addCriterion("functionname <", value, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameLessThanOrEqualTo(String value) {
- addCriterion("functionname <=", value, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameLike(String value) {
- addCriterion("functionname like", value, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameNotLike(String value) {
- addCriterion("functionname not like", value, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameIn(List<String> values) {
- addCriterion("functionname in", values, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameNotIn(List<String> values) {
- addCriterion("functionname not in", values, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameBetween(String value1, String value2) {
- addCriterion("functionname between", value1, value2, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctionnameNotBetween(String value1, String value2) {
- addCriterion("functionname not between", value1, value2, "functionname");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescIsNull() {
- addCriterion("functiondesc is null");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescIsNotNull() {
- addCriterion("functiondesc <> ''");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescEqualTo(String value) {
- addCriterion("functiondesc =", value, "functiondesc");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescNotEqualTo(String value) {
- addCriterion("functiondesc <>", value, "functiondesc");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescGreaterThan(String value) {
- addCriterion("functiondesc >", value, "functiondesc");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescGreaterThanOrEqualTo(String value) {
- addCriterion("functiondesc >=", value, "functiondesc");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescLessThan(String value) {
- addCriterion("functiondesc <", value, "functiondesc");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescLessThanOrEqualTo(String value) {
- addCriterion("functiondesc <=", value, "functiondesc");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescLike(String value) {
- addCriterion("functiondesc like", value, "functiondesc");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescNotLike(String value) {
- addCriterion("functiondesc not like", value, "functiondesc");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescIn(List<String> values) {
- addCriterion("functiondesc in", values, "functiondesc");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescNotIn(List<String> values) {
- addCriterion("functiondesc not in", values, "functiondesc");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescBetween(String value1, String value2) {
- addCriterion("functiondesc between", value1, value2, "functiondesc");
- return (Criteria) this;
- }
- /**
- * @generated
- */
- public Criteria andFunctiondescNotBetween(String value1, String value2) {
- addCriterion("functiondesc not between", value1, value2, "functiondesc");
- return (Criteria) this;
- }
- }
- /**
- * 功能信息表 : 功能信息表
- * @generated
- */
- public static class Criteria extends GeneratedCriteria {
- protected Criteria() {
- super();
- }
- }
- }
|