Class MySQLDialect
java.lang.Object
cool.scx.jdbc.mysql.MySQLDialect
- All Implemented Interfaces:
Dialect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeforeExecuteQuery(PreparedStatement preparedStatement) booleanbooleanbooleancanHandle(DataSource dataSource) createDataSource(String url, String username, String password, String[] parameters) dialectDataTypeToJDBCType(String dialectDataType) <T> TypeHandler<T> findTypeHandler(cool.scx.reflect.TypeInfo type) <T> TypeHandler<T> findTypeHandler(Class<?> type) getColumnConstraint(Column column) getDataTypeNameByJDBCType(JDBCType dataType) getFinalSQL(Statement preparedStatement) getTableConstraint(Table table) jdbcTypeToDialectDataType(JDBCType jdbcType) quoteIdentifier(String identifier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cool.scx.jdbc.dialect.Dialect
applyExclusiveLock, applyLimit, applySharedLock, falseExpression, getAlterTableDDL, getColumnDefinition, getColumnDefinitions, getCreateDefinition, getCreateTableDDL, getDataTypeDefinition, getDataTypeDefinitionByName, trueExpression
-
Constructor Details
-
MySQLDialect
public MySQLDialect()
-
-
Method Details
-
canHandle
-
canHandle
-
canHandle
-
getFinalSQL
- Specified by:
getFinalSQLin interfaceDialect
-
createDataSource
public DataSource createDataSource(String url, String username, String password, String[] parameters) - Specified by:
createDataSourcein interfaceDialect
-
beforeExecuteQuery
public PreparedStatement beforeExecuteQuery(PreparedStatement preparedStatement) throws SQLException - Specified by:
beforeExecuteQueryin interfaceDialect- Throws:
SQLException
-
findTypeHandler
- Specified by:
findTypeHandlerin interfaceDialect
-
findTypeHandler
- Specified by:
findTypeHandlerin interfaceDialect
-
dialectDataTypeToJDBCType
- Specified by:
dialectDataTypeToJDBCTypein interfaceDialect
-
jdbcTypeToDialectDataType
- Specified by:
jdbcTypeToDialectDataTypein interfaceDialect
-
quoteIdentifier
- Specified by:
quoteIdentifierin interfaceDialect
-
getColumnConstraint
- Specified by:
getColumnConstraintin interfaceDialect
-
getDataTypeNameByJDBCType
- Specified by:
getDataTypeNameByJDBCTypein interfaceDialect
-
getTableConstraint
- Specified by:
getTableConstraintin interfaceDialect
-
defaultDataType
- Specified by:
defaultDataTypein interfaceDialect
-