org.apache.struts2.showcase.dao
Class AbstractDao
java.lang.Object
org.apache.struts2.showcase.dao.AbstractDao
- All Implemented Interfaces:
- java.io.Serializable, Dao
- Direct Known Subclasses:
- EmployeeDao, SkillDao
public abstract class AbstractDao
- extends java.lang.Object
- implements java.io.Serializable, Dao
AbstractDao.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDao
public AbstractDao()
getStorage
public Storage getStorage()
setStorage
public void setStorage(Storage storage)
get
public IdEntity get(java.io.Serializable id)
- Specified by:
get in interface Dao
create
public java.io.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 java.io.Serializable merge(IdEntity object)
throws StorageException
- Specified by:
merge in interface Dao
- Throws:
StorageException
delete
public int delete(java.io.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 java.util.Collection findAll()
- Specified by:
findAll in interface Dao
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.