@Component public class DefaultDvdDao extends Object implements DvdDao
| Constructor and Description |
|---|
DefaultDvdDao(org.hibernate.Session session)
Creates a new DvdDao.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Dvd dvd)
Add a new dvd to the database.
|
void |
add(DvdRental copy)
Adds a copy of the dvd
|
List<Dvd> |
searchSimilarTitle(String title)
Returns a list of DVDs containing the specified title.
|
public DefaultDvdDao(org.hibernate.Session session)
session - hibernate session.Copyright © 2015 Caelum. All Rights Reserved.