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

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.OrderLineDaoImplBase
All Implemented Interfaces:
OrderLineDaoBase, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
OrderLineDaoImpl

public class OrderLineDaoImplBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements OrderLineDaoBase

OrderLine Data Access Object (DOA) Implementation. Responsible for Creating, Reading, Updating and Deleting OrderLine 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
OrderLineDaoImplBase()
           
 
Method Summary
 OrderLine add(OrderLine object)
          Adds a new OrderLine to the database
 void delete(OrderLine object)
          Deletes a OrderLine from the database.
 java.util.List<OrderLine> listAllOrderLines()
          Selects all OrderLines from the database.
 OrderLine retrieve(long id)
          Retrieves a OrderLine by its ID from the database.
 OrderLine update(OrderLine object)
          Stores/Updates the OrderLine 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

OrderLineDaoImplBase

public OrderLineDaoImplBase()
Method Detail

retrieve

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

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

add

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

Specified by:
add in interface OrderLineDaoBase
Parameters:
object - the OrderLine to add to the database.
Returns:
the stored OrderLine.

update

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

Specified by:
update in interface OrderLineDaoBase
Parameters:
object - the OrderLine to store/update
Returns:

delete

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

Specified by:
delete in interface OrderLineDaoBase
Parameters:
object - the OrderLine to delete

listAllOrderLines

public java.util.List<OrderLine> listAllOrderLines()
Description copied from interface: OrderLineDaoBase
Selects all OrderLines from the database.

Specified by:
listAllOrderLines in interface OrderLineDaoBase
Returns:
a List of all OrderLine objects.


Copyright © 2010. All Rights Reserved.