SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWDBStoredProcEntry Class Reference

Class to hold RWDBStoredProc metadata for cache managers. More...

#include <rw/db/cachemgr.h>

Public Member Functions

 RWDBStoredProcEntry ()
 
 RWDBStoredProcEntry (const RWDBStoredProcEntry &entry)
 
void clearExists ()
 
void clearParams ()
 
void clearReturnValue ()
 
void clearText ()
 
bool getExists () const
 
RWDBSchema getParams () const
 
RWDBColumn getReturnValue () const
 
RWCString getText () const
 
bool hasExists () const
 
bool hasParams () const
 
bool hasReturnValue () const
 
bool hasText () const
 
RWDBStoredProcEntryoperator= (const RWDBStoredProcEntry &entry)
 
void setExists (bool exists)
 
void setParams (const RWDBSchema &schema)
 
void setReturnValue (const RWDBColumn &col)
 
void setText (const RWCString &text)
 

Friends

RWFileoperator<< (RWFile &file, const RWDBStoredProcEntry &item)
 
RWvostreamoperator<< (RWvostream &strm, const RWDBStoredProcEntry &item)
 
RWFileoperator>> (RWFile &file, RWDBStoredProcEntry &obj)
 
RWvistreamoperator>> (RWvistream &strm, RWDBStoredProcEntry &obj)
 

Detailed Description

RWDBStoredProcEntry is a class for moving RWDBStoredProc metadata in and out of a cache manager class that inherits from RWDBCacheManager.

Synopsis
#include <rw/db/cachemgr.h>
#include <rw/tvhmap.h>
class MyCacheManager : public RWDBCacheManager {
void setStoredProc(const RWCString& name,
const RWDBStoredProcEntry& spEntry) {
spCache.insert(name, spEntry);
}
RWDBStoredProcEntry getStoredProc(const RWCString& name) const {
spCache.findValue(name, spEntry);
return spEntry;
}
private:
};
Offers powerful and convenient facilities for manipulating strings.
Definition stdcstring.h:826
Base class for user-defined metadata cache managers.
Definition cachemgr.h:637
Class to hold RWDBStoredProc metadata for cache managers.
Definition cachemgr.h:55
Maintains a collection of keys, each with an associated item stored according to a hash object.
Definition tvhdict.h:144

Constructor & Destructor Documentation

◆ RWDBStoredProcEntry() [1/2]

RWDBStoredProcEntry::RWDBStoredProcEntry ( )

Constructs an empty object with no metadata information.

◆ RWDBStoredProcEntry() [2/2]

RWDBStoredProcEntry::RWDBStoredProcEntry ( const RWDBStoredProcEntry & entry)

Copies all metadata information from entry.

Member Function Documentation

◆ clearExists()

void RWDBStoredProcEntry::clearExists ( )

Clears the value of the exists flag. After this call, hasExists() returns false.

◆ clearParams()

void RWDBStoredProcEntry::clearParams ( )

Clears the parameter list on self. After this call hasParams() returns false.

◆ clearReturnValue()

void RWDBStoredProcEntry::clearReturnValue ( )

Clears the return value column on self. After this call hasReturnValue() returns false.

◆ clearText()

void RWDBStoredProcEntry::clearText ( )

Clears the text on self. After this call hasText() returns false.

◆ getExists()

bool RWDBStoredProcEntry::getExists ( ) const

Returns the value of the exists flag.

Note
If hasExists() returns false this function returns false.

◆ getParams()

RWDBSchema RWDBStoredProcEntry::getParams ( ) const

Returns the parameter list set on self.

Note
If hasParams() returns false this call returns an empty RWDBSchema.

◆ getReturnValue()

RWDBColumn RWDBStoredProcEntry::getReturnValue ( ) const

Returns the return value column set on self.

Note
If hasReturnValue() returns false this call returns an empty RWDBColumn.

◆ getText()

RWCString RWDBStoredProcEntry::getText ( ) const

Returns the text set on self.

Note
If hasText() returns false this call returns an empty RWCString.

◆ hasExists()

bool RWDBStoredProcEntry::hasExists ( ) const

Returns true if the exists flag has been set on self.

◆ hasParams()

bool RWDBStoredProcEntry::hasParams ( ) const

Returns true if a parameter list has been set on self.

◆ hasReturnValue()

bool RWDBStoredProcEntry::hasReturnValue ( ) const

Returns true if the return value column has been set on self.

◆ hasText()

bool RWDBStoredProcEntry::hasText ( ) const

Returns true if the text has been set on self.

◆ operator=()

RWDBStoredProcEntry & RWDBStoredProcEntry::operator= ( const RWDBStoredProcEntry & entry)

Copies all metadata information from entry.

◆ setExists()

void RWDBStoredProcEntry::setExists ( bool exists)

Sets exists flag on self. After this call, hasExists() returns true.

◆ setParams()

void RWDBStoredProcEntry::setParams ( const RWDBSchema & schema)

Sets the parameter list on self. After this call hasParams() returns true.

◆ setReturnValue()

void RWDBStoredProcEntry::setReturnValue ( const RWDBColumn & col)

Sets the return value column on self. After this call hasReturnValue() returns true.

◆ setText()

void RWDBStoredProcEntry::setText ( const RWCString & text)

Sets the text on self. After this call hasText() returns true.

Friends And Related Symbol Documentation

◆ operator<< [1/2]

RWFile & operator<< ( RWFile & file,
const RWDBStoredProcEntry & item )
friend

Saves the object item to an RWFile. Recursively calls the function saveGuts(), taking duplicate objects into account. See the discussion on Persistence in the Essential Tools Module User's Guide for more information.

◆ operator<< [2/2]

RWvostream & operator<< ( RWvostream & strm,
const RWDBStoredProcEntry & item )
friend

Saves the object item to a virtual stream. Recursively calls the function saveGuts(), taking duplicate objects into account. See the discussion on Persistence in the Essential Tools Module User's Guide for more information.

◆ operator>> [1/2]

RWFile & operator>> ( RWFile & file,
RWDBStoredProcEntry & obj )
friend

Restores an RWDBStoredProcEntry into obj from an RWFile, replacing the previous contents of obj. Recursively calls the function restoreGuts(), taking duplicate objects into account. For more information, see the discussion on Persistence in the Essential Tools Module User's Guide.

◆ operator>> [2/2]

RWvistream & operator>> ( RWvistream & strm,
RWDBStoredProcEntry & obj )
friend

Restores an RWDBStoredProcEntry into obj from a virtual stream, replacing the previous contents of obj. Recursively calls the function restoreGuts(), taking duplicate objects into account. For more information, see the discussion on Persistence in the Essential Tools Module User's Guide.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.