|
XCC/J 3.2-9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Meta-data about a contentbase as represented by a
Session instance. The methods of this class
that throw RequestException may make one
or more calls the the server to obtain needed information.
Those which don't throw exceptions return local information.
All server-query methods are lazy and do temporary caching. That is, no server calls are made until you invoke a method that needs information from the server. And once some information is fetched from the server, local copies will be returned on subsequent calls, until the data ages out. The time-to-live for cached information is about 60 seconds.
| Method Summary | |
BigInteger |
getContentBaseId()
Return the numeric database ID of the contentbase. |
String |
getContentBaseName()
Return the name of the contentbase associated with the Session. |
int |
getDriverMajorVersion()
The driver (XCC) major release version. |
int |
getDriverMinorVersion()
The driver (XCC) minor release version. |
int |
getDriverPatchVersion()
The driver (XCC) patch release version. |
String |
getDriverVersionString()
The driver (XCC) release version, as a String. |
BigInteger[] |
getForestIds()
Return the IDs of forests attached to the contentbase associated with the Session. |
Map |
getForestMap()
Returns a Map of forest names to forest IDs. |
String[] |
getForestNames()
Return the names of the forests attached to the contnetbase associated with the Session. |
int |
getServerMajorVersion()
Return the server major release version number. |
int |
getServerMinorVersion()
Return ther server minor release version number. |
int |
getServerPatchVersion()
Return ther server patch release version number. |
String |
getServerVersionString()
Return a String version of the MarkLogic Server. |
Session |
getSession()
The Session object that created this object. |
String |
getUser()
Returns the user identity associated with the Session from which this object
was obtained. |
| Method Detail |
public String getDriverVersionString()
public int getDriverMajorVersion()
public int getDriverMinorVersion()
public int getDriverPatchVersion()
public String getUser()
Returns the user identity associated with
the Session from which this object
was obtained.
This property may also be obtained directly
from the Session object via the
UserCredentials
object returned by the
Session.getUserCredentials()
method. It is included here for completeness.
public String getContentBaseName()
throws RequestException
Session. Unlike the similar
method Session.getContentBaseName(),
this method makes a call to the server to obtain
the name. Session instances may be created
without an explicit contentbase name (use a default) or with a
numeric ID. This method determines the actual
alphanumeric name of the contentbase.
RequestException - If there is a problem
communicating with the server.
public BigInteger getContentBaseId()
throws RequestException
getContentBaseName(), this method
makes a call to the server to obtain the ID,
regardless of how the Session was created.
RequestException - If there is a problem
communicating with the server.
public BigInteger[] getForestIds()
throws RequestException
Session.
BigInteger values.
RequestException - If there is a problem
communicating with the server.
public String[] getForestNames()
throws RequestException
Session.
Strings.
RequestException - If there is a problem
communicating with the server.
public Map getForestMap()
throws RequestException
Map of forest names to forest IDs.
The keys of the Map are the forest names
and the values are BigInteger values that
represent the forest IDs.
Map, keyed by forest name, of
the forest IDs.
RequestException - If there is a problem
communicating with the server.
public String getServerVersionString()
throws RequestException
RequestException - If there is a problem
communicating with the server.
public int getServerMajorVersion()
throws RequestException
RequestException - If there is a problem
communicating with the server.
public int getServerMinorVersion()
throws RequestException
RequestException - If there is a problem
communicating with the server.
public int getServerPatchVersion()
throws RequestException
RequestException - If there is a problem
communicating with the server.public Session getSession()
Session object that created this object.
Session instance.
|
XCC/J 3.2-9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com