org.apache.struts2.showcase.dao
Class AbstractDao

java.lang.Object
  extended by 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

Constructor Summary
AbstractDao()
           
 
Method Summary
 java.io.Serializable create(IdEntity object)
           
 int delete(IdEntity object)
           
 int delete(java.io.Serializable id)
           
 java.util.Collection findAll()
           
 IdEntity get(java.io.Serializable id)
           
 Storage getStorage()
           
 java.io.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(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.