public class MysqlJdbcExpert extends AbstractJdbcExpert
Modifier and Type | Field and Description |
---|---|
protected static String |
META_CHARSET |
protected static String |
META_ENGINE |
protected static String |
META_INTLEN |
conf, keywords
Constructor and Description |
---|
MysqlJdbcExpert(JdbcExpertConfigFile conf) |
Modifier and Type | Method and Description |
---|---|
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
protected static final String META_ENGINE
protected static final String META_CHARSET
protected static final String META_INTLEN
public MysqlJdbcExpert(JdbcExpertConfigFile conf)
public void formatQuery(Pojo pojo)
formatQuery
in class AbstractJdbcExpert
public void formatQuery(Sql sql)
formatQuery
in class AbstractJdbcExpert
public String evalFieldType(MappingField mf)
evalFieldType
in interface JdbcExpert
evalFieldType
in class AbstractJdbcExpert
public boolean createEntity(Dao dao, Entity<?> en)
JdbcExpert
en
- 实体protected String createResultSetMetaSql(Entity<?> en)
createResultSetMetaSql
in class AbstractJdbcExpert
public Pojo fetchPojoId(Entity<?> en, MappingField idField)
fetchPojoId
in interface JdbcExpert
fetchPojoId
in class AbstractJdbcExpert
public ValueAdaptor getAdaptor(MappingField ef)
JdbcExpert
getAdaptor
in interface JdbcExpert
getAdaptor
in class AbstractJdbcExpert
ef
- 实体数据库映射字段public void checkDataSource(Connection conn) throws SQLException
checkDataSource
in interface JdbcExpert
checkDataSource
in class AbstractJdbcExpert
SQLException
public boolean canCommentWhenAddIndex()
canCommentWhenAddIndex
in interface JdbcExpert
canCommentWhenAddIndex
in class AbstractJdbcExpert
protected Sql createRelation(Dao dao, LinkField lf)
createRelation
in class AbstractJdbcExpert
Copyright © 2017. All rights reserved.