Package ai.dat.adapter.mysql
Class MySqlDatabaseAdapter
java.lang.Object
ai.dat.core.adapter.GenericSqlDatabaseAdapter
ai.dat.adapter.mysql.MySqlDatabaseAdapter
- All Implemented Interfaces:
DatabaseAdapter
MySQL数据库适配器
处理MySQL特定的数据类型转换和映射
-
Field Summary
Fields inherited from class ai.dat.core.adapter.GenericSqlDatabaseAdapter
dataSource, semanticAdapter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjecthandleSpecificTypes(Object value, int columnType) limitClause(int limit) protected StringtoAnsiSqlType(int columnType, String columnTypeName, int precision, int scale) protected inttoColumnType(String dataType) Methods inherited from class ai.dat.core.adapter.GenericSqlDatabaseAdapter
createTable, dropTableIfExists, executeQuery, generateSql, getColumnMetadata, getCreateTableSql, getDropTableSqlIfExists, getInsertSql, initTable, insertTable, quoteIdentifier, semanticAdapter, setInsertParameters, setParameterValue
-
Constructor Details
-
MySqlDatabaseAdapter
-
-
Method Details
-
handleSpecificTypes
- Specified by:
handleSpecificTypesin classGenericSqlDatabaseAdapter
-
toAnsiSqlType
-
stringDataType
- Overrides:
stringDataTypein classGenericSqlDatabaseAdapter
-
toColumnType
- Specified by:
toColumnTypein classGenericSqlDatabaseAdapter
-
limitClause
-