public interface GSAMPCB
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection to a GSAM dataset.
|
AIB |
getAIB()
Retrieves the application interface block (
AIB ) object for
the GSAM PCB. |
Path |
getNext()
Retrieves a record in a GSAM database using sequential access.
|
void |
getNext(java.nio.ByteBuffer output)
Retrieves a record in a GSAM database using sequential access.
|
Path |
getPathForInsert()
Retrieves a
Path that contains the GSAM record used for an
insert operation. |
Path |
getUnique(RSA recordSearchArg)
Retrieves a record in a GSAM database using random access.
|
void |
getUnique(RSA recordSearchArg,
java.nio.ByteBuffer outputBuffer)
Retrieves a record in a GSAM database using random access.
|
RSA |
insert(java.nio.ByteBuffer gsamRecordBuffer)
Inserts a new record into a GSAM database.
|
RSA |
insert(Path gsamRecord)
Inserts a new record into a GSAM database.
|
void |
open()
Opens a connection to a GSAM dataset.
|
void open()
void close()
DLIException
- if an error occurs while closing the GSAM dataset.Path getUnique(RSA recordSearchArg) throws DLIException
recordSearchArg
- the record search argument (RSA
) object that
contains the address of a unique GSAM database record.Path
object that contains the GSAM database record
data or null
if no records are foundDLIException
- if a GSAM database error occurs.void getUnique(RSA recordSearchArg, java.nio.ByteBuffer outputBuffer) throws DLIException
recordSearchArg
- the record search argument (RSA
) object
that contains the address of a unique GSAM database
record.outputBuffer
- The output buffer (ByteBuffer
) object
that will contain the GSAM database record.DLIException
- if a GSAM database error occurs.Path getNext() throws DLIException
getNext
, the cursor moves to the next record in the
database.Path
object that contains the GSAM database
record data or null
if no records are foundDLIException
- if a GSAM database error occurs.void getNext(java.nio.ByteBuffer output) throws DLIException
getNext
, the cursor moves to the next record in the database.recordSearchArg
- the record search argument (RSA
) object
that contains the address of a unique GSAM database
record.outputBuffer
- The output buffer (ByteBuffer
) object
that will contain the GSAM database record.DLIException
- if a GSAM database error occurs.RSA insert(Path gsamRecord) throws DLIException
gsamRecord
- the Path
object that contains the GSAM database
record data to be inserted.DLIException
- if a GSAM database error occurs.RSA insert(java.nio.ByteBuffer gsamRecordBuffer) throws DLIException
gsamRecordBuffer
- The input buffer (ByteBuffer
) object
contains the GSAM database record data to be
inserted. The ByteBuffer
limit will
determine the maximum number of bytes to be inserted.DLIException
- if a GSAM database error occurs.AIB getAIB()
AIB
) object for
the GSAM PCB.Path getPathForInsert()
Path
that contains the GSAM record used for an
insert operation. Use this method together with the
insert(Path)
method to insert new records in the GSAM
database.
Path
object that contains the GSAM database record
specified as inputinsert(Path)