Instances of the class IldADTDescriptor
hold the description of an abstract data type.
More...
#include <ildblink/ildadtd.h>
Public Member Functions | |
virtual | ~IldADTDescriptor () |
This destructor deletes all subobjects contained in the current descriptor. | |
const IldDescriptor *const * | getAttributes () const |
Get the descriptors of the object. More... | |
IlUInt | getAttributesCount () const |
Get the number of attributes of the object. More... | |
const IldDescriptor * | getCollectionAttribute () const |
Get the descriptor for the elements of a collection. More... | |
IlUInt | getCollMaxSize () const |
Get the maximum size of a colleciton. More... | |
const IldCallable *const * | getMethods () const |
Get the method descriptors of the object. More... | |
IlUInt | getMethodsCount () const |
Get the number of methods of the object. More... | |
IldADTType | getType () const |
Get the ADT type of the object. More... | |
IlBoolean | isCollectionType () const |
Tell if the descriptor relates to a collection type. More... | |
IlBoolean | isNamedType () const |
Tell if the object is of a named type. More... | |
IlBoolean | isObjectType () const |
Tell if the descriptor relates to an object type. More... | |
void | lock () |
Increment the reference count of the object. | |
int | unLock () |
Decrement the reference count of the object and proceeds to its destructor if the count falls to zero. More... | |
Public Member Functions inherited from IldSchemaEntity | |
virtual | ~IldSchemaEntity () |
This virtual destructor is invoked when any instance of a subclass from IldSchemaEntity is being destroyed. More... | |
IldDbms * | getDbms () 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... | |
Instances of the class IldADTDescriptor
hold the description of an abstract data type.
Library: dbkernel
These descriptors are used in an RDBMS for any user-defined type whose purpose does not only consist of renaming the base type. Typically, Oracle object
and varray
types, or Informix named row
or (unnamed) row
types, and collection
types are described through instances of the IldADTDescriptor
class.
const IldDescriptor* const* IldADTDescriptor::getAttributes | ( | ) | const |
Get the descriptors of the object.
The returned array is null
-terminated and must not be deleted. When the descriptor describes a collection, the array contains a unique element.
IlUInt IldADTDescriptor::getAttributesCount | ( | ) | const |
Get the number of attributes of the object.
const IldDescriptor* IldADTDescriptor::getCollectionAttribute | ( | ) | const |
Get the descriptor for the elements of a collection.
The returned descriptor must not be deleted. If the invoking descriptor is not a collection, it returns null
.
IlUInt IldADTDescriptor::getCollMaxSize | ( | ) | const |
Get the maximum size of a colleciton.
If the descriptor does not relate to a collection type or if the collection is not bounded, it returns 0
.
const IldCallable* const* IldADTDescriptor::getMethods | ( | ) | const |
Get the method descriptors of the object.
null
.The returned array is null
-terminated and must not be deleted.
IlUInt IldADTDescriptor::getMethodsCount | ( | ) | const |
Get the number of methods of the object.
If the descriptor does not relate to an object, it returns 0
.
IldADTType IldADTDescriptor::getType | ( | ) | const |
IlBoolean IldADTDescriptor::isCollectionType | ( | ) | const |
Tell if the descriptor relates to a collection type.
IlTrue
if the object is a collection, IlFalse
otehrwise. IlBoolean IldADTDescriptor::isNamedType | ( | ) | const |
Tell if the object is of a named type.
IlTrue
if the descriptor is related to a named type, IlFalse
otherwise.Its main use is to differentiate an Informix unnamed row
from a named row
type.
IlBoolean IldADTDescriptor::isObjectType | ( | ) | const |
Tell if the descriptor relates to an object type.
IlTrue
if the object is an SQL object, IlFalse
otherwise. int IldADTDescriptor::unLock | ( | ) |
Decrement the reference count of the object and proceeds to its destructor if the count falls to zero.