com.ibm.websphere.samples.pbw.ejb
Class ResetDBBean
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResetDBBean
public ResetDBBean()
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.