class ModelAdapter {

    @NonNull
    public Long save(@NonNull ModelClass model) {
        Long id = getModelId(model);

        if (isModelExists(id)) {
            update(model, id);
        } else {
            id = insert(model, id);
        }

        ModelChangeNotifier.get().notifyModelChanged(model, ChangeAction.SAVE);
        return id;
    }

    public  ModelAdapter(@NonNull TableInfo tableInfo);

}