package org.beanmaker.util;

import org.dbbeans.sql.DBTransaction;

public interface DbBeanLabel {

    void setId(final long id);
    long getId();

    String get(final DbBeanLanguage dbBeanLanguage);

    void cacheLabelsFromDB();
    void clearCache();

    void updateLater(final DbBeanLanguage dbBeanLanguage, final String text);

    long updateDB(final DBTransaction transaction);
    void commitTextsToDatabase(final DBTransaction transaction);

    void reset();
    void fullReset();
}

package org.beanmaker.util;

import org.dbbeans.sql.DBTransaction;

import java.util.List;

public interface DbBeanLabel {

    void setId(final long id);
    long getId();

    String get(final DbBeanLanguage dbBeanLanguage);
    String get(final DbBeanLanguage dbBeanLanguage, final Object... parameters);
    String get(final DbBeanLanguage dbBeanLanguage, final List<Object> parameters);

    void cacheLabelsFromDB();
    void clearCache();

    void updateLater(final DbBeanLanguage dbBeanLanguage, final String text);

    long updateDB(final DBTransaction transaction);
    void commitTextsToDatabase(final DBTransaction transaction);

    void reset();
    void fullReset();
}

Augment interface DbBeanLabel with functions that accept parameters