Views
Data Access Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IliTreeSQLTablesGadget Class Reference

Gadget class. More...

#include <ilviews/dataccess/gadgets/sqlrepvw.h>

Inheritance diagram for IliTreeSQLTablesGadget:
IlvTreeGadget IlvScrolledGadget IlvTreeGadgetItemHolder IlvGadget IlvGadgetItemHolder IlvSimpleGraphic IlvStylable IlvGraphic IlvValueInterface

Public Member Functions

 IliTreeSQLTablesGadget (IlvDisplay *display, const IlvRect &rect, IliSQLSession *session=0, const char *owner=0, IlUShort thickness=IlvDefaultGadgetThickness, IlvPalette *palette=0)
 Initializes a tree gadget to display the tables of one owner or all tables (when the owner is null). More...
 
virtual void build ()
 Builds the tree then displays it. More...
 
const char * getOwner () const
 Returns the owner's name. More...
 
IliSQLSessiongetSession () const
 Returns the SQL session that is used to communicate with the database. More...
 
IlBoolean isSynonym (const char *name) const
 Specifies whether a given name recorded in the tree is a synonym or a basic table. Both table and synonym names are stored within the tree. This member function will tell for each names if it represents a basic table, or a synonym.
 
void setOwner (const char *name)
 Sets the owner's name. More...
 
void setSession (IliSQLSession *session)
 Sets the session that is used to communicate with the database. More...
 

Detailed Description

Gadget class.

Library: dbsqlgad

The IliTreeSQLTablesGadget class defines a tree gadget class that displays the tables of one owner or all the tables. For each table, the tree gadget can display the list of columns and the column type.

See also
IliRepositoryService.

Constructor & Destructor Documentation

◆ IliTreeSQLTablesGadget()

IliTreeSQLTablesGadget::IliTreeSQLTablesGadget ( IlvDisplay display,
const IlvRect rect,
IliSQLSession session = 0,
const char *  owner = 0,
IlUShort  thickness = IlvDefaultGadgetThickness,
IlvPalette palette = 0 
)

Initializes a tree gadget to display the tables of one owner or all tables (when the owner is null).

Parameters
displayThe display.
rectThe location.
sessionThe session used to communicate with the database.
ownerThe owner's name.
thicknessThe border thickness.
paletteThe palette.

Member Function Documentation

◆ build()

virtual void IliTreeSQLTablesGadget::build ( )
virtual

Builds the tree then displays it.

When you change the session or the owner, you must call this function to rebuild the tree.

◆ getOwner()

const char* IliTreeSQLTablesGadget::getOwner ( ) const

Returns the owner's name.

Returns
The name.

◆ getSession()

IliSQLSession* IliTreeSQLTablesGadget::getSession ( ) const

Returns the SQL session that is used to communicate with the database.

Returns
The session.

◆ setOwner()

void IliTreeSQLTablesGadget::setOwner ( const char *  name)

Sets the owner's name.

If the owner is null, all the database tables are displayed. To rebuild the tree, you must call the function build.

Parameters
nameThe owner name.

◆ setSession()

void IliTreeSQLTablesGadget::setSession ( IliSQLSession session)

Sets the session that is used to communicate with the database.

To rebuild the tree, you must call the function build.

Parameters
sessionThe SQL session.