| package test.auto; |
| |
| import java.util.List; |
| |
| import org.apache.cayenne.ObjectContext; |
| import org.apache.cayenne.query.MappedSelect; |
| |
| /** |
| * 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 _SelectQuery { |
| |
| public static final String SELECT_QUERYNAME = "select"; |
| |
| public List<Test> performSelect(ObjectContext context, String param) { |
| MappedSelect<Test> query = MappedSelect.query(SELECT_QUERYNAME, Test.class); |
| query.param("param", param); |
| return query.select(context); |
| } |
| |
| } |