SwatDB
Public Member Functions | Private Attributes | List of all members
PageAlreadyLoadedBufMgr Class Reference

#include <exceptions.h>

Inheritance diagram for PageAlreadyLoadedBufMgr:
Inheritance graph
[legend]
Collaboration diagram for PageAlreadyLoadedBufMgr:
Collaboration graph
[legend]

Public Member Functions

 PageAlreadyLoadedBufMgr (PageId page_id)
 Constructor. More...
 
 ~PageAlreadyLoadedBufMgr () throw ()
 Destructor.
 
PageId getPageId () const throw ()
 Returns the PageId of the Page already in the buffer pool. More...
 
- Public Member Functions inherited from SwatDBException
 SwatDBException (const std::string &msg)
 
virtual ~SwatDBException () throw ()
 
virtual const char * what () const throw ()
 Returns the error message of the exception. More...
 

Private Attributes

PageId page_id
 

Additional Inherited Members

- Protected Attributes inherited from SwatDBException
std::string message
 

Detailed Description

PageAlreadyLoadedBufMgr is thrown by BufferManager when a page is trying to be added to the buffer pool, but a page with a matching PageId bufferpool is already in the buffer pool (individual pages can only be loaded one time).

Constructor & Destructor Documentation

◆ PageAlreadyLoadedBufMgr()

PageAlreadyLoadedBufMgr::PageAlreadyLoadedBufMgr ( PageId  page_id)
explicit

Constructor.

Parameters
page_id.PageId of the Page already in the buffer pool.

Member Function Documentation

◆ getPageId()

PageId PageAlreadyLoadedBufMgr::getPageId ( ) const
throw (
)

Returns the PageId of the Page already in the buffer pool.

Returns
PageId of the Page already in the buffer pool.

Member Data Documentation

◆ page_id

PageId PageAlreadyLoadedBufMgr::page_id
private

PageId of the Page already in the buffer pool.


The documentation for this class was generated from the following file: