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


public interface BRemote

Author:
J.Camilleri

Method Summary
 void addAllInA(java.util.Collection pkbs)
          It adds in the multivalued relation the bean A defined by the primary keys specified by the parameter.
 void addAllInAInNewTx(java.util.Collection pkbs)
          It adds in the multivalued relation the beans A defined by the primary keys specified by the parameter.
 void addInA(APK pka)
          It adds in the multivalued relation the bean A defined by its primary key specified by the parameter.
 void addInAInNewTx(APK pka)
          It adds in the multivalued relation the bean A defined by its primary key specified by the parameter.
 void assignA(java.util.Collection c)
          It replaces the referenced elements of the relation by the element of the collection specified.
 void assignAInNewTx(java.util.Collection c)
          It replaces the referenced elements of the relation by the element of the collection specified.
 void clearA()
          It clear the multivalued relation This method has the transactional attribut TX_SUPPORTS.
 void clearAInNewTx()
          It clear the multivalued relation This method has the transactional attribut TX_REQUIRES_NEW.
 boolean containAllInA(java.util.Collection pkbs)
          It returns true the multivalued relation contains all the bean A defined by the primary keys specified by the parameter.
 boolean containInA(APK pka)
          It returns true the multivalued relation contains the bean A defined by the primary key specified by the parameter.
 BPK getId()
           
 void m1()
           
 void removeFromA(APK pka)
          It removes from the multivalued relation the bean A defined by its primary key specified by the parameter.
 void removeFromAInNewTx(APK pka)
          It removes from the multivalued relation the bean A defined by its primary key specified by the parameter.
 java.util.Collection retrieveA()
          It returns the primary key of the referenced elements.
 java.util.Collection retrieveAInNewTx()
          It returns the primary key of the referenced elements.
 

Method Detail

getId

public BPK getId()
          throws java.rmi.RemoteException

m1

public void m1()
        throws java.rmi.RemoteException

assignA

public void assignA(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 'A'. Then the elements are java.lang.String objects.

assignAInNewTx

public void assignAInNewTx(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 'A'. Then the elements are java.lang.String objects.

retrieveA

public java.util.Collection retrieveA()
                               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 'A'. Then the elements are java.lang.String objects.

retrieveAInNewTx

public java.util.Collection retrieveAInNewTx()
                                      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 'A'. Then the elements are java.lang.String objects.

addAllInA

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

addAllInAInNewTx

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

addInA

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

addInAInNewTx

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

removeFromA

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

removeFromAInNewTx

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

clearA

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

clearAInNewTx

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

containAllInA

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

containInA

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