package org.dbxml.core.corba.db;

import org.omg.PortableServer.POA;
/**
 *	Generated from IDL definition of interface "Database"
 *	@author JacORB IDL compiler 
 */

public class DatabasePOATie
	extends DatabasePOA
{
	private DatabaseOperations _delegate;

	private POA _poa;
	public DatabasePOATie(DatabaseOperations delegate)
	{
		_delegate = delegate;
	}
	public DatabasePOATie(DatabaseOperations delegate, POA poa)
	{
		_delegate = delegate;
		_poa = poa;
	}
	public org.dbxml.core.corba.db.Database _this()
	{
		return org.dbxml.core.corba.db.DatabaseHelper.narrow(_this_object());
	}
	public org.dbxml.core.corba.db.Database _this(org.omg.CORBA.ORB orb)
	{
		return org.dbxml.core.corba.db.DatabaseHelper.narrow(_this_object(orb));
	}
	public DatabaseOperations _delegate()
	{
		return _delegate;
	}
	public void _delegate(DatabaseOperations delegate)
	{
		_delegate = delegate;
	}
	public org.dbxml.core.corba.db.DatabaseManager getDatabaseManager() throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.getDatabaseManager();
	}

	public void remove()
	{
_delegate.remove();
	}

	public org.dbxml.core.corba.db.Collection getCollection(java.lang.String path) throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.getCollection(path);
	}

	public java.lang.String[] listCollections() throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.listCollections();
	}

	public java.lang.String getName() throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.getName();
	}

}
