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


public interface ARemote

Author:
Helene Joanin

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

Method Detail

getId

public Pk getId()
         throws java.rmi.RemoteException

assignB

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

assignBInNewTx

public void assignBInNewTx(Pk 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 primary key of the bean 'B'. Then the elements are java.lang.String objects.

retrieveB

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

retrieveBInNewTx

public Pk 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 primary key of the bean 'B'. Then the elements are java.lang.String objects.