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

io.convergence_platform.common.database.DatabaseSeedSpec Maven / Gradle / Ivy

Go to download

Holds the common functionality needed by all Convergence Platform-based services written in Java.

The newest version!
package io.convergence_platform.common.database;

import java.util.HashMap;
import java.util.Map;

public class DatabaseSeedSpec {
    public String table;
    public Map fields = new HashMap<>();

    public void addField(String name, Object value) {
        fields.put(name, value);
    }

    public DatabaseSeedSpec table(String table) {
        this.table = table;
        return this;
    }

    public DatabaseSeedSpec field(String name, Object value) {
        addField(name, value);
        return this;
    }

    public static DatabaseSeedSpec create() {
        return new DatabaseSeedSpec();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy