RFTester Tool for automated testing relevance feedback algorithms fro known-item search

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RFTesterBackend.AbstractDao< T > Class Template Reference

Abstract implementation of data access object for given class T. More...

## Public Member Functions
bool | Save (T obj)
| Saves passed object More...
bool | Delete (T obj)
| Deletes passed object More...
List< T > | GetAll ()
| Returns all saved objects More...
T | Get (int i)
| Returns an object of given position More...

## Protected Member Functions
| AbstractDao ()

## Protected Attributes
List< T > | cache = new List<T>()
| Main cache More...

## Detailed Description

Abstract implementation of data access object for given class T.

All operations are thread safe.

Template Parameters

  T | Class for persistance

## Constructor & Destructor Documentation

## ◆ AbstractDao()

RFTesterBackend.AbstractDao< T >.AbstractDao | ( |  | ) |
| inlineprotected

## Member Function Documentation

## ◆ Delete()

bool RFTesterBackend.AbstractDao< T >.Delete | ( | T | obj | ) |
| inline

Deletes passed object

Parameters

  obj |

Returns

## ◆ Get()

T RFTesterBackend.AbstractDao< T >.Get | ( | int | i | ) |
| inline

Returns an object of given position

Parameters

  i |

Returns

## ◆ GetAll()

List<T> RFTesterBackend.AbstractDao< T >.GetAll | ( |  | ) |
| inline

Returns all saved objects

Returns

## ◆ Save()

bool RFTesterBackend.AbstractDao< T >.Save | ( | T | obj | ) |
| inline

Saves passed object

Parameters

  obj |

Returns

## Member Data Documentation

## ◆ cache

List<T> RFTesterBackend.AbstractDao< T >.cache = new List<T>()
| protected

Main cache

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

- RFTesterBackend/AbstractDao.cs