JAVA/CORBA クラス


getPrevDocument メソッド
例

コレクション内で、現在の文書または指定された文書の直前の文書を取得します。

定義位置

DocumentCollection

構文

public Document getPrevDocument()
   throws NotesException

public Document getPrevDocument(Document doc)
   throws NotesException

パラメータ

Document doc


戻り値

文書


使用法

リモート (IIOP) 操作の場合、getPrevDocument(Document doc) によってキャッシュが無効になるため、お勧めしません。

お勧めするループ構造は、getLastDocument() とそれに続けて getPrevDocument() を使用する方法で、getLastDocument() が null を返すまでループします。パフォーマンス上の理由により、ループ内での getNthDocument(int n) の使用は避けてください。

ループでは、各繰り返しごとに Document オブジェクトを再利用してください。オブジェクトの保存と復元を行う場合は、一時的な Document オブジェクトを使用します。

クロスリファレンス

LotusScript NotesDocumentCollection クラスの GetPrevDocument メソッド

式言語の NavigatePrevSelected @コマンド

式言語の NavPrevSelected @コマンド

例
関連項目