⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ort.h

📁 SQLAPI C/C++ 连接Oracle 数据库!
💻 H
📖 第 1 页 / 共 5 页
字号:
  RETURNS:        OCI_SUCCESS if the function completes successfully.        OCI_INVALID_HANDLE if 'env' or 'err' is null.         OCI_ERROR if           1) any of the required parameters is null.           2) the adt type associated with schema/type name does not exist.  NOTE:       Schema and type names are CASE-SENSITIVE. If they have been created       via SQL, you need to use uppercase names.*/#if !defined(__STDC__) && !defined(__cplusplus) /* K&R C - not ANSI C */sword    OCITypeArrayByName(/*_ OCIEnv *env, OCIError *err, CONST OCISvcCtx *svc,                           ub4 array_len, CONST oratext *schema_name[],                           ub4 s_length[], CONST oratext *type_name[],                           ub4 t_length[], CONST oratext *version_name[],                           ub4 v_length[], OCIDuration pin_duration,                           OCITypeGetOpt get_option, OCIType *tdo[] _*/);#else /* ANSI C */sword OCITypeArrayByName(    OCIEnv *env, OCIError *err, CONST OCISvcCtx *svc,                             ub4 array_len,                             CONST oratext *schema_name[], ub4 s_length[],                             CONST oratext *type_name[], ub4 t_length[],                             CONST oratext *version_name[], ub4 v_length[],                             OCIDuration pin_duration,                             OCITypeGetOpt get_option, OCIType *tdo[]    );#endif/*  NAME: OCITypeArrayByName - OCI Get array of TYPes by name.  PARAMETERS:       env (IN/OUT) - OCI environment handle initialized in object mode       err (IN/OUT) - error handle. If there is an error, it is                recorded in 'err' and this function returns OCI_ERROR.                The error recorded in 'err' can be retrieved by calling                OCIErrorGet().       svc (IN) - OCI service handle       array_len (IN) - number of schema_name/type_name/version_name entries to                  be retrieved.       schema_name (IN, optional) - array of schema names associated with the                  types to be retrieved.  The array must have array_len                  elements if specified.                  If 0 is supplied, the default schema is assumed, otherwise                  it MUST have array_len number of elements.                  0 can be supplied for one or more of the entries to indicate                  that the default schema is desired for those entries.       s_length (IN) - array of schema_name lengths with each entry                  corresponding to the length of the corresponding schema_name                  entry in the schema_name array in bytes.                  The array must either have array_len number of elements or                  it MUST be 0 if schema_name is not specified.       type_name (IN) - array of the names of the types to retrieve. This                  MUST have array_len number of elements.       t_length (IN) - array of the lengths of type names in the type_name                  array in bytes.       version_name (IN) - array of the version names of the types to retrieve                  corresponding. This can be 0 to indicate retrieval of the                  most current versions, or it MUST have array_len number of                  elements.                  If 0 is supplied, the most current version is assumed,                  otherwise it MUST have array_len number of elements.                  0 can be supplied for one or more of the entries to indicate                  that the current version is desired for those entries.       v_length (IN) - array of the lengths of version names in the                  version_name array in bytes.       pin_duration (IN) - pin duration (e.g. until the end of current                  transaction) for the types retreieve.  See 'oro.h' for a                  description of each option.       get_option (IN) - options for loading the types. It can be one of two                   values:                  OCI_TYPEGET_HEADER for only the header to be loaded, or                  OCI_TYPEGET_ALL for the TDO and all ADO and MDOs to be                    loaded.       tdo (OUT) - output array for the pointers to each pinned type in the                  object cache. It must have space for array_len pointers.                  Use OCIObjectGetObjectRef() to obtain the CREF to each                  pinned type descriptor.  DESCRIPTION:       Get pointers to the existing types associated with the schema/type name       array. This is similar to OCITypeByName() except that all the TDO's are       retreived via a single network roundtrip.  RETURNS:        OCI_SUCCESS if the function completes successfully.        OCI_INVALID_HANDLE if 'env' or 'err' is null.         OCI_ERROR if           1) any of the required parameters is null.           2) one or more adt types associated with a schema/type name entry              does not exist.*/#if !defined(__STDC__) && !defined(__cplusplus) /* K&R C - not ANSI C */sword   OCITypeByRef(/*_ OCIEnv *env, OCIError *err,                         CONST OCIRef *type_ref, OCIDuration pin_duration,                         OCITypeGetOpt get_option, OCIType **tdo _*/);#else /* ANSI C */sword   OCITypeByRef(    OCIEnv *env, OCIError *err,                         CONST OCIRef *type_ref, OCIDuration pin_duration,                         OCITypeGetOpt get_option, OCIType **tdo    );#endif/*  NAME: OCITypeArrayByRef - OCI Get array of TYPes by REF.  PARAMETERS:       env (IN/OUT) - OCI environment handle initialized in object mode       err (IN/OUT) - error handle. If there is an error, it is                recorded in 'err' and this function returns OCI_ERROR.                The error recorded in 'err' can be retrieved by calling                OCIErrorGet().       type_ref (IN) - OCIRef * pointing to the particular version of                  the type descriptor object to obtain.                  The array must have array_len elements if specified.       pin_duration (IN) - pin duration (e.g. until the end of current                  transaction) for the type to retreieve.  See 'oro.h' for a                  description of each option.       get_option (IN) - options for loading the type. It can be one of two                   values:                  OCI_TYPEGET_HEADER for only the header to be loaded, or                  OCI_TYPEGET_ALL for the TDO and all ADO and MDOs to be                    loaded.       tdo (OUT) - pointer to the pinned type in the object cache  DESCRIPTION:       Get pointers to the        with the schema/type name array. This is similar to OCITypeByName()       except that all the TDO's are retreived via a single network roundtrip.  RETURNS:        OCI_SUCCESS if the function completes successfully.        OCI_INVALID_HANDLE if 'env' or 'err' is null.         OCI_ERROR if           1) any of the required parameters is null.           2) one or more adt types associated with a schema/type name entry              does not exist.*/#if !defined(__STDC__) && !defined(__cplusplus) /* K&R C - not ANSI C */sword   OCITypeArrayByRef(/*_ OCIEnv *env, OCIError *err,                              ub4 array_len, CONST OCIRef *type_ref[],                              OCIDuration pin_duration,                              OCITypeGetOpt get_option, OCIType *tdo[] _*/);#else /* ANSI C */sword   OCITypeArrayByRef(    OCIEnv *env, OCIError *err,                              ub4 array_len, CONST OCIRef *type_ref[],                              OCIDuration pin_duration,                              OCITypeGetOpt get_option, OCIType *tdo[]    );#endif/*  NAME: OCITypeArrayByRef - OCI Get array of TYPes by REF.  PARAMETERS:       env (IN/OUT) - OCI environment handle initialized in object mode       err (IN/OUT) - error handle. If there is an error, it is                recorded in 'err' and this function returns OCI_ERROR.                The error recorded in 'err' can be retrieved by calling                OCIErrorGet().       array_len (IN) - number of schema_name/type_name/version_name entries to                  be retrieved.       type_ref (IN) - array of OCIRef * pointing to the particular version of                  the type descriptor object to obtain.                  The array must have array_len elements if specified.       pin_duration (IN) - pin duration (e.g. until the end of current                  transaction) for the types retreieve.  See 'oro.h' for a                  description of each option.       get_option (IN) - options for loading the types. It can be one of two                   values:                  OCI_TYPEGET_HEADER for only the header to be loaded, or                  OCI_TYPEGET_ALL for the TDO and all ADO and MDOs to be                    loaded.       tdo (OUT) - output array for the pointers to each pinned type in the                  object cache. It must have space for array_len pointers.                  Use OCIObjectGetObjectRef() to obtain the CREF to each                  pinned type descriptor.  DESCRIPTION:       Get pointers to the        with the schema/type name array. This is similar to OCITypeByName()       except that all the TDO's are retreived via a single network roundtrip.  RETURNS:        OCI_SUCCESS if the function completes successfully.        OCI_INVALID_HANDLE if 'env' or 'err' is null.         OCI_ERROR if           1) any of the required parameters is null.           2) one or more adt types associated with a schema/type name entry              does not exist.*//*--------------------------------------------------------------------------*//*                              TYPE ACCESSORS                              *//*--------------------------------------------------------------------------*//*---------------------------- OCITypeName ---------------------------------*//* ** OBSOLETE ** */#if !defined(__STDC__) && !defined(__cplusplus) /* K&R C - not ANSI C */oratext* OCITypeName(/*_ OCIEnv *env, OCIError *err, CONST OCIType *tdo,                     ub4 *n_length _*/);#else /* ANSI C */oratext* OCITypeName(    OCIEnv *env, OCIError *err, CONST OCIType *tdo,                       ub4 *n_length    );#endif/*   NAME: OCITypeName -  ORT Get a Type's naME.   PARAMETERS:        env (IN/OUT) - OCI environment handle initialized in object mode        err (IN/OUT) - error handle. If there is an error, it is                recorded in 'err' and this function returns OCI_ERROR.                The error recorded in 'err' can be retrieved by calling                OCIErrorGet().        tdo (IN) - pointer to to the type descriptor in the object cache        n_length (OUT) - length (in bytes) of the returned type name.  The               caller must allocate space for the ub4 before calling this               routine.   REQUIRES:        1) All type accessors require that the type be pinned before calling           any accessor.        2) All input parameters must not be NULL and must be valid.        3) 'n_length' must point to an allocated ub4.   DESCRIPTION:        Get the name of the type.   RETURNS:        the name of the type   NOTES:        The type descriptor, 'tdo', must be unpinned when the accessed         information is no longer needed. *//*------------------------ OCITypeSchema ---------------------------------*//* ** OBSOLETE ** */#if !defined(__STDC__) && !defined(__cplusplus) /* K&R C - not ANSI C */oratext* OCITypeSchema(/*_ OCIEnv *env, OCIError *err, CONST OCIType *tdo,                    ub4 *n_length _*/);#else /* ANSI C */oratext* OCITypeSchema(    OCIEnv *env, OCIError *err, CONST OCIType *tdo,                    ub4 *n_length    );#endif/*   NAME: OCITypeSchema -  ORT Get a Type's SCHema name.   PARAMETERS:        env (IN/OUT) - OCI environment handle initialized in object mode        err (IN/OUT) - error handle. If there is an error, it is                recorded in 'err' and this function returns OCI_ERROR.                The error recorded in 'err' can be retrieved by calling                OCIErrorGet().        tdo (IN) - pointer to to the type descriptor in the object cache        n_length (OUT) - length (in bytes) of the returned schema name.  The               caller must allocate space for the ub4 before calling this               routine.   REQUIRES:        1) All type accessors require that the type be pinned before calling           any accessor.         2) All input parameters must not be NULL and must be valid.        3) 'n_length' must point to an allocated ub4.   DESCRIPTION:        Get the schema name of the type.   RETURNS:        the schema name of the type   NOTES:        The type descriptor, 'tdo', must be unpinned when the accessed         information is no longer needed. *//*------------------------ OCITypeTypeCode ---------------------------------*//* ** OBSOLETE ** */#if !defined(__STDC__) && !defined(__cplusplus) /* K&R C - not ANSI C */OCITypeCode OCITypeTypeCode(/*_ OCIEnv *env, OCIError *err,                              CONST OCIType *tdo _*/);#else /* ANSI C */OCITypeCode OCITypeTypeCode(    OCIEnv *env, OCIError *err,                                CONST OCIType *tdo    );#endif/*   NAME: OCITypeTypeCode - OCI Get a Type's Type Code.   PARAMETERS:         env (IN/OUT) - OCI environment handle initialized in object mode        err (IN/OUT) - error handle. If there is an error, it is                recorded in 'err' and this function returns OCI_ERROR.                The error recorded in 'err' can be retrieved by calling                OCIErrorGet().        tdo (IN) - pointer to to the type descriptor in the object cache   REQUIRES:        1) All type accessors require that the type be pinned before calling            any accessor.         2) All input parameters must not be NULL and must be valid.   DESCRIPTION:        Get the type code of the type.   RETURNS:        The type code of the type.   NOTES:        The type descriptor, 'tdo', must be unpinned when the accessed         information is no longer needed. *//*----------------------- OCITypeCollTypeCode -------------------------------*//* ** OBSOLETE ** */#if !defined(__STDC__) && !defined(__cplusplus) /* K&R C - not ANSI C */OCITypeCode OCITypeCollTypeCode(/*_ OCIEnv *env, OCIError *err,                                  CONST OCIType *tdo _*/);#else /* ANSI C */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -