Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.sql
Class QSqlIndex

    java.lang.Object
      com.trolltech.qt.internal.QSignalEmitterInternal
          com.trolltech.qt.QSignalEmitter
              com.trolltech.qt.QtJambiObject
                  com.trolltech.qt.sql.QSqlRecord
                      com.trolltech.qt.sql.QSqlIndex

All Implemented Interfaces:
  QtJambiInterface, java.lang.Cloneable

    public class QSqlIndex

extends QSqlRecord
implements java.lang.Cloneable

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.

Nested Class Summary

Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
`QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9`

Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal`

Field Summary

Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`currentSender`

Constructor Summary
`QSqlIndex()` Constructs an empty index using the cursor name `cursorname` and index name `name`.
`QSqlIndex(QSqlIndex other)` Constructs a copy of `other`.
`QSqlIndex(java.lang.String cursorName)` Constructs an empty index using the cursor name `cursorname` and index name `name`.
`QSqlIndex(java.lang.String cursorName, java.lang.String name)` Constructs an empty index using the cursor name `cursorname` and index name `name`.

Method Summary
`void` | `append(QSqlField field, boolean desc)` Appends the field `field` to the list of indexed fields.
`QSqlIndex` | `clone()` This method is reimplemented for internal reasons
`java.lang.String` | `cursorName()` Returns the name of the cursor which the index is associated with.
`boolean` | `isDescending(int i)` Returns true if field `i` in the index is sorted in descending order; otherwise returns false.
`java.lang.String` | `name()` Returns the name of the index.
`void` | `setCursorName(java.lang.String cursorName)` Sets the name of the cursor that the index is associated with to `cursorName`.
`void` | `setDescending(int i, boolean desc)` If `desc` is true, field `i` is sorted in descending order.
`void` | `setName(java.lang.String name)` Sets the name of the index to `name`.

Methods inherited from class com.trolltech.qt.sql.QSqlRecord
`append, clear, clearValues, contains, count, field, field, fieldName, indexOf, insert, isEmpty, isGenerated, isGenerated, isNull, isNull, remove, replace, setGenerated, setGenerated, setNull, setNull, setValue, setValue, toString, value, value`

Methods inherited from class com.trolltech.qt.QtJambiObject
`dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr`

Methods inherited from class com.trolltech.qt.QSignalEmitter
`blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread`

Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`__qt_signalInitialization`

Methods inherited from class java.lang.Object
`getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface com.trolltech.qt.QtJambiInterface
`disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership`

Constructor Detail

### QSqlIndex

    public QSqlIndex(QSqlIndex other)

  Constructs a copy of `other`.

### QSqlIndex

    public QSqlIndex(java.lang.String cursorName)

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

### QSqlIndex

    public QSqlIndex()

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

### QSqlIndex

    public QSqlIndex(java.lang.String cursorName,
                     java.lang.String name)

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

Method Detail

### append

    public final void append(QSqlField field,
                             boolean desc)

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

### cursorName

    public final java.lang.String cursorName()

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

See also:
  `setCursorName()`.

### isDescending

    public final boolean isDescending(int i)

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

### name

    public final java.lang.String name()

  Returns the name of the index.

See also:
  `setName()`.

### setCursorName

    public final void setCursorName(java.lang.String cursorName)

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

See also:
  `cursorName()`.

### setDescending

    public final void setDescending(int i,
                                    boolean 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()`.

### setName

    public final void setName(java.lang.String name)

  Sets the name of the index to `name`.

See also:
  `name()`.

### clone

    public QSqlIndex clone()

  This method is reimplemented for internal reasons

  Overrides:
    `clone` in class `QSqlRecord`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD