|
Syntax
- any getBookmark
();
- raises ( com::sun::star::sdbc::SQLException );
Description
returns the bookmark of the current row of a result set.
Returns
-
the current bookmark
Throws
- com::sun::star::sdbc::SQLException
if a database access error occurs.
Syntax
- boolean moveToBookmark
(
- any bookmark )
- raises ( com::sun::star::sdbc::SQLException );
Description
moves the cursor to the row identified by an valid bookmark.
If the bookmark could not be located, a result set will be positioned
after the last record.
If the bookmark is invalid, or not generated by the current result set, then
the behaviour is not defined, even an abnormal termination is possible.
Parameter bookmark
-
the bookmark where to move
Returns
-
true
if successful
Throws
- com::sun::star::sdbc::SQLException
if a database access error occurs.
Syntax
- boolean moveRelativeToBookmark
(
- any bookmark,
- long rows )
- raises ( com::sun::star::sdbc::SQLException );
Description
moves the cursor a relative number of rows, either positive or negative
starting at a given bookmark position.
If the bookmark could not be located, a result set will be positioned
after the last record.
If the bookmark is invalid, or not generated by the current result set, then
the behaviour is not defined, even an abnormal termination is possible.
Parameter bookmark
-
the bookmark where to move
Parameter rows
-
count of rows move relative to the bookmark
Returns
-
true
if successful
Throws
- com::sun::star::sdbc::SQLException
if a database access error occurs.
Syntax
- long compareBookmarks
(
- any first,
- any second )
- raises ( com::sun::star::sdbc::SQLException );
Description
compares two bookmarks and returns an indication of their relative values.
The bookmarks must apply to the same ResultSet. You cannot reliably
compare bookmarks from different ResultSets, even if they were created from
the same source or statement.
A bookmark that is not valid, or incorrectly formed, will cause an exception.
Parameter first
-
the first bookmark
Parameter second
-
the second bookmark
Returns
-
a value of
Throws
- com::sun::star::sdbc::SQLException
if a database access error occurs.
See also
- CompareBookmark
-
Syntax
- boolean hasOrderedBookmarks
();
- raises ( com::sun::star::sdbc::SQLException );
Description
determines whether the bookmarks of a result set are ordered or not.
Returns
-
true
if so
Throws
- com::sun::star::sdbc::SQLException
if a database access error occurs.
See also
- CompareBookmark
-
Syntax
- long hashBookmark
(
- any bookmark )
- raises ( com::sun::star::sdbc::SQLException );
Description
returns the hash value for a specified bookmark.
Parameter bookmark
-
the bookmark to hash
Returns
-
the hashed value
Throws
- com::sun::star::sdbc::SQLException
if a database access error occurs.
|