@@ -0,0 +1,1981 @@
+/*-%0A * #%25L%0A * %25%25%0A * Copyright (C) 2020 BMW Car IT GmbH%0A * %25%25%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A *      http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * #L%25%0A */%0Apackage io.joynr.android.contentprovider;%0A%0Aimport android.content.ContentProvider;%0Aimport android.content.ContentValues;%0Aimport android.database.Cursor;%0Aimport android.net.Uri;%0A%0A/**%0A * Class that users can inherit in order to abstract from the process of initial persistent%0A * provider registration.%0A */%0Apublic abstract class PersistentJoynrContentProvider extends ContentProvider %7B%0A    %0A    public PersistentJoynrContentProvider() %7B%0A    %7D%0A%0A    @Override%0A    public int delete(Uri uri, String selection, String%5B%5D selectionArgs) %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public String getType(Uri uri) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    public Uri insert(Uri uri, ContentValues values) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    public boolean onCreate() %7B%0A        registerPersistentProvider();%0A        return true;%0A    %7D%0A%0A    @Override%0A    public Cursor query(Uri uri, String%5B%5D projection, String selection,%0A                        String%5B%5D selectionArgs, String sortOrder) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    public int update(Uri uri, ContentValues values, String selection,%0A                      String%5B%5D selectionArgs) %7B%0A        return 0;%0A    %7D%0A%0A    /**%0A     * Method to override where providers need to be registered in order to be woken up at boot%0A     */%0A    public abstract void registerPersistentProvider();%0A%7D

Add base content provider for Android persistent providers