FileDocCategorySizeDatePackage
AbstractDao.javaAPI DocApache Struts 2.0.9 Apps2438Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.dao

AbstractDao

public abstract class AbstractDao extends Object implements Serializable, Dao
AbstractDao.

Fields Summary
private org.apache.struts2.showcase.application.Storage
storage
Constructors Summary
Methods Summary
public java.io.Serializablecreate(org.apache.struts2.showcase.model.IdEntity object)

        return getStorage().create(object);
    
public intdelete(java.io.Serializable id)

        return getStorage().delete(getFeaturedClass(), id);
    
public intdelete(org.apache.struts2.showcase.model.IdEntity object)

        return getStorage().delete(object);
    
public java.util.CollectionfindAll()

        return getStorage().findAll(getFeaturedClass());
    
public org.apache.struts2.showcase.model.IdEntityget(java.io.Serializable id)

        return getStorage().get(getFeaturedClass(), id);
    
public org.apache.struts2.showcase.application.StoragegetStorage()

        return storage;
    
public java.io.Serializablemerge(org.apache.struts2.showcase.model.IdEntity object)

        return getStorage().merge(object);
    
public voidsetStorage(org.apache.struts2.showcase.application.Storage storage)

        this.storage = storage;
    
public org.apache.struts2.showcase.model.IdEntityupdate(org.apache.struts2.showcase.model.IdEntity object)

        return getStorage().update(object);