public class BookmarkDAODbFacadeImpl extends BaseDAODbFacade implements BookmarkDAO
BookmarkDAODbFacadeImpl
provides a concrete implementation of BookmarkDAO
that uses
pre-existing code from DbFacade
dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
BookmarkDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
bookmarks |
get(Guid id)
Retrieves the specified bookmark with the supplied id.
|
List<bookmarks> |
getAll()
Returns all defined bookmarks.
|
bookmarks |
getByName(String name)
Retrieves the bookmark with the supplied name.
|
void |
remove(Guid id)
Removes the specified bookmark.
|
void |
save(bookmarks bookmark)
Saves the bookmark.
|
void |
update(bookmarks bookmark)
Updates the bookmark with changes.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public bookmarks get(Guid id)
BookmarkDAO
get
in interface BookmarkDAO
public bookmarks getByName(String name)
BookmarkDAO
getByName
in interface BookmarkDAO
name
- the bookmark namenull
if no such bookmark is presentpublic List<bookmarks> getAll()
BookmarkDAO
getAll
in interface BookmarkDAO
public void save(bookmarks bookmark)
BookmarkDAO
save
in interface BookmarkDAO
public void update(bookmarks bookmark)
BookmarkDAO
update
in interface BookmarkDAO
public void remove(Guid id)
BookmarkDAO
remove
in interface BookmarkDAO
id
- the bookmark idCopyright © 2012. All Rights Reserved.