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

Appendix M Java APIs Used in V6.0L20 and Earlier> M.2 ShunBatch Class

M.2.3 executeDelete

mark1Function

This method sends search conditions for finding records to be deleted to Shunsaku, and deletes records that match the conditions.

mark1Syntax

public void executeDelete(
    String   query,             /* (1) Search expression              */
    int      replyNo,           /* (2) Deletion start number          */
    int      requestCnt,        /* (3) Number of delete requests      */
    String   reserve1,          /* (4) Reserved (null)                */
    String   recordIDfileName   /* (5) Pathname of work file          */
) throws ShunException;

mark1Return Value

None.

mark1Parameters

mark2(1) Search expression

Specify the search expression using Unicode.

Ensure that the size of the search expression is between 1 and 65,535 bytes inclusive.

Refer to B.3 Search Expressions for details on search expressions.

mark2(2) Deletion start number

Specifies the deletion start number.

Specify the item of found data from which to commence deletion. Specify a number greater than zero.

mark2(3) Number of delete requests

Specifies the number of delete requests.

Specify either the maximum number of items to be deleted (a number greater than zero), or "-1".

Note that if the maximum number of items to be deleted is greater than the maximum number of responses to a client request (specified in AnsMax in the director environment file), or if "-1" is specified as the maximum number of items to be deleted, all records that match the search conditions will be deleted.

mark2(4) Reserved

Specify null.

mark2(5) Pathname of work file

Specifies the full pathname of the work file that is used by the internal processing of the API used to delete data.

At least 24 bytes of work area space is required for each record.

The user must create in advance the directory that will contain the work file.

mark1Exceptions

mark2ShunException

ShunException is output when an error occurs while XML documentis being deleted.

Refer to M.4 Error Codes Output for details on error codes.

mark1Note


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006