org.objectweb.jonas.jtests.beans.relation.mou
Interface ARemote


public interface ARemote

Author:
S.Chassande-Barrioz

Method Summary
 void assignB(java.lang.String c)
          It replaces the referenced elements of the relation by the element of the collection specified.
 void assignBInNewTx(java.lang.String c)
          It replaces the referenced elements of the relation by the element of the collection specified.
 java.lang.String getId()
           
 java.lang.String retrieveB()
          It returns the primary key of the referenced elements.
 java.lang.String retrieveBInNewTx()
          It returns the primary key of the referenced elements.
 

Method Detail

getId

public java.lang.String getId()
                       throws java.rmi.RemoteException

assignB

public void assignB(java.lang.String c)
             throws javax.ejb.FinderException,
                    java.rmi.RemoteException
It replaces the referenced elements of the relation by the element of the collection specified. This method has the transactional attribut TX_SUPPORTS.
Parameters:
c - is a collection of the primary key of the bean 'B'. Then the elements are java.lang.String objects.

assignBInNewTx

public void assignBInNewTx(java.lang.String c)
                    throws javax.ejb.FinderException,
                           java.rmi.RemoteException
It replaces the referenced elements of the relation by the element of the collection specified. This method has the transactional attribut TX_REQUIRES_NEW.
Parameters:
c - is a collection of the primary key of the bean 'B'. Then the elements are java.lang.String objects.

retrieveB

public java.lang.String retrieveB()
                           throws java.rmi.RemoteException
It returns the primary key of the referenced elements. This method has the transactional attribut TX_SUPPORTS.
Returns:
a collection of the primary key of the bean 'B'. Then the elements are java.lang.String objects.

retrieveBInNewTx

public java.lang.String retrieveBInNewTx()
                                  throws java.rmi.RemoteException
It returns the primary key of the referenced elements. This method has the transactional attribut TX_REQUIRES_NEW.
Returns:
a collection of the primary key of the bean 'B'. Then the elements are java.lang.String objects.