public abstract class AbstractJdbcExpert extends Object implements JdbcExpert
| 限定符和类型 | 字段和说明 |
|---|---|
protected JdbcExpertConfigFile |
conf
提供给子类使用的配置文件对象
|
protected Set<String> |
keywords |
| 构造器和说明 |
|---|
AbstractJdbcExpert(JdbcExpertConfigFile conf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateEntity, getDatabaseTypeprotected JdbcExpertConfigFile conf
public AbstractJdbcExpert(JdbcExpertConfigFile conf)
public void setupEntityField(Connection conn, Entity<?> en)
JdbcExpert实体类在解析的时候会用到这个函数
setupEntityField 在接口中 JdbcExpertconn - 数据库连接en - 实体public ValueAdaptor getAdaptor(MappingField ef)
JdbcExpertgetAdaptor 在接口中 JdbcExpertef - 实体数据库映射字段public Pojo createPojo(SqlType type)
JdbcExpertcreatePojo 在接口中 JdbcExperttype - POJO 语句的 SQL 类型SqlTypepublic boolean dropEntity(Dao dao, Entity<?> en)
JdbcExpertdropEntity 在接口中 JdbcExperten - 实体public Map<String,Object> getConf()
getConf 在接口中 JdbcExpertpublic void createRelation(Dao dao, Entity<?> en)
createRelation 在接口中 JdbcExpertpublic void dropRelation(Dao dao, Entity<?> en)
dropRelation 在接口中 JdbcExpertpublic String evalFieldType(MappingField mf)
evalFieldType 在接口中 JdbcExpertprotected static List<DaoStatement> wrap(String... sqls)
protected static List<DaoStatement> wrap(List<String> sqls)
protected String getDefaultValue(MappingField mf)
public Sql createIndexSql(Entity<?> en, EntityIndex index)
createIndexSql 在接口中 JdbcExpertpublic void formatQuery(DaoStatement daoStatement)
JdbcExpertformatQuery 在接口中 JdbcExpertdaoStatement - Dao 语句public abstract void formatQuery(Pojo pojo)
public void formatQuery(Sql sql)
public Pojo fetchPojoId(Entity<?> en, MappingField idField)
fetchPojoId 在接口中 JdbcExpertpublic boolean isSupportAutoIncrement()
isSupportAutoIncrement 在接口中 JdbcExpertpublic void addDefaultValue(StringBuilder sb, MappingField mf)
public boolean addColumnNeedColumn()
addColumnNeedColumn 在接口中 JdbcExpertpublic boolean supportTimestampDefault()
supportTimestampDefault 在接口中 JdbcExpertpublic void setKeywords(Set<String> keywords)
setKeywords 在接口中 JdbcExpertpublic String wrapKeywork(String columnName, boolean force)
wrapKeywork 在接口中 JdbcExpertpublic boolean isSupportGeneratedKeys()
isSupportGeneratedKeys 在接口中 JdbcExpertpublic void checkDataSource(Connection conn) throws SQLException
checkDataSource 在接口中 JdbcExpertSQLExceptionpublic Sql createAddColumnSql(Entity<?> en, MappingField mf)
createAddColumnSql 在接口中 JdbcExpertpublic boolean canCommentWhenAddIndex()
canCommentWhenAddIndex 在接口中 JdbcExpertpublic List<String> getIndexNames(Entity<?> en, Connection conn) throws SQLException
getIndexNames 在接口中 JdbcExpertSQLExceptionCopyright © 2017. All rights reserved.