| 程序包 | 说明 |
|---|---|
| com.easycodebox.jdbc | |
| com.easycodebox.jdbc.config | |
| com.easycodebox.jdbc.util |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
Property.toConditionSql(Table table)
返回作为条件的sql语句
|
String |
Property.toProjectionSql(Table table)
返回映射sql语句,例:s.name as shopName
|
String |
Join.toSql(Table selfTable,
Table referencedTable,
String referencedTableAlias) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected static ConcurrentHashMap<String,Table> |
Configuration.tables |
| 限定符和类型 | 方法和说明 |
|---|---|
static Table |
Configuration.getTable(Class<?> entityClass) |
static Table |
Configuration.getTable(String entityName) |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
AnnotateUtils.fitAssociatedColumn(Table table,
Field field)
处理关联关系ManyToOne、OneToOne等
|
static void |
AnnotateUtils.fitColumn(Table table,
Field field)
加载并解析Column annotation(包含Id annotation)
|
static void |
AnnotateUtils.fitTableAnno(Table table,
Class<?> entity)
加载并解析table annotation
|
static String |
SqlUtils.getInsertSql(Object entity,
Table table,
boolean includePk) |
static String |
SqlUtils.getUpdateSql(Object entity,
Table table) |
Copyright © 2016. All rights reserved.