javax.ejb

Interface EJBLocalObject

public interface EJBLocalObject

The main ejb context.

Method Summary

EJBLocalHome
getEJBLocalHome()
Object
getPrimaryKey()
boolean
isIdentical(EJBLocalObject obj)
void
remove()

Method Details

getEJBLocalHome

public EJBLocalHome getEJBLocalHome()
            throws EJBException

getPrimaryKey

public Object getPrimaryKey()
            throws EJBException
Usages and Demos :

View More Examples of getPrimaryKey()
   1: import javax.ejb.EJBObject;
   2: import javax.ejb.EJBLocalObject;
   3: 
   4:         ...
   5:    {
   6:       Object key = mEntityContext.getPrimaryKey();
   7:         ...
   8:       EJBLocalObject local = mEntityContext.getEJBLocalObject();
   9:         ...
  10:       Object lkey = local.getPrimaryKey();

View Full Code Here
   1: 
   2: import javax.ejb.EJBLocalObject;
   3: import javax.ejb.EJBException;
   4:         ...
   5: 
   6:     public EJBLocalObject convertPCToEJBLocalObject (Object pc, PersistenceManager pm) {
   7:         if (pc == null) return null;
   8:         ...
   9: 
  10:     public EJBLocalObject convertPCToEJBLocalObject (Object pc, PersistenceManager pm,
  11:         EJBContext context) {
  12:         ...
  13:         try {
  14:             key = o.getPrimaryKey();

View Full Code Here
   1: import javax.ejb.EJBException;
   2: import javax.ejb.EJBLocalObject;
   3: import javax.ejb.RemoveException;
   4:         ...
   5:          {
   6:             EJBLocalObject localObject = (EJBLocalObject) value;
   7:         ...
   8:             Object relatedId = localObject.getPrimaryKey();
   9: 
  10:         ...
  11:                EJBLocalObject localObject = (EJBLocalObject) iter.next();
  12:                Object relatedId = localObject.getPrimaryKey();

View Full Code Here

isIdentical

public boolean isIdentical(EJBLocalObject obj)
            throws EJBException
Usages and Demos :

View More Examples of isIdentical(EJBLocalObject obj)
   1: 
   2: import javax.ejb.EJBLocalObject;
   3: 
   4:         ...
   5: 
   6:    public static final boolean areIdentical(EJBLocalObject ejb1, EJBLocalObject ejb2)
   7:    {
   8:         ...
   9:       }
  10:       return ejb1.isIdentical(ejb2);
  11:    }

View Full Code Here

remove

public void remove()
            throws RemoveException,
                   EJBException
Usages and Demos :

View More Examples of remove()
   1: import javax.naming.InitialContext;
   2: import javax.ejb.EJBLocalObject;
   3: 
   4:         ...
   5:       {
   6:          EJBLocalObject ejb = (EJBLocalObject) organizations.next();
   7:         ...
   8:          ejb.remove();
   9:       }
  10:         ...
  11:          EJBLocalObject ejb = (EJBLocalObject) gangsters.next();
  12:          ejb.remove();

View Full Code Here
   1: import javax.ejb.CreateException;
   2: import javax.ejb.EJBLocalObject;
   3: import javax.naming.NamingException;
   4:         ...
   5:     public Object invoke(MethodInvocation invocation) throws Throwable {
   6:         EJBLocalObject ejb = null;
   7:         try {
   8:         ...
   9: 
  10:     protected EJBLocalObject getSessionBeanInstance() throws NamingException, InvocationTargetException {
  11:         return newSessionBeanInstance();
  12:         ...
  13:             try {
  14:                 ejb.remove();

View Full Code Here
   1: 
   2:   public EJBLocalObject getEJBLocalObject()
   3:     throws IllegalStateException
   4:         ...
   5:       if (obj != null) {
   6:         obj.remove();
   7:         return;
   8:         ...
   9: 
  10:     EJBLocalObject local = null;
  11:     try {
  12:         ...
  13:     if (local != null) {
  14:       local.remove();

View Full Code Here
   1: import javax.ejb.EJBException;
   2: import javax.ejb.EJBLocalObject;
   3: import javax.ejb.RemoveException;
   4:         ...
   5: 
   6:          kv62Group.remove();
   7:          assertTrue("department.getGroups().isEmpty()", department.getGroups().isEmpty());
   8:         ...
   9: 
  10:          department.remove();
  11:          kv62Group = getGroupHome().create("KV", 62, "KV-62");
  12:         ...
  13: 
  14:          department.remove();

View Full Code Here
   1: import javax.ejb.RemoveException;
   2: import javax.ejb.EJBLocalObject;
   3: import javax.naming.NamingException;
   4:         ...
   5: 
   6:          kv62Group.remove();
   7:          assertTrue("department.getGroups().isEmpty()", department.getGroups().isEmpty());
   8:         ...
   9: 
  10:          department.remove();
  11:          kv62Group = getGroupHome().create("KV", 62, "KV-62");
  12:         ...
  13: 
  14:          department.remove();

View Full Code Here