JAVA/CORBA CLASSES
Accessing database properties
Example
The following methods access the Database properties:
getACL
returns an ACL object representing the access control list of the database. See "
Examining and adjusting an access control list
."
getAgents
(database must be open) returns a java.util.Vector of Agent objects representing all the agents in the database. See "
Accessing agents
."
getAllDocuments
(database must be open) returns a DocumentCollection object representing all the documents in the database. See "
Collecting all documents and unprocessed documents
."
getCategories
returns a String value containing the categories in the database;
setCategories
(database must be open) sets the database categories to a String value.
getCreated
returns a DateTime object representing the date and time the database was created.
getCurrentAccessLevel
returns an integer containing the user's access level to the database. See "
Examining and adjusting an access control list
."
getDesignTemplateName
returns a String value containing the name of the design template, if any.
getFileName
returns a String value containing the database file name.
getFilePath
returns a String value containing the database file path.
getFolderRefsEnabled
returns true if this database maintains folder references.
getForms
returns a java.util.Vector of Form objects representing the forms in the database. See "
Accessing a form
."
isDelayUpdates
returns true if server updates are delayed (batched) for better performance;
setDelayUpdates
(database must be open) batches updates if set to true.
isFTIndexed
returns true if the database is full-text indexed.
isMultiDbSearch
returns true if the search index is multi-database.
isOpen
returns true if the database is open.
isPrivateAddressBook
returns true if the database is a Personal Address Book; valid only through
getAddressBooks
in Session.
isPublicAddressBook
returns true if the database is a Domino Directory; valid only through
getAddressBooks
in Session.
getLastFTIndexed
(database must be open) returns a DateTime object representing the date and time the full-text index, if any, was last modified.
getLastModified
(database must be open) returns a DateTime object representing the date and time the database was last modified.
getManagers
returns a java.util.Vector of String values that contain the names of users that have Manager access to the database.
getMaxSize
returns a long value containing the maximum size of the database, in kilobytes.
getParent
returns a Session object representing the current Domino session.
getPercentUsed
(database must be open to get the correct value) returns a double value that contains the percent of the total size of a database that is occupied by real data.
getReplicaID
returns a String value containing the database replica ID in hexadecimal.
getReplication
returns a Replication object representing the replication information for this database. See below.
getServer
returns a String value containing the name of the server on which the database resides, or null for the local directory.
getSize
(the database must be open) returns a double value containing the database size, in bytes.
getSizeQuota
returns an int value containing the database size quota, if any;
setSizeQuota
(the database must be open) sets the database size quota to an int value. You must be an administrator to use setSizeQuota.
getTemplateName
returns a String value containing the template name of the database if it is a template.
getTitle
returns a String value containing the database title;
setTitle
(database must be open) sets the title.
getViews
returns a java.util.Vector of View objects representing the named views in the database. See "
Locating a view or folder
."
Each Database object has exactly one Replication object. The following methods access the Replication properties:
getAbstract
returns true if large documents are truncated and attachments removed;
setAbstract
truncates large documents and removes attachments if set to true.
getCutoffDate
returns an int value containing today's date minus the cutoff interval.
getCutoffInterval
returns a long value containing the number of days after which documents are automatically deleted;
setCutoffInterval
sets the cutoff interval.
isCutoffDelete
returns true if documents older than the cutoff date are deleted;
setCutoffDelete
deletes documents older than the cutoff date.
isDisabled
returns true if replication is disabled;
setDisabled
disables replication. Unlike NeverReplicate, this property is accessible through the UI.
isIgnoreDeletes
returns true if outgoing deletions are not replicated;
setIgnoreDeletes
prevents outgoing replication of deletions.
isIgnoreDestDeletes
returns true if incoming deletions are not replicated;
setIgnoreDestDeletes
prevents replication of incoming deletions.
getPriority
returns an int value containing the replication priority;
setPriority
sets the replication priority.
If you set replication properties, you must
save
them to make them permanent. You can
reset
the current property values back to the last saved values. You can clear the replication history with
clearHistory
.
Example
See Also
Accessing databases
Glossary
Feedback on Help?
Help on Help
Open Full Help Window
Glossary
Feedback on Help?
Help on Help
Open Full Help Window