package org.dbxml.core.corba.db;

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

public class CollectionPOATie
	extends CollectionPOA
{
	private CollectionOperations _delegate;

	private POA _poa;
	public CollectionPOATie(CollectionOperations delegate)
	{
		_delegate = delegate;
	}
	public CollectionPOATie(CollectionOperations delegate, POA poa)
	{
		_delegate = delegate;
		_poa = poa;
	}
	public org.dbxml.core.corba.db.Collection _this()
	{
		return org.dbxml.core.corba.db.CollectionHelper.narrow(_this_object());
	}
	public org.dbxml.core.corba.db.Collection _this(org.omg.CORBA.ORB orb)
	{
		return org.dbxml.core.corba.db.CollectionHelper.narrow(_this_object(orb));
	}
	public CollectionOperations _delegate()
	{
		return _delegate;
	}
	public void _delegate(CollectionOperations delegate)
	{
		_delegate = delegate;
	}
	public java.lang.String getName() throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.getName();
	}

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

	public org.dbxml.core.corba.db.EncodedBuffer getDocument(java.lang.String id, long stamp) throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.getDocument(id,stamp);
	}

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

	public org.dbxml.core.corba.db.CollectionManager getCollectionManager() throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.getCollectionManager();
	}

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

	public int getDocumentCount() throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.getDocumentCount();
	}

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

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

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

	public java.lang.String insertDocument(java.lang.String nam, org.dbxml.core.corba.db.EncodedBuffer doc) throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.insertDocument(nam,doc);
	}

	public org.dbxml.core.corba.db.Collection getParentCollection() throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.getParentCollection();
	}

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

	public org.dbxml.core.corba.db.DocumentSet getDocuments() throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.getDocuments();
	}

	public org.dbxml.core.corba.db.EncodedBuffer queryCollection(java.lang.String style, java.lang.String query, org.dbxml.core.corba.db.NamedVal[] namespaces, long stamp) throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.queryCollection(style,query,namespaces,stamp);
	}

	public void removeDocument(java.lang.String id) throws org.dbxml.core.corba.db.APIException
	{
_delegate.removeDocument(id);
	}

	public void setDocument(java.lang.String id, org.dbxml.core.corba.db.EncodedBuffer doc) throws org.dbxml.core.corba.db.APIException
	{
_delegate.setDocument(id,doc);
	}

	public org.dbxml.core.corba.db.EncodedBuffer queryDocument(java.lang.String style, java.lang.String query, org.dbxml.core.corba.db.NamedVal[] namespaces, java.lang.String id, long stamp) throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.queryDocument(style,query,namespaces,id,stamp);
	}

}
