01: /* AbstractDatabase.java
02: */
03:
04: package org.ozoneDB;
05:
06: /**
07: Implementation of methods common to subclasses.
08:
09: @author <a href="http://www.medium.net/">Medium.net</a>
10: */
11: abstract class AbstractDatabase extends Object implements
12: OzoneInterface {
13:
14: public final static int DefaultAccessRight = Public;
15:
16: public OzoneProxy createObject(String className)
17: throws RuntimeException {
18: return createObject(className, DefaultAccessRight, null, null,
19: null);
20: }
21:
22: public OzoneProxy createObject(String className, int access)
23: throws RuntimeException {
24: return createObject(className, access, null, null, null);
25: }
26:
27: public OzoneProxy createObject(String className, int access,
28: String objName) throws RuntimeException {
29: return createObject(className, access, objName, null, null);
30: }
31:
32: public OzoneProxy createObject(String className, String sig,
33: Object[] args) throws RuntimeException {
34: return createObject(className, DefaultAccessRight, null, sig,
35: args);
36: }
37:
38: public OzoneProxy createObject(Class type) throws RuntimeException {
39: return createObject(type.getName());
40: }
41:
42: public OzoneProxy createObject(Class type, int access)
43: throws RuntimeException {
44: return createObject(type.getName(), access);
45: }
46:
47: public OzoneProxy createObject(Class type, int access,
48: String objName) throws RuntimeException {
49: return createObject(type.getName(), access, objName);
50: }
51:
52: public OzoneProxy createObject(Class type, int access,
53: String objName, String sig, Object[] args)
54: throws RuntimeException {
55: return createObject(type.getName(), access, objName, sig, args);
56: }
57:
58: public OzoneProxy createObject(Class type, String sig, Object[] args)
59: throws RuntimeException {
60: return createObject(type.getName(), sig, args);
61: }
62: }
|