Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

PreparedStatement Class Reference

#include <PreparedStatement.h>

Inheritance diagram for PreparedStatement

Inheritance graph

[legend]
Collaboration diagram for PreparedStatement:

Collaboration graph

[legend]
List of all members.

Public Methods

virtual ~PreparedStatement ()
const nsAReadableString& getSQL ()
virtual void clearParameters ()
virtual void setString (int p, const nsAReadableString& value)
virtual int executeUpdate ()
virtual void execute ()
virtual ResultSetexecuteQuery ()
virtual void setNull (int parameterIndex, int sqlType)
virtual void setbool (int parameterIndex, bool x)
virtual void setByte (int parameterIndex, unsigned char x)
virtual void setShort (int parameterIndex, short x)
virtual void setInt (int parameterIndex, int x)
virtual void setLong (int parameterIndex, long x)
virtual void setFloat (int parameterIndex, float x)
virtual void setDouble (int parameterIndex, double x)
virtual void setBigDecimal (int parameterIndex, BigDecimal* x)
virtual void setBytes (int parameterIndex, unsigned char* x, int length)
virtual void setDate (int parameterIndex, Date* x)
virtual void setTime (int parameterIndex, Time* x)
virtual void setTimestamp (int parameterIndex, Timestamp* x)
virtual void setAsciiStream (int parameterIndex, InputStream* x, int length)
virtual void setUnicodeStream (int parameterIndex, InputStream* x, int length)
virtual void setBinaryStream (int parameterIndex, InputStream* x, int length)
virtual void setObject (int parameterIndex, Object* x, int targetSqlType, int scale)
virtual void setObject (int parameterIndex, Object* x, int targetSqlType)
virtual void setObject (int parameterIndex, Object* x)

Protected Methods

 PreparedStatement (const nsAReadableString& sql)

Protected Attributes

nsString m_sql

Constructor & Destructor Documentation

PreparedStatement::PreparedStatement ( const nsAReadableString & sql ) [protected]
 

Definition at line 27 of file PreparedStatement.h.

PreparedStatement::~PreparedStatement ( ) [inline, virtual]
 

Definition at line 29 of file PreparedStatement.h.


Member Function Documentation

void PreparedStatement::clearParameters ( ) [inline, virtual]
 

Reimplemented in PreparedStatementDB2, PreparedStatementODBC, PreparedStatementOracle, and PreparedStatementSybase.

Definition at line 32 of file PreparedStatement.h.

Referenced by Transaction::doInsert().

void PreparedStatement::execute ( ) [inline, virtual]
 

Reimplemented in PreparedStatementDB2, PreparedStatementODBC, PreparedStatementOracle, and PreparedStatementSybase.

Definition at line 35 of file PreparedStatement.h.

Referenced by Transaction::doInsert(), Transaction::doSelect(), and Report::doSelect().

ResultSet * PreparedStatement::executeQuery ( ) [inline, virtual]
 

Reimplemented in PreparedStatementODBC.

Definition at line 37 of file PreparedStatement.h.

int PreparedStatement::executeUpdate ( ) [inline, virtual]
 

Reimplemented in PreparedStatementDB2, PreparedStatementODBC, PreparedStatementOracle, and PreparedStatementSybase.

Definition at line 34 of file PreparedStatement.h.

Referenced by Transaction::doDelete(), Transaction::doInsert(), and Transaction::doUpdate().

const nsAReadableString & PreparedStatement::getSQL ( ) [inline]
 

Definition at line 30 of file PreparedStatement.h.

Referenced by Connection::prepareCall(), and Connection::prepareStatement().

void PreparedStatement::setAsciiStream ( int parameterIndex,
InputStream * x,
int length ) [inline, virtual]
 

Definition at line 51 of file PreparedStatement.h.

void PreparedStatement::setBigDecimal ( int parameterIndex,
BigDecimal * x ) [inline, virtual]
 

Definition at line 46 of file PreparedStatement.h.

void PreparedStatement::setBinaryStream ( int parameterIndex,
InputStream * x,
int length ) [inline, virtual]
 

Definition at line 53 of file PreparedStatement.h.

void PreparedStatement::setByte ( int parameterIndex,
unsigned char x ) [inline, virtual]
 

Definition at line 40 of file PreparedStatement.h.

void PreparedStatement::setBytes ( int parameterIndex,
unsigned char * x,
int length ) [inline, virtual]
 

Definition at line 47 of file PreparedStatement.h.

void PreparedStatement::setDate ( int parameterIndex,
Date * x ) [inline, virtual]
 

Definition at line 48 of file PreparedStatement.h.

void PreparedStatement::setDouble ( int parameterIndex,
double x ) [inline, virtual]
 

Definition at line 45 of file PreparedStatement.h.

void PreparedStatement::setFloat ( int parameterIndex,
float x ) [inline, virtual]
 

Definition at line 44 of file PreparedStatement.h.

void PreparedStatement::setInt ( int parameterIndex,
int x ) [inline, virtual]
 

Definition at line 42 of file PreparedStatement.h.

void PreparedStatement::setLong ( int parameterIndex,
long x ) [inline, virtual]
 

Definition at line 43 of file PreparedStatement.h.

void PreparedStatement::setNull ( int parameterIndex,
int sqlType ) [inline, virtual]
 

Definition at line 38 of file PreparedStatement.h.

void PreparedStatement::setObject ( int parameterIndex,
Object * x ) [inline, virtual]
 

Definition at line 56 of file PreparedStatement.h.

void PreparedStatement::setObject ( int parameterIndex,
Object * x,
int targetSqlType ) [inline, virtual]
 

Definition at line 55 of file PreparedStatement.h.

void PreparedStatement::setObject ( int parameterIndex,
Object * x,
int targetSqlType,
int scale ) [inline, virtual]
 

Definition at line 54 of file PreparedStatement.h.

void PreparedStatement::setShort ( int parameterIndex,
short x ) [inline, virtual]
 

Definition at line 41 of file PreparedStatement.h.

void PreparedStatement::setString ( int p,
const nsAReadableString & value ) [inline, virtual]
 

Reimplemented in PreparedStatementDB2, PreparedStatementODBC, PreparedStatementOracle, and PreparedStatementSybase.

Definition at line 33 of file PreparedStatement.h.

Referenced by Transaction::doDelete(), Transaction::doInsert(), Transaction::doSelect(), Report::doSelect(), and Transaction::doUpdate().

void PreparedStatement::setTime ( int parameterIndex,
Time * x ) [inline, virtual]
 

Definition at line 49 of file PreparedStatement.h.

void PreparedStatement::setTimestamp ( int parameterIndex,
Timestamp * x ) [inline, virtual]
 

Definition at line 50 of file PreparedStatement.h.

void PreparedStatement::setUnicodeStream ( int parameterIndex,
InputStream * x,
int length ) [inline, virtual]
 

Definition at line 52 of file PreparedStatement.h.

void PreparedStatement::setbool ( int parameterIndex,
bool x ) [inline, virtual]
 

Definition at line 39 of file PreparedStatement.h.


Member Data Documentation

nsString PreparedStatement::m_sql [protected]
 

Definition at line 26 of file PreparedStatement.h.


The documentation for this class was generated from the following file:
Generated at Tue Sep 12 16:29:52 2000 by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000