Here is an example of creating an ISAM table with one single segment key. This table has
four columns, all type character. The first is the last name (length 20), the second is
the first name (length 20), the third is the telephone number (length 15), and the fourth is
the ZIP code (length 10).
The creates in the two preceding examples create keys which allow duplicates. Keys can also be created
which do not allow duplicates. Refer to the manual page for BeginKey for more information.
The following code fragment adds a row to the table created in earlier in this section.
In addition, two functions uses a partial key.
A partial key consists on one or more columns of a multi-segment key.
The following example finds the first row in an ISAM table, using the first key.
DatabaseHandle::BeginCreate
- NAME
- DatabaseHandle::BeginCreate
SYNOPSIS
NI DatabaseHandle::BeginCreate(
pAbstractTable* isamTable,
pNC name,
NI temporary = CQL_NO,
NI tableType = CQL_CQL
)
- DESCRIPTION
- BeginCreate is the first step in the ISAM table creation sequence.
name is table name. Two files are created for the table, name.data and
name.index. If temporary is CQL_YES, the table exists only in memory and
nothing is written to disk. The tableType argument is included for interfacing the
SQL level to other ISAM level file systems; it is always CQL_CQL.
- SEE ALSO
-
- IsamFile::AddColumn
- IsamFile::BeginKey
- IsamFile::AddSegment
- IsamFile::EndKey
- IsamFile::EndCreate
- NAME
- IsamFile::BeginIsamOperation
SYNOPSIS
NI IsamFile::BeginIsamOperation( US keyNumber )
- DESCRIPTION
- BeginIsamOperation is used to start an ISAM search operation. It is followed by one
or more SetColumn calls. Finally, one of the Find calls completes the
search operation.
- SEE ALSO
-
- IsamFile::SetColumn
- IsamFile::FindEqual
- IsamFile::FindFirstPartialKeyMatch
- IsamFile::FindGreater
- IsamFile::FindGreaterOrEqual
- IsamFile::FindLess
- IsamFile::FindLessOrEqual
- IsamFile::FindNextPartialKeyMatch
- IsamFile::FirstRow
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- IsamFile::DeleteRow
- NAME
- IsamFile::BeginKey
SYNOPSIS
NI IsamFile::BeginKey( NI denyDuplicates = CQL_NO )
- DESCRIPTION
- BeginKey is used to start specification of a key as part of the ISAM table creation
sequence. If denyDuplicates is CQL_YES, duplicate values are not permitted for the
key.
- SEE ALSO
-
- IsamFile::AddSegment
- IsamFile::BeginCreate
- IsamFile::AddColumne
- IsamFile::EndKey
- IsamFile::EndCreate
- NAME
- IsamFile::BeginRowOperation
SYNOPSIS
NI IsamFile::BeginRowOperation( VOID )
- DESCRIPTION
- BeginRowOperation initializes all column values to null. It is the first step in
the sequence which adds a row to an ISAM table. After one or more calls to
SetColumn, the sequence ends with AddRow.
- SEE ALSO
-
- IsamFile::SetColumn
- IsamFile::AddRow
- NAME
- IsamFile::CheckPropagationFlags
SYNOPSIS
NI CheckPropagationFlags( VOID )
- DESCRIPTION
- CheckPropagationFlags is called to check an ISAM file's propagation flags after a
nested transaction commit. CQL++ never writes committed information unless an outermost
commit occurs. The propagation flags are necessary when a commit is the outermost commit for
the ISAM table, but is not the outermost commit for the transaction. In this case, the ISAM
table and ISAM index must be added to the lists of active tables and active indices for the
current transaction. This operation is performed, if necessary, by
CheckPropagationFlags.
- NAME
- IsamFile::Close
SYNOPSIS
NI IsamFile::Close( VOID )
- DESCRIPTION
- Close closes an ISAM table and releases associated resources. If there are pending
transaction for the table, and error is returned and the table is not closed.
- SEE ALSO
-
- NAME
- IsamFile::Columns
SYNOPSIS
NI IsamFile::Columns( pColumnDescriptorList *cols )
- DESCRIPTION
- Columns retrieves a pointer to the list of columns for an open ISAM table.
- NAME
- IsamFile::CurrentKey
SYNOPSIS
pIsamKeyDescriptor CurrentKey( VOID )
- DESCRIPTION
- CurrentKey returns a pointer to the IsamKeyDescriptor class for the
current key.
- NAME
- IsamFile::CurrentPosition
SYNOPSIS
NI CurrentPosition( pRECID position )
- DESCRIPTION
- CurrentPosition returns the ISAM table's current position. Prior to calling
CurrentPosition, a valid position must be established using a search sequence.
- SEE ALSO
-
- IsamFile::EstablishPosition
- IsamFile::SetColumn
- IsamFile::FindEqual
- IsamFile::FindFirstPartialKeyMatch
- IsamFile::FindGreater
- IsamFile::FindGreaterOrEqual
- IsamFile::FindLess
- IsamFile::FindLessOrEqual
- IsamFile::FindNextPartialKeyMatch
- IsamFile::FirstRow
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- NAME
- IsamFile::CurrentPosition
SYNOPSIS
pRecord CurrentRecord( VOID )
- DESCRIPTION
- CurrentRecord returns a pointer to the Record class for the ISAM table's
current record. Prior to calling CurrentRecord, a valid position must be
established using a search sequence.
- NAME
- IsamFile::DecrementTransactionCounter
SYNOPSIS
VOID DecrementTransactionCounter( VOID )
- DESCRIPTION
- DecrementTransactionCounter decrements a counter used to keep track of the number
of nested transactions an ISAM table is involved in. The counter is used to identify the
outermost transaction for an ISAM table.
- NAME
- IsamFile::DeleteCurrentRecord
SYNOPSIS
NI DeleteCurrentRecord( VOID )
- DESCRIPTION
- DeleteCurrentRecord deletes the current row of an ISAM table. A current row must
first be established with one of the Find functions.
- NAME
- IsamFile::DeleteIndexMember
SYNOPSIS
NI DeleteIndexMember( VOID )
- DESCRIPTION
- DeleteIndexMember deletes one of the keys of an index associated with an ISAM
table.
- NAME
- IsamFile::DeleteRow
SYNOPSIS
NI IsamFile::DeleteRow( VOID )
- DESCRIPTION
- DeleteRow deletes the current row from an ISAM table. Before DeleteRow is
called, a valid current position must be established using one of the search sequences.
- SEE ALSO
-
- IsamFile::BeginIsamOperation
- IsamFile::SetColumn
- IsamFile::FindEqual
- IsamFile::FindFirstPartialKeyMatch
- IsamFile::FindGreater
- IsamFile::FindGreaterOrEqual
- IsamFile::FindLess
- IsamFile::FindLessOrEqual
- IsamFile::FindNextPartialKeyMatch
- IsamFile::FirstRow
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- NAME
- IsamFile::DestroyIndexIndex
SYNOPSIS
NI DestroyIndexIndex( VOID )
- DESRIPTION
- DestroyIndexIndex cleans up a temporary index used during ISAM table processing.
- NAME
- IsamFile::DestroyIsamIndex
SYNOPSIS
NI DestroyIsamIndex( VOID )
- DESRIPTION
- DestroyIsamIndex cleans up a temporary index used during ISAM table processing.
- NAME
- IsamFile::EndCreate
SYNOPSIS
NI IsamFile::EndCreate( VOID )
- DESCRIPTION
- EndCreate completes the ISAM table creation sequence.
- SEE ALSO
-
- DatabaseHandle::BeginCreate
- IsamFile::AddColumn
- IsamFile::BeginKey
- IsamFile::AddSegment
- IsamFile::EndKey
- NAME
- IsamFile::EndKey
SYNOPSIS
NI IsamFile::EndKey( VOID )
- DESCRIPTION
- EndKey completes the key specification sequence within the ISAM table creation
sequence.
- SEE ALSO
-
- IsamFile::BeginCreate
- IsamFile::BeginKey
- IsamFile::AddSegment
- IsamFile::AddColumn
- IsamFile::EndCreate
- NAME
- IsamFile::EstablishPosition
SYNOPSIS
NI IsamFile::EstablishPosition( RECID position, US keyNumber )
- DESCRIPTION
- EstablishPosition is used to establish the current position at location
position for key keyNumber. The position value is obtained by an earlier
call to CurrentPosition.
- SEE ALSO
-
- IsamFile::CurrentPosition
- NAME
- IsamFile::File
SYNOPSIS
pFileManager IsamFile::File( VOID )
- DESCRIPTION
- File returns the pointer to the FileManager class associated with the
open ISAM table.
- NAME
- IsamFile::FileExists
SYNOPSIS
NI FileExists( pNI result, pNC name )
- DESCRIPTION
- FileExists checks whether an ISAM table with name name exists.
- NAME
- IsamFile::FindEqual
SYNOPSIS
NI FindEqual( pNI result )
- DESCRIPTION
- FindEqual is the last operation in a search sequence to find a row equal to a
supplied key value. The sequence begins with BeginIsamOperation, which specifies
which key to use. One call to SetColumn is made for each segment of the key.
FindEqual then completes the sequence. If a matching row is found, CQL_YES is
written to *result. If no matching row is found, CQL_NO is written to *result.
- SEE ALSO
-
- IsamFile::BeginIsamOperation
- IsamFile::SetColumn
- IsamFile::FindFirstPartialKeyMatch
- IsamFile::FindGreater
- IsamFile::FindGreaterOrEqual
- IsamFile::FindLess
- IsamFile::FindLessOrEqual
- IsamFile::FindNextPartialKeyMatch
- IsamFile::FirstRow
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- NAME
- IsamFile::FindFirstPartialKeyMatch
SYNOPSIS
NI IsamFile::FindFirstPartialKeyMatch( pNI result )
- DESCRIPTION
- FindFirstPartialKeyMatch completes the sequence for finding a row matching a
partially supplied key. The sequence begins with BeginIsamOperation, which specifies
which key to use. This is followed by at least one call to SetColumn. This function
requires only a partial key, and therefore it is not necessary to call SetColumn for
each key segment. If a matching row is found, CQL_YES is written to *result. If no matching
row is found, CQL_NO is written to *result.
- SEE ALSO
-
- IsamFile::FindNextPartialKeyMatch
- IsamFile::BeginIsamOperation
- IsamFile::SetColumn
- IsamFile::FindEqual
- IsamFile::FindGreater
- IsamFile::FindGreaterOrEqual
- IsamFile::FindLess
- IsamFile::FindLessOrEqual
- IsamFile::FindNextPartialKeyMatch
- IsamFile::FirstRow
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- NAME
- IsamFile::FindGreater
SYNOPSIS
NI IsamFile::FindGreater( pNI result )
- DESCRIPTION
- FindGreater is the last operation in a search sequence to find a row greater than a
supplied key value. The sequence begins with BeginIsamOperation, which specifies
which key to use. One call to SetColumn is made for each segment of the key.
FindGreater then completes the sequence. If a matching row is found, CQL_YES is
written to *result. If no matching row is found, CQL_NO is written to
*result.
- SEE ALSO
-
- IsamFile::BeginIsamOperation
- IsamFile::SetColumn
- IsamFile::FindEqual
- IsamFile::FindGreaterOrEqual
- IsamFile::FindLess
- IsamFile::FindLessOrEqual
- IsamFile::FindNextPartialKeyMatch
- IsamFile::FirstRow
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- IsamFile::FindFirstPartialKeyMatch
- IsamFile::FindNextPartialKeyMatch
- NAME
- IsamFile::FindGreaterOrEqual
SYNOPSIS
NI IsamFile::FindGreaterOrEqual( pNI result )
- DESCRIPTION
- FindGreaterOrEqual is the last operation in a search sequence to find a row greater
than or equal to a supplied key value. The sequence begins with BeginIsamOperation,
which specifies which key to use. One call to SetColumn is made for each segment
of the key. FindGreaterOrEqual then completes the sequence. If a matching row is
found, CQL_YES is written to *result. If no matching row is found, CQL_NO is written
to *result.
- SEE ALSO
-
- IsamFile::BeginIsamOperation
- IsamFile::SetColumn
- IsamFile::FindEqual
- IsamFile::FindGreater
- IsamFile::FindLess
- IsamFile::FindLessOrEqual
- IsamFile::FindNextPartialKeyMatch
- IsamFile::FirstRow
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- IsamFile::FindFirstPartialKeyMatch
- IsamFile::FindNextPartialKeyMatch
- NAME
- IsamFile::FindLess
SYNOPSIS
NI IsamFile::FindLess( pNI result )
- DESCRIPTION
- FindLess is the last operation in a search sequence to find a row less than a
supplied key value. The sequence begins with BeginIsamOperation, which specifies
which key to use. One call to SetColumn is made for each segment of the key.
FindLess then completes the sequence. If a matching row is found, CQL_YES is
written to *result. If no matching row is found, CQL_NO is written to
*result.
- SEE ALSO
-
- IsamFile::BeginIsamOperation
- IsamFile::SetColumn
- IsamFile::FindEqual
- IsamFile::FindGreater
- IsamFile::FindGreaterOrEqual
- IsamFile::FindLessOrEqual
- IsamFile::FindNextPartialKeyMatch
- IsamFile::FirstRow
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- IsamFile::FindFirstPartialKeyMatch
- IsamFile::FindNextPartialKeyMatch
- NAME
- IsamFile::FindLessOrEqual
SYNOPSIS
NI IsamFile::FindLessOrEqual( pNI result )
- DESCRIPTION
- FindLessOrEqual is the last operation in a search sequence to find a row less than
or equal to a supplied key value. The sequence begins with BeginIsamOperation,
which specifies which key to use. One call to SetColumn is made for each segment
of the key. FindLessOrEqual then completes the sequence. If a matching row is
found, CQL_YES is written to *result. If no matching row is found, CQL_NO is written
to *result.
- SEE ALSO
-
- IsamFile::BeginIsamOperation
- IsamFile::SetColumn
- IsamFile::FindEqual
- IsamFile::FindGreater
- IsamFile::FindLess
- IsamFile::FindGreaterOrEqual
- IsamFile::FindNextPartialKeyMatch
- IsamFile::FirstRow
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- IsamFile::FindFirstPartialKeyMatch
- IsamFile::FindNextPartialKeyMatch
- NAME
- IsamFile::FindNextPartialKeyMatch
SYNOPSIS
NI IsamFile::FindNextPartialkeyMatch( pNI result )
- DESCRIPTION
- FindNextPartialKeyMatch attempts to find another row whose key matches the partial
key specified as part of the sequence leading to the call to FindFirstPartialKeyMatch.
If a matching row is found, CQL_YES is written to *result. If no matching row is
found, CQL_NO is written to *result.
- SEE ALSO
-
- IsamFile::FindFirstPartialKeyMatch
- IsamFile::BeginIsamOperation
- IsamFile::SetColumn
- IsamFile::FindEqual
- IsamFile::FindGreater
- IsamFile::FindGreaterOrEqual
- IsamFile::FindLess
- IsamFile::FindLessOrEqual
- IsamFile::FindNextPartialKeyMatch
- IsamFile::FirstRow
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- NAME
- IsamFile::FirstRow
SYNOPSIS
NI IsamFile::FirstRow( pNI result )
- DESCRIPTION
- FirstRow finds the first row for a particular key. The key is selected by a
preceding call to BeginIsamOperation. If a row is found, CQL_YES is written to
*result. If the table is empty, CQL_NO is written to *result.
- SEE ALSO
-
- IsamFile::BeginIsamOperation
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- NAME
- IsamFile::FlushDataToRecord
SYNOPSIS
NI FlushDataToRecord( VOID )
- DESCRIPTION
- FlushDataToRecord flushes column data to the Record class associated with
the ISAM table. This prepares the Record class for a find operation using data
specified by the application using IsamFile::SetColumn calls.
- NAME
- IsamFile::GetColumnLength
SYNOPSIS
NI IsamFile::GetColumnLength( pUS length, US columnNumber )
- DESCRIPTION
- GetColumnLength returns the length of column columnNumber for the current
row.
- SEE ALSO
-
- IsamFile::GetColumnPointer
- IsamFile::GetColumnValue
- IsamFile::GetColumnInfo
- NAME
- IsamFile::GetColumnPointer
SYNOPSIS
NI IsamFile::GetColumnPointer( pUC *pointer, US columnNumber )
- DESCRIPTION
- GetColumnPointer writes the address of the current storage for column
columnNumber to *pointer.
- SEE ALSO
-
- IsamFile::GetColumnLength
- IsamFile::GetColumnValue
- IsamFile::GetColumnInfo
- NAME
- IsamFile::GetColumnValue
SYNOPSIS
NI IsamFile::GetColumnValue( pUC destination, US columnNumber )
- DESCRIPTION
- GetColumnValue copies the current value of column columnNumber to the
address specified by destination.
- SEE ALSO
-
- IsamFile::GetColumnLength
- IsamFile::GetColumnPointer
- IsamFile::GetColumnInfo
- NAME
- IsamFile::GetColumnInfo
SYNOPSIS
NI IsamFile::GetColumnInfo( pUC *data, pUS length, CqlColumnTypes *type, US columnNumber, pNI nullFlag )
NI IsamFile::GetColumnInfo( pUL length, CqlColumnTypes *type, US columnNumber, pNI nullFlag )
- DESCRIPTION
- GetColumnInfo comes in two flavors. Both flavors return the length and type of
column columnNumber. The flavor with the argument data also returns the
pointer to the current storage for the column. If the current value of the column is null,
*nullFlag will be CQL_YES; otherwise *nullFlag will be CQL_NO;
- SEE ALSO
-
- IsamFile::GetColumnLength
- IsamFile::GetColumnPointer
- IsamFile::GetColumnValue
- NAME
- IsamFile::GetColumnInfoCurrentSetting
SYNOPSIS
NI IsamFile::GetColumnInfoCurrentSetting(
pUC* data,
pUL length,
CqlColumnTypes *type,
US columnNumber,
pNI nullFlag
)
- DESCRIPTION
- GetColumnInfoCurrentSetting returns data, length, type, and null information for a
column. It differs from its GetColumnInfo cousins because it uses information
provided by SetColumn calls instead of using fetched data. It is used for preparing
keys for integrity violation checking.
IsamFile::IncrementTransactionCounter
- NAME
- IsamFile::IncrementTransactionCounter
SYNOPSIS
VOID IncrementTransactionCounter( VOID )
- DESCRIPTION
- IncrementTransactionCounter decrements a counter used to keep track of the number
of nested transactions an ISAM table is involved in. The counter is used to identify the
outermost transaction for an ISAM table.
- NAME
- IsamFile::IndexAddress
SYNOPSIS
pIndex IndexAddress( VOID )
- DESCRIPTION
- IndexAddress returns the address of the FileManager class for the index
file for an ISAM table. It is used to purge information from transaction tables for
temporary files.
- NAME
- IsamFile::LastRow
SYNOPSIS
NI IsamFile::LastRow( pNI result )
- DESCRIPTION
- LastRow finds the last row for a particular key. The key is selected by a
preceding call to BeginIsamOperation. If a row is found, CQL_YES is written to
*result. If the table is empty, CQL_NO is written to *result.
- SEE ALSO
-
- IsamFile::BeginIsamOperation
- IsamFile::NextRow
- IsamFile::LastRow
- IsamFile::PreviousRow
- NAME
- IsamFile::NextRow
SYNOPSIS
NI IsamFile::NextRow( pNI result )
- DESCRIPTION
- NextRow finds the row following the current position using the current key.
NextRow can follow any operation which establishes a position. If the current
position is the last row for the current key, CQL_NO is written to *result.
Otherwise, CQL_YES is written to *result.
- SEE ALSO
-
- IsamFile::FirstRow
- IsamFile::LastRow
- IsamFile::PreviousRow
IsamFile::NumberOfEntriesEqualToKey(2-ISAM)
- NAME
- IsamFile::NumberOfEntriesEqualToKey
SYNOPSIS
NI IsamFile::NumberOfEntriesEqualToKey( pUL number )
- DESCRIPTION
- NumberOfEntriesEqualToKey determines the number of rows in the table matching a
partially or fully specified key. NumberOfEntriesEqualToKey must be preceeded by a
call to BeginIsamOperation and one or more calls to SetColumn. The result
is written to *number.
- SEE ALSO
-
- IsamFile::NumberOfEntriesGreaterOrEqualToKey
- IsamFile::NumberOfEntriesGreaterThanKey
- IsamFile::NumberOfEntriesLessOrEqualToKey
- IsamFile::NumberOfEntriesLessThanKey
- NAME
- IsamFile::NumberOfEntriesGreaterOrEqualToKey
SYNOPSIS
NI IsamFile::NumberOfEntriesGreaterOrEqualToKey( pUL number )
- DESCRIPTION
- NumberOfEntriesGreaterOrEqualToKey determines the number of rows in the table whose
keys are greater than or equal to a partially or fully specified key.
NumberOfEntriesGreaterOrEqualToKey must be preceeded by a call to
BeginIsamOperation and one or more calls to SetColumn. The result is
written to *number.
- SEE ALSO
-
- IsamFile::NumberOfEntriesEqualToKey
- IsamFile::NumberOfEntriesGreaterThanKey
- IsamFile::NumberOfEntriesLessOrEqualToKey
- IsamFile::NumberOfEntriesLessThanKey
- NAME
- IsamFile::NumberOfEntriesGreaterThanKey
SYNOPSIS
NI IsamFile::NumberOfEntriesGreaterThanKey( pUL number )
- DESCRIPTION
- NumberOfEntriesGreaterThanKey determines the number of rows in the table whose keys
are greater than a partially or fully specified key. NumberOfEntriesGreaterThanKey
must be preceeded by a call to BeginIsamOperation and one or more calls to
SetColumn. The result is written to *number.
- SEE ALSO
-
- IsamFile::NumberOfEntriesEqualToKey
- IsamFile::NumberOfEntriesGreaterOrEqualToKey
- IsamFile::NumberOfEntriesLessOrEqualToKey
- IsamFile::NumberOfEntriesLessThanKey
- NAME
- IsamFile::NumberOfEntriesLessOrEqualToKey
SYNOPSIS
NI IsamFile::NumberOfEntriesLessOrEqualToKey( pUL number )
- DESCRIPTION
- NumberOfEntriesLessOrEqualToKey determines the number of rows in the table whose
keys are less than or equal to a partially or fully specified key.
NumberOfEntriesLessOrEqualToKey must be preceeded by a call to
BeginIsamOperation and one or more calls to SetColumn. The result is
written to *number.
- SEE ALSO
-
- IsamFile::NumberOfEntriesEqualToKey
- IsamFile::NumberOfEntriesGreaterThanKey
- IsamFile::NumberOfEntriesGreaterOrEqualToKey
- IsamFile::NumberOfEntriesLessThanKey
- NAME
- IsamFile::NumberOfEntriesLessThanKey
SYNOPSIS
NI IsamFile::NumberOfEntriesLessThanKey( pUL number )
- DESCRIPTION
- NumberOfEntriesLessThanKey determines the number of rows in the table whose keys
are less than a partially or fully specified key. NumberOfEntriesLessThanKey must
be preceeded by a call to BeginIsamOperation and one or more calls to
SetColumn. The result is written to *number.
- SEE ALSO
-
- IsamFile::NumberOfEntriesEqualToKey
- IsamFile::NumberOfEntriesGreaterOrEqualToKey
- IsamFile::NumberOfEntriesLessOrEqualToKey
- IsamFile::NumberOfEntriesLessThanKey
- NAME
- DatabaseHandle::Open
SYNOPSIS
NI DatabaseHandle::Open( pAbstractTable* isamTable, pNC name )
- DESCRIPTION
- Open opens an ISAM table. name specifies the table to open. The handle
of the opened table is returned in isamTable
- SEE ALSO
-
- NAME
- IsamFile::PreviousRow
SYNOPSIS
NI IsamFile::PreviousRow( pNI result )
- DESCRIPTION
- PreviousRow finds the row preceding the current position using the current key.
PreviousRow can follow any operation which establishes a position. If the current
position is the first row for the current key, CQL_NO is written to *result.
Otherwise, CQL_YES is written to *result.
- SEE ALSO
-
- IsamFile::FirstRow
- IsamFile::LastRow
- IsamFile::NextRow
- NAME
- IsamFile::RollbackDirtyRecords
SYNOPSIS
NI RollbackDirtyRecords( VOID )
- DESCRIPTION
- RollbackDirtyRecords purges the record cache of all updated records. It is called
during a transaction rollback.
- NAME
- IsamFile::SetColumn
SYNOPSIS
NI IsamFile::SetColumn( pUC value )
NI IsamFile::SetColumn( pUC value, US columnNumber )
- DESCRIPTION
- SetColumn is used to specify column values. This may be as part of a search sequence
or as part of a sequence adding a row to the table. The sequence begins with a call to
either BeginIsamOperation or BeginRowOperation. The first form assumes
that the column values are specified in sequence starting with column 0. The second form
includes the columnNumber parameter, and allows column values to be specified in
any order.
- SEE ALSO
-
- IsamFile::BeginIsamOperation
- IsamFile::BeginRowOperation
- NAME
- IsamFile::SetColumn
SYNOPSIS
VOID SetDataFetched( VOID )
- DESCRIPTION
- SetDataFetched sets an ISAM table's data fetched flag. It is used during an update
when SetColumn calls have been used to set all current values for a row.
- NAME
- IsamFile::TransactionCounter
SYNOPSIS
UNI TransactionCounter( VOID )
- DESCRIPTION
- TransactionCounter returns the current value of an ISAM table's transaction counter.
This counter specifies the depth of nested transaction involvement for the ISAM table.
- NAME
- IsamFile::UpdateRow
SYNOPSIS
NI IsamFile::UpdateRow( VOID )
- DESCRIPTION
- UpdateRow modifies the values associated with the current position.
UpdateRow must be preceeded by a sequence of calls which establish a current
position. Once the position is established, SetColumn calls are used to change
one or more values. UpdateRow then completes the modification sequence.
- SEE ALSO
-
- IsamFile::AddRow
- IsamFile::BeginRowOperation
- IsamFile::SetColumn
- IsamFile::DeleteRow