JAVA/CORBA CLASSES


lockProvisional method
Example

Locks a document provisionally.

Note This method is new with Release 6.5.

Defined in

Document

Syntax

public boolean lockProvisional()
   throws NotesException

public boolean lockProvisional(String name)
   throws NotesException

public boolean lockProvisional(java.util.Vector names)
   throws NotesException

Parameters

String name

java.util.Vector names


Return value

boolean

Usage

IsDocumentLockingEnabled in Database must be true or this method throws an exception.

The following actions occur depending on the current lock status:


If the document is modified by another user before the lock can be placed, this method throws an exception.

Language cross-reference

LockProvisional method in LotusScript NotesDocument class

@DocLock function in formula language

Example
See Also