Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsCT Class Reference

#include <dsCT.h>

List of all members.

Public Methods

 dsCT (CS_CHAR *servername, CS_CHAR *username=0, CS_CHAR *password=0)
virtual ~dsCT ()
virtual void Connect (CS_CHAR *servername, CS_CHAR *username, CS_CHAR *password)
virtual void Cleanup ()
virtual void Execute (CS_COMMAND *cmd)
virtual CS_COMMAND * PrepareCall (CS_CHAR *query, CS_INT flags)
virtual CS_COMMAND * PrepareCall (CS_CHAR *query)
virtual void ReleaseCall (CS_COMMAND *cmd)
int Fetch (CS_COMMAND *cmd, CS_INT nrows=1)
virtual void BindParam (CS_COMMAND *cmd, CS_INT item, CS_INT ValueType, CS_VOID *value, CS_INT ValueSize)
virtual void BindParam (CS_COMMAND *cmd, CS_INT item, int *value)
virtual void BindParam (CS_COMMAND *cmd, CS_INT item, char *value, int size)
virtual void SetParam (CS_COMMAND *cmd, CS_CHAR *itemname, CS_INT ValueType, CS_VOID *itemvalue, CS_INT ValueSize)
virtual void SetParam (CS_COMMAND *cmd, CS_CHAR *ParamName, int value)
virtual void SetParam (CS_COMMAND *cmd, CS_CHAR *ParamName, char *value, int size)

Protected Methods

CS_RETCODE check_error (int line, CS_RETCODE status, char *desc)


Detailed Description

Library to support Sybase Call Interface (CT-Lib)


Constructor & Destructor Documentation

dsCT::dsCT CS_CHAR *    servername,
CS_CHAR *    username = 0,
CS_CHAR *    password = 0
 

Build object and connect it to database

Parameters:
servername name of entry in ${SYBASE}/interfaces file
username name of trusted user
password password

dsCT::~dsCT   [virtual]
 


Member Function Documentation

virtual void dsCT::BindParam CS_COMMAND *    cmd,
CS_INT    item,
char *    value,
int    size
[inline, virtual]
 

virtual void dsCT::BindParam CS_COMMAND *    cmd,
CS_INT    item,
int *    value
[inline, virtual]
 

void dsCT::BindParam CS_COMMAND *    cmd,
CS_INT    item,
CS_INT    ValueType,
CS_VOID *    value,
CS_INT    ValueSize
[virtual]
 

CS_RETCODE dsCT::check_error int    line,
CS_RETCODE    status,
char *    desc
[protected]
 

void dsCT::Cleanup   [virtual]
 

Release all allocated contexts, free memory

void dsCT::Connect CS_CHAR *    servername,
CS_CHAR *    username,
CS_CHAR *    password
[virtual]
 

Connect client to database

Parameters:
servername name of entry in ${SYBASE}/interfaces file
username name of trusted user
password password

void dsCT::Execute CS_COMMAND *    cmd [virtual]
 

Send prepared command to server see PrepareCall

Parameters:
cmd command handler returned by PrepareCall

int dsCT::Fetch CS_COMMAND *    cmd,
CS_INT    nrows = 1
 

Fetch resultset row

Parameters:
cmd command handler returned by PrepareCall
nrows number of rows to fetch

virtual CS_COMMAND* dsCT::PrepareCall CS_CHAR *    query [inline, virtual]
 

CS_COMMAND * dsCT::PrepareCall CS_CHAR *    query,
CS_INT    flags
[virtual]
 

Parse SQL statement and return handler of prepared command

Parameters:
query SQL query
flags options flags

void dsCT::ReleaseCall CS_COMMAND *    cmd [virtual]
 

Free allocated command handler

Parameters:
cmd command handler returned by PrepareCall

virtual void dsCT::SetParam CS_COMMAND *    cmd,
CS_CHAR *    ParamName,
char *    value,
int    size
[inline, virtual]
 

virtual void dsCT::SetParam CS_COMMAND *    cmd,
CS_CHAR *    ParamName,
int    value
[inline, virtual]
 

void dsCT::SetParam CS_COMMAND *    cmd,
CS_CHAR *    itemname,
CS_INT    ValueType,
CS_VOID *    itemvalue,
CS_INT    ValueSize
[virtual]
 


The documentation for this class was generated from the following files:
Generated on Mon May 16 18:26:59 2005 for libdms4 by doxygen1.3-rc2