01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-2000 by SMB GmbH. All rights reserved.
06: //
07: // $Id: ArgsImpl.java,v 1.1 2001/12/18 10:31:31 per_nyfelt Exp $
08:
09: package org.ozoneDB.test.args;
10:
11: import org.ozoneDB.*;
12: import org.ozoneDB.DxLib.*;
13:
14: import org.apache.log4j.Category;
15:
16: public class ArgsImpl extends OzoneObject implements Args {
17:
18: /**
19: * log4j logger
20: */
21: private static Category fLog = Category.getInstance(ArgsImpl.class);
22:
23: Args serverSide;
24:
25: public ArgsImpl() {
26: }
27:
28: public void setup() throws Exception {
29: serverSide = (Args) database().createObject(
30: ArgsImpl.class.getName());
31: }
32:
33: public Args getProxy() {
34: fLog.debug("getProxy()...");
35: return serverSide;
36: }
37:
38: public DxBag getComplexProxy() {
39: DxArrayBag result = new DxArrayBag();
40: result.addAtIndex(serverSide, 0);
41: return result;
42: }
43:
44: public String setSimpleObject(String arg) {
45: return serverSide != null ? serverSide.setSimpleObject(arg)
46: : arg;
47: }
48:
49: public DxBag setComplexObject(DxBag arg) {
50: return serverSide != null ? serverSide.setComplexObject(arg)
51: : arg;
52: }
53:
54: public int setInt(int arg) {
55: return serverSide != null ? serverSide.setInt(arg) : arg;
56: }
57:
58: public short setShort(short arg) {
59: return serverSide != null ? serverSide.setShort(arg) : arg;
60: }
61:
62: public int[] setIntArray(int[] arg) {
63: return serverSide != null ? serverSide.setIntArray(arg) : arg;
64: }
65:
66: public String[][] setStringArray(String[][] arg) {
67: return serverSide != null ? serverSide.setStringArray(arg)
68: : arg;
69: }
70:
71: }
|