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

The QSqlIndex class provides functions to manipulate and describe database indexes. More...

Inheritance diagram for QtSql.QSqlIndex:
Collaboration diagram for QtSql.QSqlIndex:

Public Member Functions

 QSqlIndex (QSqlIndex other)
 
 
 QSqlIndex (string cursorName="", string name="")
 
 
override void CreateProxy ()
 
new void Append (QSqlField field)
 
 
new void Append (QSqlField field, bool desc)
 
 
new bool IsDescending (int i)
 
 
new void SetDescending (int i, bool desc)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtSql.QSqlRecord
override bool Equals (object o)
 
override int GetHashCode ()
 
 QSqlRecord ()
 
 
 QSqlRecord (QSqlRecord other)
 
 
new void Append (QSqlField field)
 
 
new void Clear ()
 
 
new void ClearValues ()
 
 
new bool Contains (string name)
 
 
new int Count ()
 
 
new QSqlField Field (int i)
 
 
new QSqlField Field (string name)
 
 
new string FieldName (int i)
 
 
new int IndexOf (string name)
 
 
new void Insert (int pos, QSqlField field)
 
 
new bool IsEmpty ()
 
 
new bool IsGenerated (int i)
 
 
new bool IsGenerated (string name)
 
 
new bool IsNull (int i)
 
 
new bool IsNull (string name)
 
 
new void Remove (int pos)
 
 
new void Replace (int pos, QSqlField field)
 
 
new void SetGenerated (string name, bool generated)
 
 
new void SetGenerated (int i, bool generated)
 
 
new void SetNull (int i)
 
 
new void SetNull (string name)
 
 
new void SetValue (int i, object val)
 
 
new void SetValue (string name, object val)
 
 
new object Value (int i)
 
 
new object Value (string name)
 
 
new void Dispose ()
 

Protected Member Functions

 QSqlIndex (System.Type dummy)
 
- Protected Member Functions inherited from QtSql.QSqlRecord
 QSqlRecord (System.Type dummy)
 

Properties

new string CursorName [get, set]
 
 
new string Name [get, set]
 
 
- Properties inherited from QtSql.QSqlRecord
virtual System.IntPtr SmokeObject [get, set]
 

Additional Inherited Members

- Static Public Member Functions inherited from QtSql.QSqlRecord
static bool operator!= (QSqlRecord arg1, QSqlRecord arg2)
 
 
static bool operator== (QSqlRecord arg1, QSqlRecord arg2)
 
 
- Protected Attributes inherited from QtSql.QSqlRecord
SmokeInvocation interceptor
 

Detailed Description

The QSqlIndex class provides functions to manipulate and describe database indexes.

An index refers to a single table or view in a database. Information about the fields that comprise the index can be used to generate SQL statements.

Constructor & Destructor Documentation

QtSql.QSqlIndex.QSqlIndex ( System.Type  dummy)
protected
QtSql.QSqlIndex.QSqlIndex ( QSqlIndex  other)

Constructs a copy of other.

QtSql.QSqlIndex.QSqlIndex ( string  cursorName = "",
string  name = "" 
)

Constructs an empty index using the cursor name cursorname and index name name.

Member Function Documentation

new void QtSql.QSqlIndex.Append ( QSqlField  field)

Appends the field field to the list of indexed fields. The field is appended with an ascending sort order.

new void QtSql.QSqlIndex.Append ( QSqlField  field,
bool  desc 
)

This is an overloaded function.

Appends the field field to the list of indexed fields. The field is appended with an ascending sort order, unless desc is true.

override void QtSql.QSqlIndex.CreateProxy ( )
virtual

Reimplemented from QtSql.QSqlRecord.

new void QtSql.QSqlIndex.Dispose ( )
new bool QtSql.QSqlIndex.IsDescending ( int  i)

Returns true if field i in the index is sorted in descending order; otherwise returns false.

new void QtSql.QSqlIndex.SetDescending ( int  i,
bool  desc 
)

If desc is true, field i is sorted in descending order. Otherwise, field i is sorted in ascending order (the default). If the field does not exist, nothing happens.

See also isDescending().

Property Documentation

new string QtSql.QSqlIndex.CursorName
getset

Returns the name of the cursor which the index is associated with.

Sets the name of the cursor that the index is associated with to cursorName.

new string QtSql.QSqlIndex.Name
getset

Returns the name of the index.

Sets the name of the index to name.