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


public interface ARemote

Author:
J.Camilleri

Method Summary
 void addAllInB(java.util.Collection pkbs)
          It adds in the multivalued relation the bean B defined by the primary keys specified by the parameter.
 void addAllInBInNewTx(java.util.Collection pkbs)
          It adds in the multivalued relation the beans B defined by the primary keys specified by the parameter.
 void addInB(BPK pkb)
          It adds in the multivalued relation the bean B defined by its primary key specified by the parameter.
 void addInBInNewTx(BPK pkb)
          It adds in the multivalued relation the bean B defined by its primary key specified by the parameter.
 void assignB(java.util.Collection c)
          It replaces the referenced elements of the relation by the element of the collection specified.
 void assignBInNewTx(java.util.Collection c)
          It replaces the referenced elements of the relation by the element of the collection specified.
 void clearB()
          It clear the multivalued relation This method has the transactional attribut TX_SUPPORTS.
 void clearBInNewTx()
          It clear the multivalued relation This method has the transactional attribut TX_REQUIRES_NEW.
 boolean containAllInB(java.util.Collection pkbs)
          It returns true the multivalued relation contains all the bean B defined by the primary keys specified by the parameter.
 boolean containInB(BPK pkb)
          It returns true the multivalued relation contains the bean B defined by the primary key specified by the parameter.
 APK getId()
           
 void removeFromB(BPK pkb)
          It removes from the multivalued relation the bean B defined by its primary key specified by the parameter.
 void removeFromBInNewTx(BPK pkb)
          It removes from the multivalued relation the bean B defined by its primary key specified by the parameter.
 java.util.Collection retrieveB()
          It returns the primary key of the referenced elements.
 java.util.Collection retrieveBInNewTx()
          It returns the primary key of the referenced elements.
 

Method Detail

getId

public APK getId()
          throws java.rmi.RemoteException

assignB

public void assignB(java.util.Collection 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.util.Collection 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.util.Collection 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.util.Collection 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.

addAllInB

public void addAllInB(java.util.Collection pkbs)
               throws javax.ejb.FinderException,
                      java.rmi.RemoteException
It adds in the multivalued relation the bean B defined by the primary keys specified by the parameter. This method has the transactional attribut TX_SUPPORTS.

addAllInBInNewTx

public void addAllInBInNewTx(java.util.Collection pkbs)
                      throws javax.ejb.FinderException,
                             java.rmi.RemoteException
It adds in the multivalued relation the beans B defined by the primary keys specified by the parameter. This method has the transactional attribut TX_REQUIRES_NEW.

addInB

public void addInB(BPK pkb)
            throws javax.ejb.FinderException,
                   java.rmi.RemoteException
It adds in the multivalued relation the bean B defined by its primary key specified by the parameter. This method has the transactional attribut TX_SUPPORTS.

addInBInNewTx

public void addInBInNewTx(BPK pkb)
                   throws javax.ejb.FinderException,
                          java.rmi.RemoteException
It adds in the multivalued relation the bean B defined by its primary key specified by the parameter. This method has the transactional attribut TX_REQUIRES_NEW.

removeFromB

public void removeFromB(BPK pkb)
                 throws javax.ejb.FinderException,
                        java.rmi.RemoteException
It removes from the multivalued relation the bean B defined by its primary key specified by the parameter. This method has the transactional attribut TX_SUPPORTS.

removeFromBInNewTx

public void removeFromBInNewTx(BPK pkb)
                        throws javax.ejb.FinderException,
                               java.rmi.RemoteException
It removes from the multivalued relation the bean B defined by its primary key specified by the parameter. This method has the transactional attribut TX_REQUIRES_NEW.

clearB

public void clearB()
            throws java.rmi.RemoteException
It clear the multivalued relation This method has the transactional attribut TX_SUPPORTS.

clearBInNewTx

public void clearBInNewTx()
                   throws java.rmi.RemoteException
It clear the multivalued relation This method has the transactional attribut TX_REQUIRES_NEW.

containAllInB

public boolean containAllInB(java.util.Collection pkbs)
                      throws javax.ejb.FinderException,
                             java.rmi.RemoteException
It returns true the multivalued relation contains all the bean B defined by the primary keys specified by the parameter. This method has the transactional attribut TX_SUPPORTS.

containInB

public boolean containInB(BPK pkb)
                   throws javax.ejb.FinderException,
                          java.rmi.RemoteException
It returns true the multivalued relation contains the bean B defined by the primary key specified by the parameter. This method has the transactional attribut TX_SUPPORTS.