FileDocCategorySizeDatePackage
StatelessBean.javaAPI DocJBoss 4.2.12580Fri Jul 13 20:54:42 BST 2007org.jboss.tutorial.entity.security.bean

StatelessBean

public class StatelessBean extends Object implements org.jboss.tutorial.entity.security.bean.Stateless
author
Kabir Khan
version
$Revision: 60233 $

Fields Summary
EntityManager
em
Constructors Summary
Methods Summary
public intchecked(int i)

      System.out.println("stateless checked");
      return i;
   
public voiddeleteAllEntity(org.jboss.tutorial.entity.security.bean.AllEntity e)

      em.remove(e);
   
public voiddeleteSomeEntity(org.jboss.tutorial.entity.security.bean.SomeEntity e)

      em.remove(e);
   
public voiddeleteStarEntity(org.jboss.tutorial.entity.security.bean.StarEntity e)

      em.remove(e);
   
public org.jboss.tutorial.entity.security.bean.AllEntityinsertAllEntity()

      AllEntity e = new AllEntity();
      e.val = "x";
      em.persist(e);
      return e;
   
public org.jboss.tutorial.entity.security.bean.SomeEntityinsertSomeEntity()

      SomeEntity e = new SomeEntity();
      e.val = "x";
      em.persist(e);
      return e;
   
public org.jboss.tutorial.entity.security.bean.StarEntityinsertStarEntity()

      StarEntity e = new StarEntity();
      e.val = "x";
      em.persist(e);
      return e;
   
public org.jboss.tutorial.entity.security.bean.AllEntityreadAllEntity(int key)

      AllEntity e = em.find(AllEntity.class, key);
      return e;
   
public org.jboss.tutorial.entity.security.bean.SomeEntityreadSomeEntity(int key)

      SomeEntity e = em.find(SomeEntity.class, key);
      return e;
   
public org.jboss.tutorial.entity.security.bean.StarEntityreadStarEntity(int key)

      StarEntity e = em.find(StarEntity.class, key);
      return e;
   
public intunchecked(int i)

      System.out.println("stateless unchecked");
      return i;
   
public voidupdateAllEntity(org.jboss.tutorial.entity.security.bean.AllEntity e)

      em.merge(e);
   
public voidupdateSomeEntity(org.jboss.tutorial.entity.security.bean.SomeEntity e)

      em.merge(e);
   
public voidupdateStarEntity(org.jboss.tutorial.entity.security.bean.StarEntity e)

      em.merge(e);