Qyoto  4.0.7
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
QtSql.QSqlRelation Class Reference

The QSqlRelation class stores information about an SQL foreign key. More...

Inheritance diagram for QtSql.QSqlRelation:
Collaboration diagram for QtSql.QSqlRelation:

Public Member Functions

 QSqlRelation ()
  More...
 
 QSqlRelation (QSqlRelation copy)
 
 QSqlRelation (string aTableName, string indexCol, string displayCol)
  More...
 
virtual void CreateProxy ()
 
new void Dispose ()
 

Protected Member Functions

 QSqlRelation (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

string DisplayColumn [get]
  More...
 
string IndexColumn [get]
  More...
 
bool IsValid [get]
  More...
 
string TableName [get]
  More...
 
virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QSqlRelation class stores information about an SQL foreign key.

QSqlRelation is a helper class for QSqlRelationalTableModel. See QSqlRelationalTableModel::setRelation() and QSqlRelationalTableModel::relation() for details.

See also QSqlRelationalTableModel, QSqlRelationalDelegate, and Relational Table Model Example.

Constructor & Destructor Documentation

QtSql.QSqlRelation.QSqlRelation ( System.Type  dummy)
protected
QtSql.QSqlRelation.QSqlRelation ( )

Constructs an invalid QSqlRelation object.

For such an object, the tableName(), indexColumn(), and displayColumn() functions return an empty string.

See also isValid().

Here is the call graph for this function:

QtSql.QSqlRelation.QSqlRelation ( QSqlRelation  copy)

Here is the call graph for this function:

QtSql.QSqlRelation.QSqlRelation ( string  aTableName,
string  indexCol,
string  displayCol 
)

Constructs a QSqlRelation object, where tableName is the SQL table name to which a foreign key refers, indexColumn is the foreign key, and displayColumn is the field that should be presented to the user.

See also tableName(), indexColumn(), and displayColumn().

Here is the call graph for this function:

Member Function Documentation

virtual void QtSql.QSqlRelation.CreateProxy ( )
virtual

Here is the caller graph for this function:

new void QtSql.QSqlRelation.Dispose ( )

Member Data Documentation

SmokeInvocation QtSql.QSqlRelation.interceptor
protected

Property Documentation

string QtSql.QSqlRelation.DisplayColumn
get

Returns the column from table tableName() that should be presented to the user instead of a foreign key.

string QtSql.QSqlRelation.IndexColumn
get

Returns the index column from table tableName() to which a foreign key refers.

bool QtSql.QSqlRelation.IsValid
get

Returns true if the QSqlRelation object is valid; otherwise returns false.

virtual System.IntPtr QtSql.QSqlRelation.SmokeObject
getset
string QtSql.QSqlRelation.TableName
get

Returns the name of the table to which a foreign key refers.