Example.java 852 B

123456789101112131415161718192021222324252627282930
  1. package com.nuliji.tools.mybatis;
  2. /**
  3. * Created by gaojie on 2017/11/8.
  4. */
  5. public class Example extends tk.mybatis.mapper.entity.Example {
  6. // 默认的status状态,即为全选
  7. static public final int DEFAULT_STATUS = -1;
  8. static public final String DEFAULT_STATUS_CODE = "-1";
  9. // 默认的空值
  10. static public final int EMPTY_VALUE = 0;
  11. static public final String EMPTY_VALUE_CODE = "0";
  12. public Example(Class<?> entityClass) {
  13. super(entityClass);
  14. }
  15. public Example(Class<?> entityClass, boolean exists) {
  16. super(entityClass, exists);
  17. }
  18. public Example(Class<?> entityClass, boolean exists, boolean notNull) {
  19. super(entityClass, exists, notNull);
  20. }
  21. public Criteria createCriteria() {
  22. Criteria criteria = createCriteriaInternal();
  23. return criteria;
  24. }
  25. }