org.company.thesandbox.data.spring.dao
Class ArtistDaoImplBase

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.company.thesandbox.data.spring.dao.ArtistDaoImplBase
All Implemented Interfaces:
ArtistDaoBase, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
ArtistDaoImpl

public class ArtistDaoImplBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ArtistDaoBase

Artist Data Access Object (DOA) Implementation. Responsible for Creating, Reading, Updating and Deleting Artist objects in the database. All database access is done here.

Author:
Generated by Mod4j

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ArtistDaoImplBase()
           
 
Method Summary
 Artist add(Artist object)
          Adds a new Artist to the database
 void delete(Artist object)
          Deletes a Artist from the database.
 java.util.List<Artist> listAllArtists()
          Selects all Artists from the database.
 Artist retrieve(long id)
          Retrieves a Artist by its ID from the database.
 Artist update(Artist object)
          Stores/Updates the Artist in the database.
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtistDaoImplBase

public ArtistDaoImplBase()
Method Detail

retrieve

public Artist retrieve(long id)
Description copied from interface: ArtistDaoBase
Retrieves a Artist by its ID from the database.

Specified by:
retrieve in interface ArtistDaoBase
Parameters:
id - id of the Artist to retrieve.
Returns:
Artist retrieved or null when no Artist was found.

add

public Artist add(Artist object)
Description copied from interface: ArtistDaoBase
Adds a new Artist to the database

Specified by:
add in interface ArtistDaoBase
Parameters:
object - the Artist to add to the database.
Returns:
the stored Artist.

update

public Artist update(Artist object)
Description copied from interface: ArtistDaoBase
Stores/Updates the Artist in the database. Inclusive all its posts.

Specified by:
update in interface ArtistDaoBase
Parameters:
object - the Artist to store/update
Returns:

delete

public void delete(Artist object)
Description copied from interface: ArtistDaoBase
Deletes a Artist from the database.

Specified by:
delete in interface ArtistDaoBase
Parameters:
object - the Artist to delete

listAllArtists

public java.util.List<Artist> listAllArtists()
Description copied from interface: ArtistDaoBase
Selects all Artists from the database.

Specified by:
listAllArtists in interface ArtistDaoBase
Returns:
a List of all Artist objects.


Copyright © 2010. All Rights Reserved.