public abstract class SQLProvider extends Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
SQLProvider() |
|
SQLProvider(Class<? extends Entity> entityClass) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
countByExample(Example ex) |
String |
dealColumnName(String v) |
String |
deleteByExample(Example ex) |
String |
deleteById(String schema,
int id) |
String |
existsByExample(Example ex) |
protected org.apache.ibatis.jdbc.SQL |
fromSub(org.apache.ibatis.jdbc.SQL sql) |
protected org.apache.ibatis.jdbc.SQL |
fromSub(String schema,
org.apache.ibatis.jdbc.SQL sql) |
protected String |
innerCountByExample(Example ex,
String exWhere) |
protected String |
innerSelectByExample(Example ex,
String exWhere) |
String |
insert(Object info) |
String |
insertSelective(Entity info) |
String |
selectByExample(Example ex) |
String |
selectById(String schema,
Integer id) |
protected org.apache.ibatis.jdbc.SQL |
selectSub(org.apache.ibatis.jdbc.SQL sql) |
String |
updateSelectiveByExample(Entity info,
Example example) |
String |
updateSelectiveById(Entity info) |
protected org.apache.ibatis.jdbc.SQL |
whereByExampleSub(org.apache.ibatis.jdbc.SQL sql) |
public String insertSelective(Entity info) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
public String insert(Object info) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
public String updateSelectiveById(Entity info) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
public String updateSelectiveByExample(@Param(value="record") Entity info, @Param(value="example") Example example) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
protected org.apache.ibatis.jdbc.SQL selectSub(org.apache.ibatis.jdbc.SQL sql)
protected org.apache.ibatis.jdbc.SQL fromSub(org.apache.ibatis.jdbc.SQL sql)
protected org.apache.ibatis.jdbc.SQL fromSub(String schema, org.apache.ibatis.jdbc.SQL sql)
protected org.apache.ibatis.jdbc.SQL whereByExampleSub(org.apache.ibatis.jdbc.SQL sql)
public String selectById(@Param(value="schema") String schema, @Param(value="id") Integer id)
public String deleteById(@Param(value="schema") String schema, @Param(value="id") int id)
Copyright © 2020. All rights reserved.