1 package com.mockobjects.atg; 2 import atg.repository.*; 6 public class MockRepositoryView implements RepositoryView { 7 private MockQueryBuilder queryBuilder; 8 private MockRepositoryItem[] repositoryItems; 9 10 13 public MockRepositoryView() { 14 super(); 15 } 16 17 20 public int executeCountQuery(Query arg1) throws RepositoryException { 21 return 0; 22 } 23 24 27 public atg.repository.RepositoryItem[] executeQuery(Query arg1) throws RepositoryException { 28 return this.repositoryItems; 29 } 30 31 34 public atg.repository.RepositoryItem[] executeQuery(Query arg1, int arg2) throws RepositoryException { 35 return this.repositoryItems; 36 } 37 38 41 public atg.repository.RepositoryItem[] executeQuery(Query arg1, int arg2, int arg3) throws RepositoryException { 42 return this.repositoryItems; 43 } 44 45 48 public atg.repository.RepositoryItem[] executeQuery(Query arg1, int arg2, int arg3, SortDirectives arg4) throws RepositoryException { 49 return this.repositoryItems; 50 } 51 52 55 public atg.repository.RepositoryItem[] executeQuery(Query arg1, int arg2, SortDirectives arg3) throws RepositoryException { 56 return this.repositoryItems; 57 } 58 59 62 public atg.repository.RepositoryItem[] executeQuery(Query arg1, QueryOptions arg2) throws RepositoryException { 63 return this.repositoryItems; 64 } 65 66 69 public atg.repository.RepositoryItem[] executeQuery(Query arg1, SortDirectives arg2) throws RepositoryException { 70 return this.repositoryItems; 71 } 72 73 76 public RepositoryItemDescriptor getItemDescriptor() throws RepositoryException { 77 return null; 78 } 79 80 83 public QueryBuilder getQueryBuilder() { 84 return this.queryBuilder; 85 } 86 87 90 public String getViewName() { 91 return null; 92 } 93 94 97 public void setupQueryBuilder(MockQueryBuilder queryBuilder) { 98 this.queryBuilder = queryBuilder; 99 } 100 101 104 public void setupRepositoryItems(MockRepositoryItem[] items) { 105 this.repositoryItems = items; 106 } 107 } | Popular Tags |