Package com.ibm.cics.server
Class KSDS
- All Implemented Interfaces:
Serializable
This class is the implementation class for the KSDS kind of file.
- See Also:
- Since CICS TS version:
- 1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete a record from a KSDS file.voiddelete(byte[] key) intdeleteGeneric(byte[] key) voidunlock()Unlock a file.voidwrite(byte[] key, byte[] data) Write a new record to a file.Methods inherited from class com.ibm.cics.server.KeyedFile
read, read, readForUpdate, readForUpdate, readGeneric, readGeneric, readGenericForUpdate, readGenericForUpdate, rewrite, startBrowse, startBrowse, startBrowse, startGenericBrowse, startGenericBrowseMethods inherited from class com.ibm.cics.server.RemotableResource
getSysId, setSysIdMethods inherited from class com.ibm.cics.server.Resource
getDescription, getName, setDescription, setNameMethods inherited from class com.ibm.cics.server.API
getCICSServerApiVersion
-
Constructor Details
-
KSDS
public KSDS()Construct a default KSDS bean.- Since CICS TS version:
- 1.3
-
KSDS
Construct a KSDS resource with a specific name- Parameters:
name- The name of the resource to create- Since CICS TS version:
- 6.1
-
-
Method Details
-
delete
public void delete() throws FileDisabledException, FileNotFoundException, LogicException, InvalidRequestException, IOErrorException, ISCInvalidRequestException, NotAuthorisedException, NotOpenException, InvalidSystemIdException, ChangedException, LockedException, LoadingExceptionDelete a record from a KSDS file.- Throws:
FileDisabledException- DISABLEDFileNotFoundException- FILENOTFOUNDLogicException- ILLOGICInvalidRequestException- INVREQIOErrorException- IOERRISCInvalidRequestException- ISCINVREQNotAuthorisedException- NOTAUTHNotOpenException- NOTOPENInvalidSystemIdException- SYSIDERRLoadingException- LOADINGLockedException- LOCKEDChangedException- CHANGED- Since CICS TS version:
- 1.3
-
delete
public void delete(byte[] key) throws FileDisabledException, DuplicateKeyException, FileNotFoundException, LogicException, InvalidRequestException, IOErrorException, ISCInvalidRequestException, NotAuthorisedException, RecordNotFoundException, NotOpenException, InvalidSystemIdException, ChangedException, LockedException, LoadingException - Parameters:
key- the key to delete- Throws:
FileDisabledException- DISABLEDDuplicateKeyException- DUPKEYFileNotFoundException- FILENOTFOUNDLogicException- ILLOGICInvalidRequestException- INVREQIOErrorException- IOERRISCInvalidRequestException- ISCINVREQNotAuthorisedException- NOTAUTHRecordNotFoundException- NOTFNDNotOpenException- NOTOPENInvalidSystemIdException- SYSIDERRLoadingException- LOADINGLockedException- LOCKEDChangedException- CHANGED- Since CICS TS version:
- 1.3
-
deleteGeneric
public int deleteGeneric(byte[] key) throws FileDisabledException, FileNotFoundException, LogicException, InvalidRequestException, IOErrorException, ISCInvalidRequestException, NotAuthorisedException, RecordNotFoundException, NotOpenException, InvalidSystemIdException, ChangedException, LockedException, LoadingException - Parameters:
key- the key to delete- Returns:
- the number of deleted records
- Throws:
FileDisabledException- DISABLEDFileNotFoundException- FILENOTFOUNDLogicException- ILLOGICInvalidRequestException- INVREQIOErrorException- IOERRISCInvalidRequestException- ISCINVREQNotAuthorisedException- NOTAUTHRecordNotFoundException- NOTFNDNotOpenException- NOTOPENInvalidSystemIdException- SYSIDERRLoadingException- LOADINGLockedException- LOCKEDChangedException- CHANGED- Since CICS TS version:
- 1.3
-
write
public void write(byte[] key, byte[] data) throws FileDisabledException, DuplicateRecordException, FileNotFoundException, LogicException, InvalidRequestException, IOErrorException, ISCInvalidRequestException, LengthErrorException, NoSpaceException, NotAuthorisedException, NotOpenException, InvalidSystemIdException, ChangedException, LockedException, LoadingException Write a new record to a file.- Parameters:
key- the record keydata- the data to write- Throws:
FileDisabledException- DISABLEDDuplicateRecordException- DUPRECFileNotFoundException- FILENOTFOUNDLogicException- ILLOGICInvalidRequestException- INVREQIOErrorException- IOERRISCInvalidRequestException- ISCINVREQLengthErrorException- LENGERRNoSpaceException- NOSPACENotAuthorisedException- NOTAUTHNotOpenException- NOTOPENInvalidSystemIdException- SYSIDERRLoadingException- LOADINGLockedException- LOCKEDChangedException- CHANGED- Since CICS TS version:
- 1.3
-
unlock
public void unlock() throws FileDisabledException, FileNotFoundException, LogicException, IOErrorException, ISCInvalidRequestException, NotAuthorisedException, NotOpenException, InvalidSystemIdExceptionUnlock a file.- Throws:
FileDisabledException- DISABLEDFileNotFoundException- FILENOTFOUNDLogicException- ILLOGICIOErrorException- IOERRISCInvalidRequestException- ISCINVREQNotAuthorisedException- NOTAUTHNotOpenException- NOTOPENInvalidSystemIdException- SYSIDERR- Since CICS TS version:
- 1.3
-