class ModelAdapter {

    public void delete(@NonNull ModelClass model) {
        Long id = getModelId(model);
        if (isModelExists(id)) {
            modelCache.removeModel(id);
            getDatabase().delete(tableInfo.getTableName(), tableInfo.getPrimaryKeyColumnName() + "=?", new String[]{id.toString()});
            ModelChangeNotifier.get().notifyModelChanged(model, ChangeAction.DELETE);
            ModelChangeNotifier.get().notifyTableChanged(tableInfo.getModelClass(), ChangeAction.DELETE);
        }
        setModelId(model, 0L);
    }

    public  ModelAdapter(@NonNull TableInfo tableInfo);

}