private JdbcBinaryStoreConfiguration buildBinaryStoreConfiguration(JdbcMixedStoreConfiguration configuration) {
ConfigurationBuilder builder = new ConfigurationBuilder();
JdbcBinaryStoreConfigurationBuilder binaryBuilder = builder.persistence().addStore
(JdbcBinaryStoreConfigurationBuilder.class).manageConnectionFactory(false);
binaryBuilder.table().read(configuration.binaryTable());
return binaryBuilder.create();
}
private AdvancedLoadWriteStore getStore(Object key) {
return stringStore.supportsKey(key.getClass()) ? stringStore : binaryStore;
}