use of com.hortonworks.registries.storage.impl.jdbc.provider.mysql.factory.MySqlExecutor in project registry by hortonworks.
the class DbFileStorageTest method setUp.
@Before
public void setUp() throws Exception {
connectionBuilder = new HikariCPConnectionBuilder(HikariBasicConfig.getH2HikariConfig());
MySqlExecutor queryExecutor = new MySqlExecutor(new ExecutionConfig(-1), connectionBuilder);
StorageManager jdbcStorageManager = new JdbcStorageManager(queryExecutor);
transactionManager = (TransactionManager) jdbcStorageManager;
jdbcStorageManager.registerStorables(StorageUtils.getStorableEntities());
dbFileStorage = new DbFileStorage();
dbFileStorage.setStorageManager(jdbcStorageManager);
runScript("create_fileblob.sql");
}
use of com.hortonworks.registries.storage.impl.jdbc.provider.mysql.factory.MySqlExecutor in project registry by hortonworks.
the class MySqlStorageManagerWithCacheIntegrationTest method setFields.
private void setFields(ConnectionBuilder connectionBuilder, Database db) {
JdbcStorageManagerIntegrationTest.connectionBuilder = connectionBuilder;
jdbcStorageManager = createJdbcStorageManager(new MySqlExecutor(new ExecutionConfig(-1), connectionBuilder, newGuavaCacheBuilder()));
database = db;
}
use of com.hortonworks.registries.storage.impl.jdbc.provider.mysql.factory.MySqlExecutor in project registry by hortonworks.
the class TransactionTest method setUp.
@Before
public void setUp() throws Exception {
connectionBuilder = new HikariCPConnectionBuilder(HikariBasicConfig.getH2HikariConfig());
MySqlExecutor queryExecutor = new MySqlExecutor(new ExecutionConfig(-1), connectionBuilder);
StorageManager jdbcStorageManager = new JdbcStorageManager(queryExecutor);
transactionManager = (TransactionManager) jdbcStorageManager;
jdbcStorageManager.registerStorables(StorageUtils.getStorableEntities());
dbFileStorage = new DbFileStorage();
dbFileStorage.setStorageManager(jdbcStorageManager);
runScript("create_fileblob.sql");
}
use of com.hortonworks.registries.storage.impl.jdbc.provider.mysql.factory.MySqlExecutor in project registry by hortonworks.
the class AbstractMySqlStorageManagerNoCacheIntegrationTest method setFields.
private void setFields(ConnectionBuilder connectionBuilder, Database db) {
JdbcStorageManagerIntegrationTest.connectionBuilder = connectionBuilder;
jdbcStorageManager = createJdbcStorageManager(new MySqlExecutor(new ExecutionConfig(-1), connectionBuilder));
database = db;
}
use of com.hortonworks.registries.storage.impl.jdbc.provider.mysql.factory.MySqlExecutor in project registry by hortonworks.
the class AbstractMySqlStorageManagerWithCacheIntegrationTest method setFields.
private void setFields(ConnectionBuilder connectionBuilder, Database db) {
JdbcStorageManagerIntegrationTest.connectionBuilder = connectionBuilder;
jdbcStorageManager = createJdbcStorageManager(new MySqlExecutor(new ExecutionConfig(-1), connectionBuilder, newGuavaCacheBuilder()));
database = db;
}
Aggregations