Class to hold RWDBTable metadata for cache managers.
More...
#include <rw/db/cachemgr.h>
RWDBTableEntry is a class for moving RWDBTable metadata in and out of a cache manager class that inherits from RWDBCacheManager.
- Synopsis
#include <rw/db/cachemgr.h>
#include <rw/tvhmap.h>
{
tCache.insert(name, tEntry);
}
tCache.findValue(name, tEntry);
return tEntry;
}
private:
};
RWDBTableEntry::RWDBTableEntry |
( |
| ) |
|
Constructs an empty object with no metadata information.
Copies all metadata information from entry.
void RWDBTableEntry::clearCheckConstraints |
( |
| ) |
|
void RWDBTableEntry::clearExists |
( |
| ) |
|
Clears the exists flag on self. After this call hasExists() returns false
.
void RWDBTableEntry::clearForeignKeys |
( |
| ) |
|
void RWDBTableEntry::clearIsView |
( |
| ) |
|
Clears the isView flag on self. After this call hasIsView() returns false
.
void RWDBTableEntry::clearPrimaryKey |
( |
| ) |
|
void RWDBTableEntry::clearReferredToBy |
( |
| ) |
|
Clears the referredToBy list set on self. After this call hasReferredToBy() returns false
.
void RWDBTableEntry::clearSchema |
( |
| ) |
|
void RWDBTableEntry::clearUniqueConstraints |
( |
| ) |
|
bool RWDBTableEntry::getExists |
( |
| ) |
const |
Returns the exists flag set on self.
- Note
- If hasExists() returns
false
this call returns false
.
bool RWDBTableEntry::getIsView |
( |
| ) |
const |
Returns the isView flag set on self.
- Note
- If hasIsView() returns
false
this call returns false
.
Returns the RWDBTable::Metadata set on self for the associated schema. Indicates the metadata information that is currently known by the schema.
bool RWDBTableEntry::hasCheckConstraints |
( |
| ) |
const |
bool RWDBTableEntry::hasExists |
( |
| ) |
const |
Returns true
if the exists flag has been set on self.
bool RWDBTableEntry::hasForeignKeys |
( |
| ) |
const |
bool RWDBTableEntry::hasIsView |
( |
| ) |
const |
Returns true
if the isView flag has been set on self.
bool RWDBTableEntry::hasPrimaryKey |
( |
| ) |
const |
bool RWDBTableEntry::hasReferredToBy |
( |
| ) |
const |
Returns true
if the referredToBy list has been set on self.
bool RWDBTableEntry::hasSchema |
( |
| ) |
const |
Returns true
if the RWDBSchema has been set on self.
bool RWDBTableEntry::hasUniqueConstraints |
( |
| ) |
const |
Assignment operator. Copies all contained objects.
void RWDBTableEntry::setExists |
( |
bool |
exists | ) |
|
Sets the exists flag on self. After this call hasExists() returns true
.
void RWDBTableEntry::setIsView |
( |
bool |
isView | ) |
|
Sets the isView flag on self. After this call hasIsView() returns true
.
Sets the referredToBy list on self with a deep copy of rk. After this call hasReferredToBy() returns true
.
void RWDBTableEntry::setSchema |
( |
const RWDBSchema & |
schema | ) |
|
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.
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.
Restores an RWDBTableEntry 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.
Restores an RWDBTableEntry 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.