KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > medor > optim > jorm > TestJormPDHelper


1 /**
2  * MEDOR: Middleware Enabling Distributed Object Requests
3  *
4  * Copyright (C) 2001-2002 France Telecom R&D
5  * Contact: alexandre.lefebvre@rd.francetelecom.com
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  *
21  * Initial developers: M. Alia, S. Chassande-Barrioz, A. Lefebvre
22  */

23 package org.objectweb.medor.optim.jorm;
24
25 import org.objectweb.medor.jorm.TestJormHelper;
26
27 import java.util.ArrayList JavaDoc;
28
29 /**
30  * @author S.Chassande-Barrioz
31  */

32 public abstract class TestJormPDHelper extends TestJormHelper {
33
34
35     public TestJormPDHelper(String JavaDoc testName, String JavaDoc loggerName) {
36         super(testName, loggerName);
37     }
38
39     public Example getExtentOfA() {
40         ArrayList JavaDoc al = new ArrayList JavaDoc();
41         al.add("org/objectweb/medor/optim/jorm/rdb/A.pd");
42         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.A");
43     }
44
45     public Example getExtentOfAgg() {
46         ArrayList JavaDoc al = new ArrayList JavaDoc();
47         al.add("org/objectweb/medor/optim/jorm/rdb/Agg.pd");
48         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.Agg");
49     }
50
51     public Example getExtentOfOne() {
52         ArrayList JavaDoc al = new ArrayList JavaDoc();
53         al.add("org/objectweb/medor/optim/jorm/rdb/One.pd");
54         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.One");
55     }
56
57     public Example getExtentOfB() {
58         ArrayList JavaDoc al = new ArrayList JavaDoc();
59         al.add("org/objectweb/medor/optim/jorm/rdb/ByteCharCN.pd");
60         al.add("org/objectweb/medor/optim/jorm/rdb/B.pd");
61         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.B");
62     }
63
64     public Example getExtentOfLongLong() {
65         ArrayList JavaDoc al = new ArrayList JavaDoc();
66         al.add("org/objectweb/medor/optim/jorm/rdb/LongLongCN.pd");
67         al.add("org/objectweb/medor/optim/jorm/rdb/LongLong.pd");
68         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.LongLong");
69     }
70
71     public Example getExtentOfB(String JavaDoc[] fieldnames) {
72         ArrayList JavaDoc al = new ArrayList JavaDoc();
73         al.add("org/objectweb/medor/optim/jorm/rdb/ByteCharCN.pd");
74         al.add("org/objectweb/medor/optim/jorm/rdb/B.pd");
75         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.B",
76                 DEFAULT_PNAME_FIELD_NAME, fieldnames);
77     }
78
79     public Example getExtentOfC() {
80         ArrayList JavaDoc al = new ArrayList JavaDoc();
81         al.add("org/objectweb/medor/optim/jorm/rdb/C.pd");
82         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.C");
83     }
84
85     public Example getExtentOfD() {
86         ArrayList JavaDoc al = new ArrayList JavaDoc();
87         al.add("org/objectweb/medor/optim/jorm/rdb/ByteCharCN.pd");
88         al.add("org/objectweb/medor/optim/jorm/rdb/D.pd");
89         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.D");
90     }
91
92     public Example getExtentOfAcolocB() {
93          ArrayList JavaDoc al = new ArrayList JavaDoc();
94          al.add("org/objectweb/medor/optim/jorm/rdb/AcolocB.pd");
95          return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.AcolocB");
96      }
97
98      public Example getExtentOfBcolocC() {
99          ArrayList JavaDoc al = new ArrayList JavaDoc();
100          al.add("org/objectweb/medor/optim/jorm/rdb/BcolocC.pd");
101          return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.BcolocC");
102      }
103
104     public Example getExtentOfCcoloc() {
105         ArrayList JavaDoc al = new ArrayList JavaDoc();
106         al.add("org/objectweb/medor/optim/jorm/rdb/Ccoloc.pd");
107         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.Ccoloc");
108     }
109
110     public Example getExtentOfCustomer() {
111         ArrayList JavaDoc al = new ArrayList JavaDoc();
112         al.add("org/objectweb/medor/optim/jorm/rdb/Customer.pd");
113         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.Customer");
114     }
115
116     public Example getExtentOfCruise() {
117         ArrayList JavaDoc al = new ArrayList JavaDoc();
118         al.add("org/objectweb/medor/optim/jorm/rdb/Cruise.pd");
119         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.Cruise");
120     }
121
122     public Example getExtentOfRes() {
123         ArrayList JavaDoc al = new ArrayList JavaDoc();
124         al.add("org/objectweb/medor/optim/jorm/rdb/Res.pd");
125         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.Res");
126     }
127
128     public Example getExtentOfAddress() {
129         ArrayList JavaDoc al = new ArrayList JavaDoc();
130         al.add("org/objectweb/medor/optim/jorm/rdb/Jt2_Address.pd");
131         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.Jt2_Address");
132     }
133
134     public Example getExtentOfAnimal() {
135         ArrayList JavaDoc al = new ArrayList JavaDoc();
136         al.add("org/objectweb/medor/optim/jorm/rdb/Animal.pd");
137         al.add("org/objectweb/medor/optim/jorm/rdb/Koala.pd");
138         al.add("org/objectweb/medor/optim/jorm/rdb/Kangaroo.pd");
139         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.Animal");
140     }
141
142     public Example getExtentOfAnimalNF() {
143         ArrayList JavaDoc al = new ArrayList JavaDoc();
144         al.add("org/objectweb/medor/optim/jorm/rdb/AnimalCName.pd");
145         al.add("org/objectweb/medor/optim/jorm/rdb/AnimalNF.pd");
146         al.add("org/objectweb/medor/optim/jorm/rdb/KoalaNF.pd");
147         al.add("org/objectweb/medor/optim/jorm/rdb/KangarooNF.pd");
148         return getExtent(al, "org.objectweb.medor.optim.jorm.rdb.AnimalNF");
149     }
150
151     public Example getRewrittenA() {
152         return getRewritten(getExtentOfA());
153     }
154
155     public Example getRewrittenOne() {
156         return getRewritten(getExtentOfOne());
157     }
158
159     public Example getRewrittenB() {
160         return getRewritten(getExtentOfB());
161     }
162
163     public Example getRewrittenC() {
164         return getRewritten(getExtentOfC());
165     }
166
167     public Example getRewrittenD() {
168         return getRewritten(getExtentOfD());
169     }
170 }
171
Popular Tags