liquibase.database.typeconversion.ext
Class MySQLTypeConverter

java.lang.Object
  extended by liquibase.database.typeconversion.core.AbstractTypeConverter
      extended by liquibase.database.typeconversion.core.MySQLTypeConverter
          extended by liquibase.database.typeconversion.ext.MySQLTypeConverter
All Implemented Interfaces:
liquibase.database.typeconversion.TypeConverter, liquibase.servicelocator.PrioritizedService

public class MySQLTypeConverter
extends liquibase.database.typeconversion.core.MySQLTypeConverter

Author:
Leo Przybylski

Field Summary
protected static List<Integer> oneParam
           
protected static List<Integer> twoParams
           
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
MySQLTypeConverter()
           
 
Method Summary
 String convertToDatabaseTypeString(liquibase.database.structure.Column referenceColumn, liquibase.database.Database database)
           
protected  liquibase.database.structure.type.DataType getDataType(String columnTypeString, Boolean autoIncrement, String dataTypeName, String precision, String additionalInformation)
           
 liquibase.database.structure.type.NumberType getNumberType()
           
 int getPriority()
           
protected  String getSqlTypeName(int type)
          Convert the type value gotten from the metadata which is a value from Types to a String value that can be used in an SQL statement.
 
Methods inherited from class liquibase.database.typeconversion.core.MySQLTypeConverter
getBooleanType, getClobType, getLongBlobType, supports
 
Methods inherited from class liquibase.database.typeconversion.core.AbstractTypeConverter
addPrecisionToType, convertDatabaseValueToObject, convertToCorrectObjectType, getBigIntType, getBlobType, getCharType, getCurrencyType, getDataType, getDataType, getDataType, getDateTimeType, getDateType, getDoubleType, getFloatType, getIntType, getNVarcharType, getSmallIntType, getTextType, getTimeType, getTinyIntType, getUUIDType, getVarcharType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oneParam

protected static final List<Integer> oneParam

twoParams

protected static final List<Integer> twoParams
Constructor Detail

MySQLTypeConverter

public MySQLTypeConverter()
Method Detail

getPriority

public int getPriority()
Specified by:
getPriority in interface liquibase.database.typeconversion.TypeConverter
Specified by:
getPriority in interface liquibase.servicelocator.PrioritizedService
Overrides:
getPriority in class liquibase.database.typeconversion.core.MySQLTypeConverter

getNumberType

public liquibase.database.structure.type.NumberType getNumberType()
Overrides:
getNumberType in class liquibase.database.typeconversion.core.MySQLTypeConverter

convertToDatabaseTypeString

public String convertToDatabaseTypeString(liquibase.database.structure.Column referenceColumn,
                                          liquibase.database.Database database)
Specified by:
convertToDatabaseTypeString in interface liquibase.database.typeconversion.TypeConverter
Overrides:
convertToDatabaseTypeString in class liquibase.database.typeconversion.core.AbstractTypeConverter

getSqlTypeName

protected String getSqlTypeName(int type)
                         throws Exception
Convert the type value gotten from the metadata which is a value from Types to a String value that can be used in an SQL statement. Example output:

Parameters:
type - int value found in
Returns:
String value including package of the type name.
Throws:
Exception

getDataType

protected liquibase.database.structure.type.DataType getDataType(String columnTypeString,
                                                                 Boolean autoIncrement,
                                                                 String dataTypeName,
                                                                 String precision,
                                                                 String additionalInformation)
Overrides:
getDataType in class liquibase.database.typeconversion.core.MySQLTypeConverter


Copyright © 2011 Leo Przybylski. All Rights Reserved.