|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.client.CollectionXConf
Class to represent a collection.xconf which holds the configuration data for a collection
Method Summary | |
void |
addFullTextIndex(java.lang.String XPath,
java.lang.String action)
Add a path to the full text index |
void |
addQNameIndex(java.lang.String QName,
java.lang.String xsType)
Add a QName Index |
void |
addRangeIndex(java.lang.String XPath,
java.lang.String xsType)
Add a Range Index |
void |
addTrigger(java.lang.String triggerClass,
boolean STORE_DOCUMENT_EVENT,
boolean UPDATE_DOCUMENT_EVENT,
boolean REMOVE_DOCUMENT_EVENT,
boolean CREATE_COLLECTION_EVENT,
boolean RENAME_COLLECTION_EVENT,
boolean DELETE_COLLECTION_EVENT,
java.util.Properties parameters)
Add a Trigger |
void |
deleteFullTextIndex(int index)
Delete a path from the full text index |
void |
deleteQNameIndex(int index)
Delete a QName Index |
void |
deleteRangeIndex(int index)
Delete a Range Index |
void |
deleteTrigger(int index)
Delete a Trigger |
boolean |
getFullTextIndexAlphanum()
Indicates whether the fulltext index indexes alphanumeric values |
boolean |
getFullTextIndexAttributes()
Indicates whether the fulltext index indexes attributes |
boolean |
getFullTextIndexDefaultAll()
Indicates whether the fulltext index defaults to indexing all nodes |
java.lang.String |
getFullTextIndexPath(int index)
Returns a full text index path |
java.lang.String |
getFullTextIndexPathAction(int index)
Returns a full text index path action |
int |
getFullTextPathCount()
Returns the number of full text index paths defined |
org.exist.client.CollectionXConf.QNameIndex |
getQNameIndex(int index)
Returns a specific QName Index |
int |
getQNameIndexCount()
Returns the number of QName Indexes defined |
org.exist.client.CollectionXConf.QNameIndex[] |
getQNameIndexes()
Returns an array of the QName Indexes |
org.exist.client.CollectionXConf.RangeIndex |
getRangeIndex(int index)
Returns n specific Range Index |
int |
getRangeIndexCount()
Returns the number of Range Indexes defined |
org.exist.client.CollectionXConf.RangeIndex[] |
getRangeIndexes()
Returns an array of the Range Indexes |
org.exist.client.CollectionXConf.Trigger |
getTrigger(int index)
Returns n specific Trigger |
int |
getTriggerCount()
Returns the number of Triggers defined |
org.exist.client.CollectionXConf.Trigger[] |
getTriggers()
Returns an array of Triggers |
boolean |
hasChanged()
Indicates whether the collection configuration has changed |
boolean |
Save()
Saves the collection configuation back to the collection.xconf |
void |
setFullTextIndexAlphanum(boolean alphanum)
Set whether alphanumeric values should be indexed into the fulltext index |
void |
setFullTextIndexAttributes(boolean attributes)
Set whether attributes should be indexed into the fulltext index |
void |
setFullTextIndexDefaultAll(boolean defaultAll)
Set whether all nodes should be indexed into the fulltext index |
void |
updateFullTextIndex(int index,
java.lang.String XPath,
java.lang.String action)
Update the details of a full text index path |
void |
updateQNameIndex(int index,
java.lang.String QName,
java.lang.String xsType)
Update the details of a QName Index |
void |
updateRangeIndex(int index,
java.lang.String XPath,
java.lang.String xsType)
Update the details of a Range Index |
void |
updateTrigger(int index,
java.lang.String triggerClass,
boolean STORE_DOCUMENT_EVENT,
boolean UPDATE_DOCUMENT_EVENT,
boolean REMOVE_DOCUMENT_EVENT,
boolean CREATE_COLLECTION_EVENT,
boolean RENAME_COLLECTION_EVENT,
boolean DELETE_COLLECTION_EVENT,
java.util.Properties parameters)
Update the details of a Trigger |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean getFullTextIndexDefaultAll()
public void setFullTextIndexDefaultAll(boolean defaultAll)
defaultAll
- true indicates all nodes should be indexed, false indicates no nodes should be indexed by defaultpublic boolean getFullTextIndexAttributes()
public void setFullTextIndexAttributes(boolean attributes)
attributes
- true indicates attributes should be indexed, false indicates attributes should not be indexedpublic boolean getFullTextIndexAlphanum()
public void setFullTextIndexAlphanum(boolean alphanum)
alphanum
- true indicates alphanumeric values should be indexed, false indicates alphanumeric values should not be indexedpublic java.lang.String getFullTextIndexPath(int index)
index
- The numeric index of the fulltext index path to retreive
public java.lang.String getFullTextIndexPathAction(int index)
index
- The numeric index of the fulltext index path action to retreive
public int getFullTextPathCount()
public void addFullTextIndex(java.lang.String XPath, java.lang.String action)
XPath
- The XPath to indexaction
- The action to take on the path, either "include" or "exclude"public void updateFullTextIndex(int index, java.lang.String XPath, java.lang.String action)
index
- The numeric index of the path to updateXPath
- The new XPath, or null to just set the actionaction
- The new action, either "include" or "exclude", or null to just set the XPathpublic void deleteFullTextIndex(int index)
index
- The numeric index of the path to deletepublic org.exist.client.CollectionXConf.RangeIndex[] getRangeIndexes()
public org.exist.client.CollectionXConf.RangeIndex getRangeIndex(int index)
index
- The numeric index of the Range Index to return
public int getRangeIndexCount()
public void deleteRangeIndex(int index)
index
- The numeric index of the Range Index to deletepublic void updateRangeIndex(int index, java.lang.String XPath, java.lang.String xsType)
index
- The numeric index of the range index to updateXPath
- The new XPath, or null to just set the typexsType
- The new type of the path, a valid xs:type, or just null to set the pathpublic void addRangeIndex(java.lang.String XPath, java.lang.String xsType)
XPath
- The XPath to indexxsType
- The type of the path, a valid xs:typepublic org.exist.client.CollectionXConf.QNameIndex[] getQNameIndexes()
public org.exist.client.CollectionXConf.QNameIndex getQNameIndex(int index)
index
- The numeric index of the QName index to return
public int getQNameIndexCount()
public void deleteQNameIndex(int index)
index
- The numeric index of the QName Index to deletepublic void updateQNameIndex(int index, java.lang.String QName, java.lang.String xsType)
index
- The numeric index of the qname index to updateQName
- The new QName, or null to just set the typexsType
- The new type of the path, a valid xs:type, or just null to set the QNamepublic void addQNameIndex(java.lang.String QName, java.lang.String xsType)
QName
- The QName to indexxsType
- The type of the QName, a valid xs:typepublic org.exist.client.CollectionXConf.Trigger[] getTriggers()
public org.exist.client.CollectionXConf.Trigger getTrigger(int index)
index
- The numeric index of the Trigger to return
public int getTriggerCount()
public void deleteTrigger(int index)
index
- The numeric index of the Trigger to deletepublic void updateTrigger(int index, java.lang.String triggerClass, boolean STORE_DOCUMENT_EVENT, boolean UPDATE_DOCUMENT_EVENT, boolean REMOVE_DOCUMENT_EVENT, boolean CREATE_COLLECTION_EVENT, boolean RENAME_COLLECTION_EVENT, boolean DELETE_COLLECTION_EVENT, java.util.Properties parameters)
index
- The numeric index of the range index to updatetriggerClass
- The name of the new class for the triggerpublic void addTrigger(java.lang.String triggerClass, boolean STORE_DOCUMENT_EVENT, boolean UPDATE_DOCUMENT_EVENT, boolean REMOVE_DOCUMENT_EVENT, boolean CREATE_COLLECTION_EVENT, boolean RENAME_COLLECTION_EVENT, boolean DELETE_COLLECTION_EVENT, java.util.Properties parameters)
triggerClass
- The class for the Triggerpublic boolean hasChanged()
public boolean Save()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |