rwlogo

Rogue Wave DBLink API Reference Guide

Product Documentation:

Rogue Wave DBLink
Documentation Home

List of all members | Public Member Functions
IldSchemaEntity Class Reference

This class is the base class for all descriptions of schema entities in a database. More...

#include <ildblink/ildent.h>

Inheritance diagram for IldSchemaEntity:
IldADTDescriptor IldCallable IldRelation IldSynonym

Public Member Functions

virtual ~IldSchemaEntity ()
 This virtual destructor is invoked when any instance of a subclass from IldSchemaEntity is being destroyed. More...
 
IldDbmsgetDbms () const
 Get the attached to connection object. More...
 
IldEntityType getEntityType () const
 Get the type of the entity. More...
 
IlInt getId () const
 get the identifier of the entity. More...
 
const char * getName () const
 Get the name of the entity. More...
 
const char * getOwner () const
 Get the owner of the entity. More...
 

Detailed Description

This class is the base class for all descriptions of schema entities in a database.

Library: dbkernel

See Also
IldEntityType

Constructor & Destructor Documentation

virtual IldSchemaEntity::~IldSchemaEntity ( )
virtual

This virtual destructor is invoked when any instance of a subclass from IldSchemaEntity is being destroyed.

The destructor also updates the IldDbms object that refers to that entity.

Member Function Documentation

IldDbms* IldSchemaEntity::getDbms ( ) const

Get the attached to connection object.

Returns
The IldDbms object related to this entity.
Note
A null object will be returned if the entity was retrieved by means of one of the metadata read methods (e.g. readRelation).
IldEntityType IldSchemaEntity::getEntityType ( ) const

Get the type of the entity.

Returns
The type of the entity.

The returned value is any value from the enumeration IldEntityType with the exception of IldUnknownEntity.

IlInt IldSchemaEntity::getId ( ) const

get the identifier of the entity.

Returns
The numeric identifier of the entity if it exists.

Otherwise, it returns 0. The existence of the identifier depends on the RDBMS.

const char * IldSchemaEntity::getName ( ) const

Get the name of the entity.

Returns
The name of the entity as a string.

There always exists a name for any entity. It may be RDBMS generated.

Warning
Do not modify nor destroy the returned string.
const char * IldSchemaEntity::getOwner ( ) const

Get the owner of the entity.

Returns
The owner of the entity as a string.

The owner may differ from the current user.

Warning
Do not modify nor destroy the returned string.

© Copyright 2014, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.