public interface DocumentDescriptor extends ContentDescriptor
Modifier and Type | Field and Description |
---|---|
static long |
UNKNOWN_VERSION
Indicates that the version of the database document is not known.
|
UNKNOWN_LENGTH
Modifier and Type | Method and Description |
---|---|
String |
getUri()
Returns the URI identifier for the database document.
|
long |
getVersion()
Returns the version for the database document.
|
void |
setUri(String uri)
Specifies the URI identifier for a database document.
|
void |
setVersion(long version)
Specifies the document version.
|
DocumentDescriptor |
withFormat(Format format)
Specifies the format for a database document and
returns the descriptor object
|
getByteLength, getFormat, getMimetype, setByteLength, setFormat, setMimetype
static final long UNKNOWN_VERSION
String getUri()
void setUri(String uri)
uri
- the document URIDocumentDescriptor withFormat(Format format)
format
- the document formatlong getVersion()
ServerConfigurationManager
to enable versioning on content.void setVersion(long version)
version
- the document version numberCopyright © 2013-2016 MarkLogic Corporation.