org.kde.qt
Class QSqlQuery

java.lang.Object
  extended by org.kde.qt.QSqlQuery
All Implemented Interfaces:
QSqlQueryInterface, QtSupport

public class QSqlQuery
extends java.lang.Object
implements QtSupport, QSqlQueryInterface


Constructor Summary
  QSqlQuery()
           
protected QSqlQuery(java.lang.Class dummy)
           
  QSqlQuery(QSqlDatabase db)
           
  QSqlQuery(QSqlQueryInterface other)
           
  QSqlQuery(QSqlResult r)
           
  QSqlQuery(java.lang.String query)
           
  QSqlQuery(java.lang.String query, QSqlDatabase db)
           
 
Method Summary
 void addBindValue(QVariant val)
           
 void addBindValue(QVariant val, int type)
           
protected  void afterSeek()
           
 int at()
           
protected  void beforeSeek()
           
 void bindValue(int pos, QVariant val)
           
 void bindValue(int pos, QVariant val, int type)
           
 void bindValue(java.lang.String placeholder, QVariant val)
           
 void bindValue(java.lang.String placeholder, QVariant val, int type)
           
 QVariant boundValue(int pos)
           
 QVariant boundValue(java.lang.String placeholder)
           
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
 QSqlDriver driver()
           
 boolean exec()
           
 boolean exec(java.lang.String query)
           
 java.lang.String executedQuery()
           
protected  void finalize()
          Deletes the wrapped C++ instance
 boolean first()
           
 boolean isActive()
           
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 boolean isForwardOnly()
           
 boolean isNull(int field)
           
 boolean isSelect()
           
 boolean isValid()
           
 boolean last()
           
 QSqlError lastError()
           
 java.lang.String lastQuery()
           
 boolean next()
           
 int numRowsAffected()
           
 boolean prepare(java.lang.String query)
           
 boolean prev()
           
 QSqlResult result()
           
 boolean seek(int i)
           
 boolean seek(int i, boolean relative)
           
 void setForwardOnly(boolean forward)
           
 int size()
           
 QVariant value(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QSqlQuery

protected QSqlQuery(java.lang.Class dummy)

QSqlQuery

public QSqlQuery(QSqlResult r)

QSqlQuery

public QSqlQuery(java.lang.String query,
                 QSqlDatabase db)

QSqlQuery

public QSqlQuery(java.lang.String query)

QSqlQuery

public QSqlQuery()

QSqlQuery

public QSqlQuery(QSqlDatabase db)

QSqlQuery

public QSqlQuery(QSqlQueryInterface other)
Method Detail

isValid

public boolean isValid()
Specified by:
isValid in interface QSqlQueryInterface

isActive

public boolean isActive()
Specified by:
isActive in interface QSqlQueryInterface

isNull

public boolean isNull(int field)
Specified by:
isNull in interface QSqlQueryInterface

at

public int at()
Specified by:
at in interface QSqlQueryInterface

lastQuery

public java.lang.String lastQuery()
Specified by:
lastQuery in interface QSqlQueryInterface

numRowsAffected

public int numRowsAffected()
Specified by:
numRowsAffected in interface QSqlQueryInterface

lastError

public QSqlError lastError()
Specified by:
lastError in interface QSqlQueryInterface

isSelect

public boolean isSelect()
Specified by:
isSelect in interface QSqlQueryInterface

size

public int size()
Specified by:
size in interface QSqlQueryInterface

driver

public QSqlDriver driver()
Specified by:
driver in interface QSqlQueryInterface

result

public QSqlResult result()
Specified by:
result in interface QSqlQueryInterface

isForwardOnly

public boolean isForwardOnly()
Specified by:
isForwardOnly in interface QSqlQueryInterface

setForwardOnly

public void setForwardOnly(boolean forward)
Specified by:
setForwardOnly in interface QSqlQueryInterface

exec

public boolean exec(java.lang.String query)
Specified by:
exec in interface QSqlQueryInterface

value

public QVariant value(int i)
Specified by:
value in interface QSqlQueryInterface

seek

public boolean seek(int i,
                    boolean relative)
Specified by:
seek in interface QSqlQueryInterface

seek

public boolean seek(int i)
Specified by:
seek in interface QSqlQueryInterface

next

public boolean next()
Specified by:
next in interface QSqlQueryInterface

prev

public boolean prev()
Specified by:
prev in interface QSqlQueryInterface

first

public boolean first()
Specified by:
first in interface QSqlQueryInterface

last

public boolean last()
Specified by:
last in interface QSqlQueryInterface

exec

public boolean exec()
Specified by:
exec in interface QSqlQueryInterface

prepare

public boolean prepare(java.lang.String query)
Specified by:
prepare in interface QSqlQueryInterface

bindValue

public void bindValue(java.lang.String placeholder,
                      QVariant val)
Specified by:
bindValue in interface QSqlQueryInterface

bindValue

public void bindValue(int pos,
                      QVariant val)
Specified by:
bindValue in interface QSqlQueryInterface

addBindValue

public void addBindValue(QVariant val)
Specified by:
addBindValue in interface QSqlQueryInterface

bindValue

public void bindValue(java.lang.String placeholder,
                      QVariant val,
                      int type)
Specified by:
bindValue in interface QSqlQueryInterface

bindValue

public void bindValue(int pos,
                      QVariant val,
                      int type)
Specified by:
bindValue in interface QSqlQueryInterface

addBindValue

public void addBindValue(QVariant val,
                         int type)
Specified by:
addBindValue in interface QSqlQueryInterface

boundValue

public QVariant boundValue(java.lang.String placeholder)
Specified by:
boundValue in interface QSqlQueryInterface

boundValue

public QVariant boundValue(int pos)
Specified by:
boundValue in interface QSqlQueryInterface

executedQuery

public java.lang.String executedQuery()
Specified by:
executedQuery in interface QSqlQueryInterface

beforeSeek

protected void beforeSeek()

afterSeek

protected void afterSeek()

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()


isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?