IValue Class Referenceabstract

#include <Pt/Db/IValue.h>

Database-value backend.

Public Member Functions

virtual bool isNull () const =0
 Returns true if the value is SQL NULL.
virtual bool getBool () const =0
 Returns the value as bool.
virtual int getInt () const =0
 Returns the value as int.
virtual unsigned getUnsigned () const =0
 Returns the value as unsigned.
virtual float getFloat () const =0
 Returns the value as float.
virtual double getDouble () const =0
 Returns the value as double.
virtual char getChar () const =0
 Returns the value as char.
virtual std::string getString () const =0
 Returns the value as string.
virtual Date getDate () const =0
 Returns the value as date.
virtual Time getTime () const =0
 Returns the value as time.
virtual DateTime getDateTime () const =0
 Returns the value as date-time.
virtual void getBlob (Blob &blobdata) const =0
 Writes the value as binary data into blobdata.