⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractdatabase.java

📁 Java的面向对象数据库系统的源代码
💻 JAVA
字号:
// You can redistribute this software and/or modify it under the terms of// the Ozone Library License version 1 published by ozone-db.org.//// The original code and portions created by SMB are// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.//// $Id: AbstractDatabase.java,v 1.5 2003/11/07 21:34:21 per_nyfelt Exp $package org.ozoneDB;import org.ozoneDB.tools.OPP.OPP;/**	Implementation of methods common to subclasses.	@author <a href="http://www.medium.net/">Medium.net</a>*/abstract class AbstractDatabase extends Object implements OzoneInterface {	public final static int DefaultAccessRight = Public;	public OzoneProxy createObject( String className ) throws RuntimeException, OzoneRemoteException {		return createObject( className, DefaultAccessRight, null, null, null );	}	public OzoneProxy createObject( String className, int access ) throws RuntimeException, OzoneRemoteException {		return createObject( className, access, null, null, null );	}	public OzoneProxy createObject( String className, int access, String objName ) throws RuntimeException,  OzoneRemoteException {		return createObject( className, access, objName, null, null );	}	public OzoneProxy createObject( String className, String sig, Object[] args ) throws RuntimeException, OzoneRemoteException {		return createObject(className,DefaultAccessRight,null,sig,args);	}	public OzoneProxy createObject(Class type) throws RuntimeException, OzoneRemoteException {		return createObject(type.getName());	}	public OzoneProxy createObject(Class type, int access ) throws RuntimeException, OzoneRemoteException {		return createObject(type.getName(), access);	}    public OzoneProxy createObject(Class type, int access, String objName ) throws RuntimeException, OzoneRemoteException {		return createObject(type.getName(), access, objName);	}	public OzoneProxy createObject(Class type, int access, String objName, Class[] sig, Object[] args) throws RuntimeException, OzoneRemoteException {		return createObject(type.getName(),access,objName, createSignature(sig),args);	}	public OzoneProxy createObject(Class type, Class[] sig, Object[] args ) throws RuntimeException, OzoneRemoteException {		return createObject(type.getName(), createSignature(sig),args);	}    protected String createSignature(Class[] sig) {        if (sig == null || sig.length == 0) {            return null;        }        String signature = sig[0].getName();        for (int i = 1; i < sig.length; i++) {            signature = signature + OPP.SIGNATURE_DELIMITER + sig[i].getName();        }        return signature;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -