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


public interface BRemote

Author:
S.Chassande-Barrioz, Helene Joanin

Method Summary
 void assignA(java.lang.String pkA)
          It replaces the referenced element of the relation by the element specified.
 void assignAInNewTx(java.lang.String pkA)
          It replaces the referenced element of the relation by the element specified.
 boolean equalsRelA(java.lang.String pka)
          It returns true if relation is the bean A defined by the primary key specified by the parameter.
 java.lang.String getId()
           
 void m1()
           
 java.lang.String retrieveA()
          It returns the primary key of the referenced element.
 java.lang.String retrieveAInNewTx()
          It returns the primary key of the referenced element.
 

Method Detail

getId

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

assignA

public void assignA(java.lang.String pkA)
             throws javax.ejb.FinderException,
                    java.rmi.RemoteException
It replaces the referenced element of the relation by the element specified. This method has the transactional attribut TX_SUPPORTS.
Parameters:
c - is a primary key of the bean 'A' or null to clear the relation.

assignAInNewTx

public void assignAInNewTx(java.lang.String pkA)
                    throws javax.ejb.FinderException,
                           java.rmi.RemoteException
It replaces the referenced element of the relation by the element specified. This method has the transactional attribut TX_REQUIRES_NEW.
Parameters:
c - is a primary key of the bean 'A' or null to clear the relation.

retrieveA

public java.lang.String retrieveA()
                           throws java.rmi.RemoteException
It returns the primary key of the referenced element. This method has the transactional attribut TX_SUPPORTS.
Returns:
the primary key of the referenced bean 'A' or null if there is no referenced bean.

retrieveAInNewTx

public java.lang.String retrieveAInNewTx()
                                  throws java.rmi.RemoteException
It returns the primary key of the referenced element. This method has the transactional attribut TX_REQUIRES_NEW.
Returns:
the primary key of the referenced bean 'A' or null if there is no referenced bean..

equalsRelA

public boolean equalsRelA(java.lang.String pka)
                   throws javax.ejb.FinderException,
                          java.rmi.RemoteException
It returns true if relation is the bean A defined by the primary key specified by the parameter. If pkb is null, return true if there is no relation This method has the transactional attribut TX_SUPPORTS.

m1

public void m1()
        throws java.rmi.RemoteException