package org.apache.cayenne.testdo.cay_2641.auto;

import java.util.List;

import org.apache.cayenne.ObjectContext;
import org.apache.cayenne.query.MappedSelect;
import org.apache.cayenne.testdo.cay_2641.ArtistLazy;
import org.apache.cayenne.testdo.cay_2641.PaintingLazy;

/**
 * This class was generated by Cayenne.
 * It is probably a good idea to avoid changing this class manually,
 * since it may be overwritten next time code is regenerated.
 * If you need to make any customizations, please use subclass.
 */
public class _DatamapLazy {

    public static final String PREFETCH_SELECT_QUERYNAME = "prefetchSelect";

    public static final String SIMPLE_SELECT_QUERYNAME = "simpleSelect";

    public List<PaintingLazy> performPrefetchSelect(ObjectContext context) {
        MappedSelect<PaintingLazy> query = MappedSelect.query(PREFETCH_SELECT_QUERYNAME, PaintingLazy.class);
        return query.select(context);
    }


    public List<ArtistLazy> performSimpleSelect(ObjectContext context) {
        MappedSelect<ArtistLazy> query = MappedSelect.query(SIMPLE_SELECT_QUERYNAME, ArtistLazy.class);
        return query.select(context);
    }

}