|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.centrasite.registry.revision.query.RevisionQuery
public final class RevisionQuery
Handles and executes xqueries. The queries are usually given in a separate file.
Field Summary | |
---|---|
static java.lang.String |
PREFIX_CSTYPE
|
static java.lang.String |
PREFIX_SYSTEM
|
Constructor Summary | |
---|---|
RevisionQuery(javax.xml.registry.Connection connection)
The simple constructor. |
Method Summary | |
---|---|
javax.xml.registry.Connection |
getConnection()
|
static java.lang.String |
getMajorElement(boolean versionable)
Get the majorVersion XML element for using in xquery. |
static java.lang.String |
getMinorElement(boolean versionable)
Get the minorVersion XML element for using in xquery. |
java.lang.String |
getQueryFromFile(java.lang.String queryFile)
Get the XQUERY content of the specified file. |
java.lang.String |
replaceDoctypeInQuery(java.lang.String query,
RevisionDoctypeQuery revDQ)
Replace the doctype and the namespace declaration in given xquery with the values of RevisionDoctypeQuery. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PREFIX_SYSTEM
public static final java.lang.String PREFIX_CSTYPE
Constructor Detail |
---|
public RevisionQuery(javax.xml.registry.Connection connection)
connection
- open jaxr connectionMethod Detail |
---|
public javax.xml.registry.Connection getConnection()
public java.lang.String getQueryFromFile(java.lang.String queryFile) throws java.io.IOException
queryFile
- file name of locatable file with xquery code
java.io.IOException
public java.lang.String replaceDoctypeInQuery(java.lang.String query, RevisionDoctypeQuery revDQ)
query
- a xquery with __NSDECL__ and __DOCTYPE__revDQ
- the doctype query environment
public static java.lang.String getMajorElement(boolean versionable)
versionable
- true: versionable (e.g. RegistryEntry)
false: pure RegistryObject
public static java.lang.String getMinorElement(boolean versionable)
versionable
- true: versionable (e.g. RegistryEntry)
false: pure RegistryObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |