if ( "DB2 UDB for AS/400".equals( databaseName ) ) {
return new DB2400Dialect();
}
if ( databaseName.startsWith( "DB2/" ) ) {
return new DB2Dialect();
}
if ( "Oracle".equals( databaseName ) ) {
final int majorVersion = databaseInfo.getDatabaseMajorVersion();