public class ClassDesc extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected ClassAnnotation |
ca
当前实体类的所有注解信息
|
protected Set<String> |
cols |
protected List<String> |
idCols |
protected Map<String,Object> |
idMethods
id的getter/setter方法
|
protected List<String> |
idProperties
主健属性和主键字段
|
protected NameConversion |
nc
命名转换
|
protected Set<String> |
properties
实体类的属性名
|
protected TableDesc |
table
关联的数据库表信息
|
protected Class |
targetClass
实体类
|
| 限定符 | 构造器和说明 |
|---|---|
|
ClassDesc(Class c,
TableDesc table,
NameConversion nc) |
protected |
ClassDesc(TableDesc table,
NameConversion nc)
用于代码生成,一个虚拟的ClassDesc,
|
| 限定符和类型 | 方法和说明 |
|---|---|
ClassDesc |
buildVirtualClass(TableDesc table,
NameConversion nc) |
Set<String> |
getAttrs() |
ClassAnnotation |
getClassAnnotation()
修正拼写错误
|
String |
getIdAttr() |
List<String> |
getIdAttrs() |
List<String> |
getIdCols() |
Map<String,Object> |
getIdMethods() |
Set<String> |
getInCols() |
Class |
getTargetClass() |
protected Class targetClass
protected TableDesc table
protected NameConversion nc
protected ClassAnnotation ca
public ClassDesc(Class c, TableDesc table, NameConversion nc)
protected ClassDesc(TableDesc table, NameConversion nc)
table - nc - public ClassDesc buildVirtualClass(TableDesc table, NameConversion nc)
public String getIdAttr()
public ClassAnnotation getClassAnnotation()
public Class getTargetClass()
Copyright © 2022. All rights reserved.