Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Part 2 Developing Applications by APIs> Chapter 11 Developing C Applications> 11.1 C API Overview

11.1.1 Using Handle

This section explains how to use handle.

mark1Process Flow

The explanation below describes the pattern of sequence process starting from establishing a connection until a connection is closed.

[Figure 11-3 Process flow from establishing a connection until a connection is closed]

mark2(1) Allocate Connection Handle

Use the ShunAllocHandle function to allocate connection handle. The connection handle will be active after using this ShunAllocHandle function.

mark2(2) Establish a Connection

After allocating the connection handle, establish a connection with Shunsaku using the ShunConnect function.

mark2(3) Allocate the Data Manipulation Handle

After establishing a connection, allocate the data manipulation handle using the ShunAllocHandle function.

The data manipulation handle will be active after using this ShunAllocHandle function and the user will be able to search and update the data to Shunsaku.

mark2(4) Release the Data Manipulation Handle

Use the ShunFreeHandle function to release the data manipulation handle. The resources (record ID, data, position information, direct access key) holding by the handle will also be released after releasing the data manipulation handle.

mark2(5) Close the Connection

Use the ShunDisconnect function to close the connection.

mark2(6) Release Connection Handle

Use the ShunFreeHandle function to release connection handle. If a connection of the specified handle is established, the connection will be closed.

mark1Notes on Using Handle


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006