com.ibm.websphere.samples.pbw.ejb
Class ResetDBBean

java.lang.Object
  extended by com.ibm.websphere.samples.pbw.ejb.ResetDBBean

@RolesAllowed(value="SampAdmin")
public class ResetDBBean
extends Object

ResetDBBean provides a transactional and secure facade to reset all the database information for the PlantsByWebSphere application.


Constructor Summary
ResetDBBean()
           
 
Method Summary
static void addImage(String itemID, String fileName, CatalogMgr catalog)
           
 void deleteAll()
           
 void populateDB()
           
 void resetDB()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResetDBBean

public ResetDBBean()
Method Detail

resetDB

public void resetDB()

addImage

public static void addImage(String itemID,
                            String fileName,
                            CatalogMgr catalog)
                     throws FileNotFoundException,
                            IOException
Parameters:
itemID -
fileName -
catalog -
Throws:
FileNotFoundException
IOException

populateDB

public void populateDB()

deleteAll

public void deleteAll()


Copyright © 2011. All Rights Reserved.