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, wrapKeyworkprotected 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 AbstractJdbcExpertpublic void formatQuery(Sql sql)
formatQuery in class AbstractJdbcExpertpublic String evalFieldType(MappingField mf)
evalFieldType in interface JdbcExpertevalFieldType in class AbstractJdbcExpertpublic boolean createEntity(Dao dao, Entity<?> en)
JdbcExperten - 实体protected String createResultSetMetaSql(Entity<?> en)
createResultSetMetaSql in class AbstractJdbcExpertpublic Pojo fetchPojoId(Entity<?> en, MappingField idField)
fetchPojoId in interface JdbcExpertfetchPojoId in class AbstractJdbcExpertpublic ValueAdaptor getAdaptor(MappingField ef)
JdbcExpertgetAdaptor in interface JdbcExpertgetAdaptor in class AbstractJdbcExpertef - 实体数据库映射字段public void checkDataSource(Connection conn) throws SQLException
checkDataSource in interface JdbcExpertcheckDataSource in class AbstractJdbcExpertSQLExceptionpublic boolean canCommentWhenAddIndex()
canCommentWhenAddIndex in interface JdbcExpertcanCommentWhenAddIndex in class AbstractJdbcExpertprotected Sql createRelation(Dao dao, LinkField lf)
createRelation in class AbstractJdbcExpertCopyright © 2017. All rights reserved.