try
{
connection.setAutoCommit(true);
DatabaseProperties properties = new LazyDatabaseProperties(new SimpleDatabaseMetaDataProvider(connection.getMetaData()), dialect);
String enumType = properties.findType(0, Types.TINYINT, Types.SMALLINT, Types.INTEGER);
String stringType = properties.findType(Database.ID_MAX_SIZE, Types.VARCHAR);
String binaryType = properties.findType(this.cluster.getTransactionIdentifierFactory().size(), Types.BINARY);
String varBinaryType = properties.findType(0, Types.VARBINARY);