org.apache.struts2.showcase.dao
Class AbstractDao

java.lang.Object
  extended by org.apache.struts2.showcase.dao.AbstractDao
All Implemented Interfaces:
Serializable, Dao
Direct Known Subclasses:
EmployeeDao, SkillDao

public abstract class AbstractDao
extends Object
implements Serializable, Dao

AbstractDao.

See Also:
Serialized Form

Constructor Summary
AbstractDao()
           
 
Method Summary
 Serializable create(IdEntity object)
           
 int delete(IdEntity object)
           
 int delete(Serializable id)
           
 Collection findAll()
           
 IdEntity get(Serializable id)
           
 Storage getStorage()
           
 Serializable merge(IdEntity object)
           
 void setStorage(Storage storage)
           
 IdEntity update(IdEntity object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.struts2.showcase.dao.Dao
getFeaturedClass
 

Constructor Detail

AbstractDao

public AbstractDao()
Method Detail

getStorage

public Storage getStorage()

setStorage

public void setStorage(Storage storage)

get

public IdEntity get(Serializable id)
Specified by:
get in interface Dao

create

public Serializable create(IdEntity object)
                    throws CreateException
Specified by:
create in interface Dao
Throws:
CreateException

update

public IdEntity update(IdEntity object)
                throws UpdateException
Specified by:
update in interface Dao
Throws:
UpdateException

merge

public Serializable merge(IdEntity object)
                   throws StorageException
Specified by:
merge in interface Dao
Throws:
StorageException

delete

public int delete(Serializable id)
           throws CreateException
Specified by:
delete in interface Dao
Throws:
CreateException

delete

public int delete(IdEntity object)
           throws CreateException
Specified by:
delete in interface Dao
Throws:
CreateException

findAll

public Collection findAll()
Specified by:
findAll in interface Dao


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.