package org.apache.cayenne.testdo.mt.auto; import java.util.List; import org.apache.cayenne.ObjectContext; import org.apache.cayenne.query.NamedQuery; import org.apache.cayenne.testdo.mt.MtTable1; /** * 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 _MultiTier { public static final String ALL_MT_TABLE1_QUERYNAME = "AllMtTable1"; public static final String MT_QUERY_WITH_LOCAL_CACHE_QUERYNAME = "MtQueryWithLocalCache"; public static final String PARAMETERIZED_EJBQLMT_QUERY_QUERYNAME = "ParameterizedEJBQLMtQuery"; public static final String PARAMETERIZED_MT_QUERY_WITH_LOCAL_CACHE_QUERYNAME = "ParameterizedMtQueryWithLocalCache"; public List<MtTable1> performAllMtTable1(ObjectContext context ) { return context.performQuery(new NamedQuery("AllMtTable1")); } public List<MtTable1> performMtQueryWithLocalCache(ObjectContext context ) { return context.performQuery(new NamedQuery("MtQueryWithLocalCache")); } public List<MtTable1> performParameterizedMtQueryWithLocalCache(ObjectContext context , String g) { String[] parameters = { "g", }; Object[] values = { g, }; return context.performQuery(new NamedQuery("ParameterizedMtQueryWithLocalCache", parameters, values)); } }