Subsidiary class. More...

#include <SQLAPI.h>

Inherits SAValueRead.

Inherited by SAParam.

Public Member Functions

void setAsNull ()
 Sets value as null.
 
void setAsDefault ()
 Sets a flag to use default value.
 
bool isDefault () const
 Shows if "default value" flag is set.
 
void setAsUnknown ()
 Sets the value type as unknown.
 
bool & setAsBool ()
 Sets the value as bool data.
 
short & setAsShort ()
 Sets the value as short integer data.
 
unsigned short & setAsUShort ()
 Sets the value as unsigned short integer data.
 
long & setAsLong ()
 Sets the value as long integer data.
 
unsigned long & setAsULong ()
 Sets the value as unsigned long integer data.
 
sa_int64_t & setAsInt64 ()
 Sets the value as 64-bit integer data.
 
sa_uint64_t & setAsUInt64 ()
 Sets the value as unsigned 64-bit integer data.
 
double & setAsDouble ()
 Sets the value as double precision data.
 
SANumericsetAsNumeric ()
 Sets the value as SANumeric data.
 
SADateTimesetAsDateTime ()
 Sets the value as SADateTime data.
 
SAIntervalsetAsInterval ()
 Sets the value as SAInterval data.
 
SAStringsetAsString ()
 Sets value as character string data (SAString).
 
SAStringsetAsBytes ()
 Sets value as binary string data (SAString).
 
SAStringsetAsLongBinary (saLongOrLobWriter_t fnWriter=NULL, size_t nWriterSize=0, void *pAddlData=NULL)
 Sets value as long binary data (SAString).
 
SAStringsetAsLongChar (saLongOrLobWriter_t fnWriter=NULL, size_t nWriterSize=0, void *pAddlData=NULL)
 Sets value as long character data (SAString).
 
SAStringsetAsBLob (saLongOrLobWriter_t fnWriter=NULL, size_t nWriterSize=0, void *pAddlData=NULL)
 Sets parameter's value as BLob data (SAString).
 
SAStringsetAsCLob (saLongOrLobWriter_t fnWriter=NULL, size_t nWriterSize=0, void *pAddlData=NULL)
 Sets parameter's value as CLob data (SAString).
 
SACommand *& setAsCursor ()
 Sets value as a pointer to SACommand object.
 
- Public Member Functions inherited from SAValueRead
 SAValueRead (SADataType_t eDataType)
 Initializes the object with specified data type.
 
 SAValueRead (const SAValueRead &vr)
 Copy constructor.
 
SAValueReadoperator= (const SAValueRead &vr)
 Copy operator.
 
SADataType_t DataType () const
 Returns the object's data type.
 
bool isNull () const
 Returns true if the value of current object is NULL; otherwise false.
 
void setLongOrLobReaderMode (SALongOrLobReaderModes_t eMode)
 Sets Long or Lob data reading mode.
 
SALongOrLobReaderModes_t LongOrLobReaderMode () const
 Returns Long or Lob data reading mode.
 
bool asBool () const
 Returns the value of current object. More...
 
short asShort () const
 Returns the value of current object. More...
 
unsigned short asUShort () const
 Returns the value of current object. More...
 
long asLong () const
 Returns the value of current object. More...
 
unsigned long asULong () const
 Returns the value of current object. More...
 
sa_int64_t asInt64 () const
 Returns the value of current object. More...
 
sa_uint64_t asUInt64 () const
 Returns the value of current object. More...
 
double asDouble () const
 Returns the value of current object. More...
 
SANumeric asNumeric () const
 Returns the value of current object. More...
 
SADateTime asDateTime () const
 Returns the value of current object. More...
 
SAInterval asInterval () const
 Returns the value of current object. More...
 
SAString asString () const
 Returns the value of current object. More...
 
SAString asBytes () const
 Returns the value of current object. More...
 
SAString asLongBinary () const
 Returns the value of current object. More...
 
SAString asLongChar () const
 Returns the value of current object. More...
 
SAString asBLob () const
 Returns the value of current object. More...
 
SAString asCLob () const
 Returns the value of current object. More...
 
SACommandasCursor () const
 Returns the value of current object. More...
 
 operator bool () const
 Returns the value of current object. More...
 
 operator short () const
 Returns the value of current object. More...
 
 operator unsigned short () const
 Returns the value of current object. More...
 
 operator long () const
 Returns the value of current object. More...
 
 operator unsigned long () const
 Returns the value of current object. More...
 
 operator sa_int64_t () const
 Returns the value of current object. More...
 
 operator sa_uint64_t () const
 Returns the value of current object. More...
 
 operator double () const
 Returns the value of current object. More...
 
 operator SANumeric () const
 Returns the value of current object. More...
 
 operator SADateTime () const
 Returns the value of current object. More...
 
 operator SAInterval () const
 Returns the value of current object. More...
 
 operator SAString () const
 Returns the value of current object. More...
 
 operator SACommand * () const
 Returns the value of current object. More...
 

Detailed Description

Subsidiary class.

SAValue is subsidiary class. It provides basic data writing services for SAParam object.