| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/Oracle/OCI/include/ociapr.h
Go to the documentation of this file.

    00001 /*
    00002  * $Header$
    00003  */
    00004
    00005 /* Copyright (c) 1991, 1996, 1998, 2000 by Oracle Corporation */
    00006 /*
    00007    NAME
    00008      ociapr.h
    00009    MODIFIED   (MM/DD/YY)
    00010     dsaha      05/19/00 -  Fix lint
    00011     sgollapu   05/19/98 -  Change text to OraText
    00012     dchatter   11/10/95 -  add ognfd() - get native fd
    00013     lchidamb   04/06/95 -  drop maxdsz from obindps/odefinps
    00014     slari      04/07/95 -  add opinit
    00015     dchatter   03/08/95 -  osetpi and ogetpi
    00016     lchidamb   12/09/94 -  add obindps() and odefinps()
    00017     dchatter   03/06/95 -  merge changes from branch 1.1.720.2
    00018     dchatter   11/14/94 -  merge changes from branch 1.1.720.1
    00019     dchatter   02/08/95 -  olog call; drop onblon
    00020     dchatter   10/31/94 -  new functions for non-blocking oci
    00021     rkooi2     11/27/92 -  Changing datatypes to agree with ocidef.h
    00022     rkooi2     10/26/92 -  More portability mods
    00023     rkooi2     10/18/92 -  Changed to agree with oci.c
    00024     sjain      03/16/92 -  Creation
    00025 */
    00026 /*
    00027  *  Declare the OCI functions.
    00028  *  Prototype information is included.
    00029  *  Use this header for ANSI C compilers.
    00030  */
    00031
    00032 #ifndef OCIAPR
    00033 #define OCIAPR
    00034
    00035 #ifndef ORATYPES
    00036 #include <oratypes.h>
    00037 #endif
    00038
    00039 #ifndef OCIDFN
    00040 #include <ocidfn.h>
    00041 #endif
    00042
    00043 /*
    00044  * Oci BIND (Piecewise or with Skips)
    00045  */
    00046 sword  obindps(struct cda_def *cursor, ub1 opcode, OraText *sqlvar,
    00047                   sb4 sqlvl, ub1 *pvctx, sb4 progvl,
    00048                   sword ftype, sword scale,
    00049                   sb2 *indp, ub2 *alen, ub2 *arcode,
    00050                   sb4 pv_skip, sb4 ind_skip, sb4 alen_skip, sb4 rc_skip,
    00051                   ub4 maxsiz, ub4 *cursiz,
    00052                   OraText *fmt, sb4 fmtl, sword fmtt);
    00053 sword  obreak(struct cda_def *lda);
    00054 sword  ocan  (struct cda_def *cursor);
    00055 sword  oclose(struct cda_def *cursor);
    00056 sword  ocof  (struct cda_def *lda);
    00057 sword  ocom  (struct cda_def *lda);
    00058 sword  ocon  (struct cda_def *lda);
    00059
    00060
    00061 /*
    00062  * Oci DEFINe (Piecewise or with Skips)
    00063  */
    00064 sword  odefinps(struct cda_def *cursor, ub1 opcode, sword pos,ub1 *bufctx,
    00065                       sb4 bufl, sword ftype, sword scale,
    00066                       sb2 *indp, OraText *fmt, sb4 fmtl, sword fmtt,
    00067                       ub2 *rlen, ub2 *rcode,
    00068                       sb4 pv_skip, sb4 ind_skip, sb4 alen_skip, sb4 rc_skip);
    00069 sword  odessp(struct cda_def *cursor, OraText *objnam, size_t onlen,
    00070               ub1 *rsv1, size_t rsv1ln, ub1 *rsv2, size_t rsv2ln,
    00071               ub2 *ovrld, ub2 *pos, ub2 *level, OraText **argnam,
    00072               ub2 *arnlen, ub2 *dtype, ub1 *defsup, ub1* mode,
    00073               ub4 *dtsiz, sb2 *prec, sb2 *scale, ub1 *radix,
    00074               ub4 *spare, ub4 *arrsiz);
    00075 sword  odescr(struct cda_def *cursor, sword pos, sb4 *dbsize,
    00076                  sb2 *dbtype, sb1 *cbuf, sb4 *cbufl, sb4 *dsize,
    00077                  sb2 *prec, sb2 *scale, sb2 *nullok);
    00078 sword  oerhms   (struct cda_def *lda, sb2 rcode, OraText *buf,
    00079                  sword bufsiz);
    00080 sword  oermsg   (sb2 rcode, OraText *buf);
    00081 sword  oexec    (struct cda_def *cursor);
    00082 sword  oexfet   (struct cda_def *cursor, ub4 nrows,
    00083                  sword cancel, sword exact);
    00084 sword  oexn     (struct cda_def *cursor, sword iters, sword rowoff);
    00085 sword  ofen     (struct cda_def *cursor, sword nrows);
    00086 sword  ofetch   (struct cda_def *cursor);
    00087 sword  oflng    (struct cda_def *cursor, sword pos, ub1 *buf,
    00088                  sb4 bufl, sword dtype, ub4 *retl, sb4 offset);
    00089 sword  ogetpi   (struct cda_def *cursor, ub1 *piecep, dvoid **ctxpp,
    00090                  ub4 *iterp, ub4 *indexp);
    00091 sword  oopt     (struct cda_def *cursor, sword rbopt, sword waitopt);
    00092 sword  opinit   (ub4 mode);
    00093 sword  olog     (struct cda_def *lda, ub1* hda,
    00094                  OraText *uid, sword uidl,
    00095                  OraText *pswd, sword pswdl,
    00096                  OraText *conn, sword connl,
    00097                  ub4 mode);
    00098 sword  ologof   (struct cda_def *lda);
    00099 sword  oopen    (struct cda_def *cursor, struct cda_def *lda,
    00100                  OraText *dbn, sword dbnl, sword arsize,
    00101                  OraText *uid, sword uidl);
    00102 sword  oparse   (struct cda_def *cursor, OraText *sqlstm, sb4 sqllen,
    00103                  sword defflg, ub4 lngflg);
    00104 sword  orol     (struct cda_def *lda);
    00105 sword  osetpi   (struct cda_def *cursor, ub1 piece, dvoid *bufp, ub4 *lenp);
    00106
    00107 void sqlld2     (struct cda_def *lda, OraText *cname, sb4 *cnlen);
    00108 void sqllda     (struct cda_def *lda);
    00109
    00110 /* non-blocking functions */
    00111 sword onbset    (struct cda_def *lda );
    00112 sword onbtst    (struct cda_def *lda );
    00113 sword onbclr    (struct cda_def *lda );
    00114 sword ognfd     (struct cda_def *lda, dvoid *fdp);
    00115
    00116
    00117 /*
    00118  * OBSOLETE CALLS
    00119  */
    00120
    00121 /*
    00122  * OBSOLETE BIND CALLS
    00123  */
    00124 sword  obndra(struct cda_def *cursor, OraText *sqlvar, sword sqlvl,
    00125                  ub1 *progv, sword progvl, sword ftype, sword scale,
    00126                  sb2 *indp, ub2 *alen, ub2 *arcode, ub4 maxsiz,
    00127                  ub4 *cursiz, OraText *fmt, sword fmtl, sword fmtt);
    00128 sword  obndrn(struct cda_def *cursor, sword sqlvn, ub1 *progv,
    00129                  sword progvl, sword ftype, sword scale, sb2 *indp,
    00130                  OraText *fmt, sword fmtl, sword fmtt);
    00131 sword  obndrv(struct cda_def *cursor, OraText *sqlvar, sword sqlvl,
    00132                  ub1 *progv, sword progvl, sword ftype, sword scale,
    00133                  sb2 *indp, OraText *fmt, sword fmtl, sword fmtt);
    00134
    00135 /*
    00136  * OBSOLETE DEFINE CALLS
    00137  */
    00138 sword  odefin(struct cda_def *cursor, sword pos, ub1 *buf,
    00139                  sword bufl, sword ftype, sword scale, sb2 *indp,
    00140                  OraText *fmt, sword fmtl, sword fmtt, ub2 *rlen, ub2 *rcode);
    00141
    00142 /* older calls ; preferred equivalent calls above */
    00143
    00144 sword  oname    (struct cda_def *cursor, sword pos, sb1 *tbuf,
    00145                  sb2 *tbufl, sb1 *buf, sb2 *bufl);
    00146 sword  orlon    (struct cda_def *lda, ub1 *hda,
    00147                  OraText *uid, sword uidl,
    00148                  OraText *pswd, sword pswdl,
    00149                  sword audit);
    00150 sword  olon     (struct cda_def *lda, OraText *uid, sword uidl,
    00151                  OraText *pswd, sword pswdl, sword audit);
    00152 sword  osql3    (struct cda_def *cda, OraText *sqlstm, sword sqllen);
    00153 sword  odsc     (struct cda_def *cursor, sword pos, sb2 *dbsize,
    00154                  sb2 *fsize, sb2 *rcode, sb2 *dtype, sb1 *buf,
    00155                  sb2 *bufl, sb2 *dsize);
    00156
    00157 #endif /* OCIAPR */

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines