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

jpaoletti.jpm.core.DataAccessVoid Maven / Gradle / Ivy

The newest version!
package jpaoletti.jpm.core;

import java.util.ArrayList;
import java.util.List;

/**
 * An implementation of Data Access that simply do nothing
 * 
 * @author jpaoletti
 * 
 */
public class DataAccessVoid extends AbstractDataAccess {

    @Override
    public void add(PMContext ctx, Object instance) throws PMException {
    }

    @Override
    public Long count(PMContext ctx) throws PMException {
        return 0L;
    }

    @Override
    public void delete(PMContext ctx, Object object) throws PMException {
    }

    @Override
    public Object getItem(PMContext ctx, String property, String value) throws PMException {
        return null;
    }

    @Override
    public List list(PMContext ctx, EntityFilter filter, ListFilter lfilter, ListSort sort, Integer from, Integer count) throws PMException {
        return new ArrayList();
    }

    @Override
    public void update(PMContext ctx, Object instance) throws PMException {
    }
}