package org.dbxml.core.corba.db;

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

public class DocumentSetPOATie
	extends DocumentSetPOA
{
	private DocumentSetOperations _delegate;

	private POA _poa;
	public DocumentSetPOATie(DocumentSetOperations delegate)
	{
		_delegate = delegate;
	}
	public DocumentSetPOATie(DocumentSetOperations delegate, POA poa)
	{
		_delegate = delegate;
		_poa = poa;
	}
	public org.dbxml.core.corba.db.DocumentSet _this()
	{
		return org.dbxml.core.corba.db.DocumentSetHelper.narrow(_this_object());
	}
	public org.dbxml.core.corba.db.DocumentSet _this(org.omg.CORBA.ORB orb)
	{
		return org.dbxml.core.corba.db.DocumentSetHelper.narrow(_this_object(orb));
	}
	public DocumentSetOperations _delegate()
	{
		return _delegate;
	}
	public void _delegate(DocumentSetOperations delegate)
	{
		_delegate = delegate;
	}
	public org.dbxml.core.corba.db.EncodedBuffer getNextDocument(long stamp) throws org.dbxml.core.corba.db.APIException
	{
		return _delegate.getNextDocument(stamp);
	}

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

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

}
