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

org.rapidoid.plugins.db.AbstractDBPlugin Maven / Gradle / Ivy

package org.rapidoid.plugins.db;

import java.util.Comparator;
import java.util.List;
import java.util.Map;

import org.rapidoid.annotation.Authors;
import org.rapidoid.annotation.Since;
import org.rapidoid.concurrent.Callback;
import org.rapidoid.lambda.Operation;
import org.rapidoid.lambda.Predicate;
import org.rapidoid.plugins.AbstractPlugin;

/*
 * #%L
 * rapidoid-plugins
 * %%
 * Copyright (C) 2014 - 2015 Nikolche Mihajlovski and contributors
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

@Authors("Nikolche Mihajlovski")
@Since("3.0.0")
public abstract class AbstractDBPlugin extends AbstractPlugin implements DBPlugin {

	public AbstractDBPlugin(String name) {
		super(name);
	}

	@Override
	public String insert(Object entity) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public void update(Object entity) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public void update(String id, Object entity) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public String persist(Object record) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public String insertOrGetId(Object record) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  List getAll(Class clazz) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public void refresh(Object entity) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public void delete(Object entity) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  List find(Class clazz, Predicate match, Comparator orderBy) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  List find(Predicate match) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  E entity(Class entityType, Map properties) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public List> query(String query, Object... args) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  List query(Class clazz, String query, Object... args) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  RESULT sql(String sql, Object... args) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  void each(Operation lambda) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public void transaction(Runnable transaction, boolean readOnly) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public void transaction(Runnable tx, boolean readonly, Callback callback) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public void deleteAllData() {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  T get(Class clazz, String id) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  T getIfExists(Class clazz, String id) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  List getAll() {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  List getAll(Class clazz, int pageNumber, int pageSize) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  List getAll(Class clazz, List ids) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  void delete(Class clazz, String id) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  List fullTextSearch(String query) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public long size() {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public  void queryAsync(Class clazz, String query, Callback> callback, Object... args) {
		throw new AbstractMethodError("Not implemented!");
	}

	@Override
	public void queryAsync(String query, Callback>> callback, Object... args) {
		throw new AbstractMethodError("Not implemented!");
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy