| java.lang.Object org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.entitymanager.SLSBEntityManagerTester01
SLSBEntityManagerTester01 | public class SLSBEntityManagerTester01 implements ItfEntityManagerTester01(Code) | | Tests if the EntityManager is creating and deleting correctly the entity
beans when a persistence context transaction is used.
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro |
containsEBStore | public void containsEBStore(int id, String name)(Code) | | Test if the method contains verifies if the entity is in the db.
Parameters: id - the entity primary key. Parameters: name - the entity name. |
mergeEBStore | public void mergeEBStore(int id, String name, String newName)(Code) | | Creates a entity and makes it detached. After that, changes the entity
detached and tries to make a merge.
Parameters: id - the entity primary key. Parameters: name - the entity name. Parameters: newName - the name that the entity receives after to be detached. |
refreshEBStore | public void refreshEBStore(int id, String name, String newName)(Code) | | Verifies if the method refresh is working properly.
Parameters: id - the entity primary key. Parameters: name - the entity name. Parameters: newName - the name that the entity receives after to be detached. |
removeEBStore | public void removeEBStore(int id)(Code) | | Removes the entity that is in the database.
Parameters: id - the entity primary key. |
|
|