Gets the value of a database option.
Parameter |
Description |
option |
One of the following:
NotesDatabase.DBOPT_LZCOMPRESSION 65 uses
LZ1 compression for attachments
NotesDatabase.DBOPT_LZ1 65 uses
LZ1 compression for attachments
NotesDatabase.DBOPT_MAINTAINLASTACCESSED 44 maintains LastAcessed property
NotesDatabase.DBOPT_MOREFIELDS 54 allows
more fields in database
NotesDatabase.DBOPT_NOHEADLINEMONITORS 46 doesn't
allow headline monitoring
NotesDatabase.DBOPT_NOOVERWRITE 36 doesn't
overwrite free space
NotesDatabase.DBOPT_NORESPONSEINFO 38 doesn't
support specialized response hierarchy
NotesDatabase.DBOPT_NOTRANSACTIONLOGGING 45 disables
transaction logging
NotesDatabase.DBOPT_NOUNREAD 37 doesn't
maintain unread marks
NotesDatabase.DBOPT_REPLICATEUNREADMARKSTOANY 71 replicates
unread marks to all servers
NotesDatabase.DBOPT_OPTIMIZATION 41 enables
document table bitmap optimization
NotesDatabase.DBOPT_REPLICATEUNREADMARKSTOCLUSTER 70 replicates
unread marks to clustered servers only
NotesDatabase.DBOPT_SOFTDELETE 49 allows
soft deletions
|
Return value |
Description |
boolean |
- true if the option is enabled
- false if the option is disabled
|
Usage
See setOption for setting
a database option.
Examples
This computed field displays the status
for soft deletes.
if (database.getOption(NotesDatabase.DBOPT_SOFTDELETE)) {
return "Soft deletes enabled"
} else {
return "Soft deletes not enabled"
}