All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.boon.slumberdb.mysql.SimpleJsonKeyValueStoreMySQL Maven / Gradle / Ivy

There is a newer version: 0.34
Show newest version
package org.boon.slumberdb.mysql;

import org.boon.slumberdb.base.BaseStringStringKeyValueStore;
import org.boon.slumberdb.serialization.JsonDeserializer;
import org.boon.slumberdb.serialization.JsonSerializer;

/**
 * Created by Richard on 4/4/14.
 */
public class SimpleJsonKeyValueStoreMySQL extends BaseStringStringKeyValueStore {

    public SimpleJsonKeyValueStoreMySQL(String url, String userName, String password, String table, Class cls, int batchSize) {
        super(new SimpleStringKeyValueStoreMySQL(url, userName, password, table, batchSize));


        this.valueObjectConverter = new JsonDeserializer<>(cls);
        this.valueSerializer = new JsonSerializer<>(cls);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy