JAVA/CORBA CLASSES


Database class
Example

Represents a Notes database.

Syntax

public class Database extends Base

Containment

Contained by: AgentContext, DbDirectory, and Session

Can contain: ACL, Agent, DateTime, Document, DocumentCollection, Form, Outline, Replication, View

Properties

ACL through getACL

ACLActivityLog through getACLActivityLog

Agents through getAgents

AllDocuments through getAllDocuments

Categories through getCategories and setCategories

Created through getCreated

CurrentAccessLevel through getCurrentAccessLevel

DesignTemplateName through getDesignTemplateName

FileFormat through getFileFormat

FileName through getFileName

FilePath through getFilePath

FolderReferencesEnabled through getFolderReferences and setFolderReferences

Forms through getForms

FTIndexFrequency through getFTIndexFrequency and setFTIndexFrequency

HttpURL through getHttpURL

IsDelayUpdates through isDelayUpdates and setDelayUpdates

IsClusterReplication through isClusterReplication and setClusterReplication

IsConfigurationDirectory through isConfigurationDirectory

IsCurrentAccessPublicReader through isCurrentAccessPublicReader

IsCurrentAccessPublicWriter through isCurrentAccessPublicReader

IsDesignLockingEnabled through isDesignLockingEnabled and setDesignLockingEnabled

IsDirectoryCatalog through isDirectoryyCatalog

IsDocumentLockingEnabled through isDocumentLockingEnabled and setDocumentLockingEnabled

IsFTIndexed through isFTIndexed

IsInMultiDbIndexing through isInMultiDbIndexing and setInMultiDbIndexing

IsInService through isInService and setInService

IsLink through isLink

IsMultiDbSearch through isMultiDbSearch

IsOpen through isOpen

IsPendingDelete through isPendingDelete

IsPrivateAddressBook through isPrivateAddressBook

IsPublicAddressBook through isPublicAddressBook

LastFixup through getLastFixup

LastFTIndexed through getLastFTIndexed

LastModified through getLastModified

LimitRevisions through getLimitRevisions and setLimitRevisions

LimitUpdatedBy through getLimitUpdatedBy and setLimitUpdatedBy

ListInDbCatalog through getListInDbCatalog and setListInDbCatalog

Managers through getManagers

MaxSize through getMaxSize

NotesURL through getHttpURL

Parent through getParent

PercentUsed through getPercentUsed

ReplicaID through getReplicaID

ReplicationInfo through getReplicationInfo

Server through getServer

Size through getSize

SizeQuota through getSizeQuota and setSizeQuota

SizeWarning through getSizeWarning and setSizeWarning

TemplateName through getTemplateName

Title through getTitle and setTitle

Type through getType

UndeleteExpireTime through getUndeleteExpireTime and setUndeleteExpireTime

Views through getViews

Methods

compact

compactWithOptions

createCopy

createDocument

createFromTemplate

createFTIndex

createNoteCollection

createOutline

createReplica

createView

enableFolder

fixup

FTDomainSearch

FTSearch

FTSearchRange

getAgent

getAllReadDocuments method

getAllUnreadDocuments method

getDocumentByID

getDocumentByUNID

getDocumentByURL

getForm

getModifiedDocuments

getOption

getOutline

getProfileDocCollection

getProfileDocument

getURL

getURLHeaderInfo

getView

grantAccess

markForDelete

open

openByReplicaID

openIfModified

openWithFailover

queryAccess

queryAccessPrivileges

queryAccessRoles

recycle

remove

removeFTIndex

replicate

revokeAccess

search

setOption

sign

toString

updateFTIndex

Creation and access

There are several ways you can use the Database class to access existing databases and to create new ones.


Usage

A database must be open before you can use all the properties and methods in the corresponding Database object. In most cases, the class library automatically opens a database for you. But see isOpen for the exceptions.

Access levels

Notes throws an exception when you attempt to perform an operation for which the user does not have appropriate access. The properties and methods that you can successfully use on a Database object are determined by these factors:


Language cross-reference

FileDatabaseInfo @command in formula language

Example
See Also