public class MysqlJdbcExpert extends AbstractJdbcExpert
conf, keywords
构造器和说明 |
---|
MysqlJdbcExpert(JdbcExpertConfigFile conf) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
canCommentWhenAddIndex() |
void |
checkDataSource(Connection conn) |
boolean |
createEntity(Dao dao,
Entity<?> en)
根据实体信息,返回某实体的建表语句
|
protected Sql |
createRelation(Dao dao,
LinkField lf) |
protected String |
createResultSetMetaSql(Entity<?> en) |
String |
evalFieldType(MappingField mf) |
Pojo |
fetchPojoId(Entity<?> en,
MappingField idField) |
void |
formatQuery(Pojo pojo) |
void |
formatQuery(Sql sql) |
ValueAdaptor |
getAdaptor(MappingField ef)
根据字段类型为其获取一个字段适配器
|
String |
getDatabaseType() |
addColumnNeedColumn, addComment, addComment, addDefaultValue, createAddColumnSql, createIndexs, createIndexSql, createPojo, createRelation, dropEntity, dropRelation, formatQuery, getConf, getDefaultValue, getIndexNames, getKeywords, gSQL, isSupportAutoIncrement, isSupportGeneratedKeys, makePksName, setKeywords, setupEntityField, supportTimestampDefault, wrap, wrap, wrapKeywork
public MysqlJdbcExpert(JdbcExpertConfigFile conf)
public void formatQuery(Pojo pojo)
formatQuery
在类中 AbstractJdbcExpert
public void formatQuery(Sql sql)
formatQuery
在类中 AbstractJdbcExpert
public String evalFieldType(MappingField mf)
evalFieldType
在接口中 JdbcExpert
evalFieldType
在类中 AbstractJdbcExpert
public boolean createEntity(Dao dao, Entity<?> en)
JdbcExpert
en
- 实体public Pojo fetchPojoId(Entity<?> en, MappingField idField)
fetchPojoId
在接口中 JdbcExpert
fetchPojoId
在类中 AbstractJdbcExpert
public ValueAdaptor getAdaptor(MappingField ef)
JdbcExpert
getAdaptor
在接口中 JdbcExpert
getAdaptor
在类中 AbstractJdbcExpert
ef
- 实体数据库映射字段public void checkDataSource(Connection conn) throws SQLException
checkDataSource
在接口中 JdbcExpert
checkDataSource
在类中 AbstractJdbcExpert
SQLException
public boolean canCommentWhenAddIndex()
canCommentWhenAddIndex
在接口中 JdbcExpert
canCommentWhenAddIndex
在类中 AbstractJdbcExpert
protected Sql createRelation(Dao dao, LinkField lf)
createRelation
在类中 AbstractJdbcExpert
Copyright © 2017. All rights reserved.