001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package com.sap.mw.jco;
018:
019: import java.util.Properties;
020: import java.net.URL;
021:
022: /**
023: * **********************************************************************
024: * * W A R N I N G *
025: * **********************************************************************
026: *
027: * This is a mock object of the class, not the actual class.
028: * It's used to compile the code in absence of the actual class.
029: *
030: * This clsss is created by hand, not automatically.
031: *
032: * **********************************************************************
033: *
034: * @version CVS $Id: JCO.java 433543 2006-08-22 06:22:54Z crossley $
035: */
036:
037: public class JCO {
038:
039: public static void addClientPool(String SID, int poolsize,
040: Properties properties) {
041: }
042:
043: public static void setTraceLevel(int level) {
044: }
045:
046: public static JCO.Client getClient(String key) {
047: return null;
048: }
049:
050: public static void releaseClient(JCO.Client client) {
051: }
052:
053: public static void removeClientPool(String key) {
054: }
055:
056: public static JCO.PoolManager getClientPoolManager() {
057: return null;
058: }
059:
060: public static class PoolManager {
061:
062: public JCO.Pool getPool(String name) {
063: return null;
064: }
065: }
066:
067: public static class Pool {
068:
069: public final void setTrace(boolean trace) {
070: }
071: }
072:
073: public static class Function {
074:
075: public JCO.ParameterList getImportParameterList() {
076: return null;
077: }
078:
079: public JCO.ParameterList getExportParameterList() {
080: return null;
081: }
082:
083: public JCO.ParameterList getTableParameterList() {
084: return null;
085: }
086:
087: public String getName() {
088: return null;
089: }
090: }
091:
092: public static class ParameterList extends Record {
093: }
094:
095: public static class Attributes {
096: }
097:
098: public static class Throughput {
099: }
100:
101: public static class Repository implements IRepository {
102: public Repository(String s, JCO.Client client) {
103: }
104:
105: public IFunctionTemplate getFunctionTemplate(String name) {
106: return null;
107: }
108: }
109:
110: public static class Record {
111:
112: public String getName(int index) {
113: return null;
114: }
115:
116: public final JCO.Field getField(int index) {
117: return null;
118: }
119:
120: public final JCO.Field getField(String name) {
121: return null;
122: }
123:
124: public String getString(int index) {
125: return null;
126: }
127:
128: public JCO.Structure getStructure(int index) {
129: return null;
130: }
131:
132: public JCO.Structure getStructure(String name) {
133: return null;
134: }
135:
136: public JCO.Table getTable(int index) {
137: return null;
138: }
139:
140: public JCO.Table getTable(String name) {
141: return null;
142: }
143:
144: public int getFieldCount() {
145: return -1;
146: }
147: }
148:
149: public static class Field {
150:
151: public boolean isStructure() {
152: return false;
153: }
154:
155: public void setValue(String value)
156: throws JCO.ConversionException {
157: }
158: }
159:
160: public static class Table extends Record {
161:
162: public void appendRow() {
163: }
164:
165: public final int getNumRows() {
166: return -1;
167: }
168:
169: public void setRow(int pos) {
170: }
171: }
172:
173: public static class Structure extends Record {
174: }
175:
176: public static class AbapException extends Throwable {
177:
178: public final String getKey() {
179: return null;
180: }
181: }
182:
183: public static class ConversionException extends Throwable {
184: }
185:
186: public static class Client {
187:
188: public void abort(String message) {
189: }
190:
191: public void connect() {
192: }
193:
194: public Object clone() {
195: return null;
196: }
197:
198: public void disconnect() {
199: }
200:
201: public void execute(JCO.Function function) {
202: }
203:
204: public void execute(String name, JCO.ParameterList input,
205: JCO.ParameterList output) {
206: }
207:
208: public void execute(String name, JCO.ParameterList input,
209: JCO.ParameterList output, JCO.ParameterList tables) {
210: }
211:
212: public void execute(JCO.Function function, java.lang.String tid) {
213: }
214:
215: public void execute(JCO.Function function, String tid,
216: String queue) {
217: }
218:
219: public void execute(JCO.Function function, String tid,
220: String queue, int pos) {
221: }
222:
223: public void execute(String name, JCO.ParameterList input,
224: JCO.ParameterList tables, String tid) {
225: }
226:
227: public void execute(String name, JCO.ParameterList input,
228: JCO.ParameterList tables, String tid, String queue) {
229: }
230:
231: public void execute(String name, JCO.ParameterList input,
232: JCO.ParameterList tables, String tid, String queue,
233: int pos) {
234: }
235:
236: public String createTID() {
237: return null;
238: }
239:
240: public void confirmTID(String tid) {
241: }
242:
243: public final void ping() {
244: }
245:
246: public boolean getAbapDebug() {
247: return false;
248: }
249:
250: public String getASHost() {
251: return null;
252: }
253:
254: public JCO.Attributes getAttributes() {
255: return null;
256: }
257:
258: public String getClient() {
259: return null;
260: }
261:
262: public String getGroup() {
263: return null;
264: }
265:
266: public String getGWHost() {
267: return null;
268: }
269:
270: public String getGWServ() {
271: return null;
272: }
273:
274: public String getLanguage() {
275: return null;
276: }
277:
278: public String getMSHost() {
279: return null;
280: }
281:
282: public String[][] getPropertyInfo() {
283: return null;
284: }
285:
286: public int getSapGui() {
287: return -1;
288: }
289:
290: public byte getState() {
291: return 0;
292: }
293:
294: public String getSystemID() {
295: return null;
296: }
297:
298: public String getSystemNumber() {
299: return null;
300: }
301:
302: public String getTPName() {
303: return null;
304: }
305:
306: public boolean getTrace() {
307: return false;
308: }
309:
310: public URL getURL() {
311: return null;
312: }
313:
314: public String getUser() {
315: return null;
316: }
317:
318: public boolean isAlive() {
319: return false;
320: }
321:
322: public void setAbapDebug(boolean debug) {
323: }
324:
325: public void setProperty(String key, String value) {
326: }
327:
328: public void setSapGui(int use_sapgui) {
329: }
330:
331: public void setTrace(boolean trace) {
332: }
333:
334: public final Properties getProperties() {
335: return null;
336: }
337:
338: public final String getProperty(String key) {
339: return null;
340: }
341:
342: public boolean isValid() {
343: return false;
344: }
345:
346: public void setThroughput(JCO.Throughput throughput) {
347: }
348: }
349:
350: }
|