com.ibm.websphere.samples.ejbquery.employeefinderejb
Interface Dept

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface Dept
extends javax.ejb.EJBObject

The Remote Interface Business Methods for the Dept CMP Sample.


Method Summary
 int add1()
          add1 method returns deptno + 1.
 double getBudget()
          This Remote method gets the budget CMP attribute for a Dept.
 java.lang.Integer getDeptno()
          This Remote method gets the deptno CMP attribute for a Dept.
 java.lang.String getName()
          This Remote method gets the name CMP attribute for a Dept.
 void setBudget(double budget)
          This Remote method sets the budget CMP attribute for a Dept.
 void setName(java.lang.String name)
          This Remote method sets the name CMP attribute for a Dept.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getDeptno

java.lang.Integer getDeptno()
                            throws java.rmi.RemoteException
This Remote method gets the deptno CMP attribute for a Dept.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - Signals that a Remote exception can occur.

getName

java.lang.String getName()
                         throws java.rmi.RemoteException
This Remote method gets the name CMP attribute for a Dept.

Returns:
java.lang.String
Throws:
java.rmi.RemoteException - Signals that a Remote exception can occur.

setName

void setName(java.lang.String name)
             throws java.rmi.RemoteException
This Remote method sets the name CMP attribute for a Dept.

Parameters:
name - java.lang.String
Throws:
java.rmi.RemoteException - Signals that a Remote exception can occur.

getBudget

double getBudget()
                 throws java.rmi.RemoteException
This Remote method gets the budget CMP attribute for a Dept.

Returns:
double
Throws:
java.rmi.RemoteException - Signals that a Remote exception can occur.

setBudget

void setBudget(double budget)
               throws java.rmi.RemoteException
This Remote method sets the budget CMP attribute for a Dept.

Parameters:
budget - double
Throws:
java.rmi.RemoteException - Signals that a Remote exception can occur.

add1

int add1()
         throws java.rmi.RemoteException
add1 method returns deptno + 1.

eg. select e.add1() from DeptBean e
WARNING.  For methods to work, the server's "Application classloader policy" must be set to "Single". The default is "Multiple" which can be reset using the Administrative Console.

Returns:
int
Throws:
java.rmi.RemoteException - Signals that a Remote exception can occur.