cn.gtmap.estateplat.core.support.mybatis.mapper
类 Example

java.lang.Object
  继承者 cn.gtmap.estateplat.core.support.mybatis.mapper.Example

public class Example
extends Object

通用的Example查询对象

作者:
liuzh

嵌套类摘要
static class Example.Criteria
           
static class Example.Criterion
           
protected static class Example.GeneratedCriteria
           
 
字段摘要
protected  boolean distinct
           
protected  Class<?> entityClass
           
protected  boolean exists
           
protected  String orderByClause
           
protected  List<Example.Criteria> oredCriteria
           
protected  Map<String,EntityHelper.EntityColumn> propertyMap
           
protected  EntityHelper.EntityTable table
           
 
构造方法摘要
Example(Class<?> entityClass)
          默认exists为true
Example(Class<?> entityClass, boolean exists)
          带exists参数的构造方法
 
方法摘要
 void clear()
           
 Example.Criteria createCriteria()
           
protected  Example.Criteria createCriteriaInternal()
           
 Class<?> getEntityClass()
           
 String getOrderByClause()
           
 List<Example.Criteria> getOredCriteria()
           
 boolean isDistinct()
           
 Example.Criteria or()
           
 void or(Example.Criteria criteria)
           
 void setDistinct(boolean distinct)
           
 void setOrderByClause(String orderByClause)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

orderByClause

protected String orderByClause

distinct

protected boolean distinct

exists

protected boolean exists

oredCriteria

protected List<Example.Criteria> oredCriteria

entityClass

protected Class<?> entityClass

table

protected EntityHelper.EntityTable table

propertyMap

protected Map<String,EntityHelper.EntityColumn> propertyMap
构造方法详细信息

Example

public Example(Class<?> entityClass)
默认exists为true

参数:
entityClass -

Example

public Example(Class<?> entityClass,
               boolean exists)
带exists参数的构造方法

参数:
entityClass -
exists - - true时,如果字段不存在就抛出异常,false时,如果不存在就不使用该字段的条件
方法详细信息

getEntityClass

public Class<?> getEntityClass()

getOrderByClause

public String getOrderByClause()

setOrderByClause

public void setOrderByClause(String orderByClause)

isDistinct

public boolean isDistinct()

setDistinct

public void setDistinct(boolean distinct)

getOredCriteria

public List<Example.Criteria> getOredCriteria()

or

public void or(Example.Criteria criteria)

or

public Example.Criteria or()

createCriteria

public Example.Criteria createCriteria()

createCriteriaInternal

protected Example.Criteria createCriteriaInternal()

clear

public void clear()


Copyright © 2015–2021 cn.gtmap. All rights reserved.