A Document Descriptor describes a database
document. If content versioning is enabled on the app server used
to retrieve a document via an instance of this class, note that you
may receive a null return value if the corresponding document has
not been modified.
Specifies the format for a database document and
returns the descriptor object
Parameters:
format - the document format
Returns:
the descriptor object
getVersion
longgetVersion()
Returns the version for the database document.
Each update creates a new version of a document. Version numbering
can be used to refresh a client document cache or for optimistic
locking. Use ServerConfigurationManager
to enable versioning on content.
Returns:
the document version number
setVersion
voidsetVersion(long version)
Specifies the document version. Checking the
existence of a document or reading a document specifies the
document version if you have enabled versioning on content.
Parameters:
version - the document version number
Copyright (c) 2010-2025 Progress
Software Corporation and/or its subsidiaries or affiliates. All
Rights Reserved.