public DatabaseDataType toDatabaseDataType ( Database database ) { if ( database instanceof MSSQLDatabase ) { String name = database . escapeDataTypeName ( getName ( ) ) ; int dataTypeMaxParameters = database . getDataTypeMaxParameters ( getName ( ) ) ; Object [ ] parameters = getParameters ( ) ; if ( dataTypeMaxParameters < parameters . length ) { parameters = Arrays . copyOfRange ( parameters , 0 , dataTypeMaxParameters ) ; } return new DatabaseDataType ( name , parameters ) ; } DatabaseDataType type = new DatabaseDataType ( name . toUpperCase ( Locale . US ) , getParameters ( ) ) ; type . addAdditionalInformation ( additionalInformation ) ; return type ; }
Transforms this data type into the native data type of the target DBMS .