StoreableFilterBase Class ReferenceBase class for routines that converts Storeable object members to arguents to Database queries and Database results to members.
More...
#include <storeablefilter.h>
Inheritance diagram for StoreableFilterBase:
[legend]List of all members.
|
Public Member Functions |
| virtual void | fromDate (const ConvSpec &pSpec, const tm &pDate) throw (StoreableFilterException) |
| | Convert to C++ type from int value received from database.
|
| virtual void | fromDouble (const ConvSpec &pSpec, double pData) throw (StoreableFilterException) |
| | Convert to C++ type from double value received from database.
|
| virtual void | fromInt (const ConvSpec &pSpec, int pData) throw (StoreableFilterException) |
| | Convert to C++ type from int value received from database.
|
|
virtual void | fromNull ()=0 throw (StoreableFilterException) |
| | Set C++ type from NULL value.
|
| virtual void | fromString (const ConvSpec &pSpec, const std::string &pData) throw (StoreableFilterException) |
| | Convert to C++ type from std::string value received from database.
|
|
virtual void * | getRef () const =0 |
| | Get pointer to C++ member.
|
| virtual bool | isNull () const =0 |
| | Check if C++ type should be stored as NULL value in database.
|
| virtual std::string | toString (const ConvSpec &pSpec) const =0 throw (StoreableFilterException) |
| | Convert type to string.
|
| virtual void | updateRef (void *pNewMember)=0 |
| | Update pointer to C++ member to new address.
|
Detailed Description
Base class for routines that converts Storeable object members to arguents to Database queries and Database results to members.
- Warning:
- You should not derive from this class - use StoreableFilter instead
Member Function Documentation
|
|
Convert to C++ type from int value received from database.
Should throw dba::StoreableFilterException if conversion fails Must be implemented for BIND_DAT usage - Parameters:
-
| pSpec | conversion parameters dependent of used database |
| pDate | source value for conversion |
Reimplemented in DateTime, Double, Float, Int, and String. |
|
|
Convert to C++ type from double value received from database.
Should throw dba::StoreableFilterException if conversion fails Must be implemented for BIND_FLT usage - Parameters:
-
| pSpec | conversion parameters dependent of used database |
| pData | source value for conversion |
Reimplemented in Bool, DateTime, Double, Float, Int, and String. |
|
|
Convert to C++ type from int value received from database.
Should throw dba::StoreableFilterException if conversion fails Must be implemented for BIND_INT usage - Parameters:
-
| pSpec | conversion parameters dependent of used database |
| pData | source value for conversion |
Reimplemented in Bool, DateTime, Double, Float, Int, and String. |
|
|
Convert to C++ type from std::string value received from database.
Should throw dba::StoreableFilterException if conversion fails Must be implemented for BIND_STR usage - Parameters:
-
| pSpec | conversion parameters dependent of used database |
| pData | source value for conversion |
Reimplemented in Bool, DateTime, Double, Float, Int, and String. |
| virtual bool isNull |
( |
|
) |
const [pure virtual] |
|
|
|
Check if C++ type should be stored as NULL value in database.
- Returns:
- true if NULL should be stored, false otherwise
Implemented in Bool, DateTime, Double, Float, Int, and String. |
| virtual void updateRef |
( |
void * |
pNewMember |
) |
[pure virtual] |
|
The documentation for this class was generated from the following file:
|
|
|