|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.core.CollectionManager
org.apache.xindice.core.Collection
org.apache.xindice.core.MetaSystemCollection
MetaSystemCollection represents the Meta System Collection. Beyond standard Collection operations, this class will provide facilities for Meta data management.
| Field Summary | |
static String |
COLLECTION_META_DATA
|
static String |
METACOL
|
static String |
METAS
|
| Constructor Summary | |
MetaSystemCollection(Database db)
|
|
| Method Summary | |
void |
dropCollectionMeta(Collection collection)
dropCollectionMeta removes the MetaData for the specified Collection. |
void |
dropDocumentMeta(Collection collection,
String id)
dropDocumentMeta removes the meta data for the specified document. |
MetaData |
getCollectionMeta(Collection collection)
getCollectionMeta retrieves the MetaData for the specified Collection. |
MetaData |
getDocumentMeta(Collection collection,
String id)
getDocumentMeta retrieves the meta data for the specified document. |
Collection |
getMetaCollection(Collection collection,
boolean create)
Returns the corresponding Meta Collection for the given collection, optionally creating the hierarchy |
void |
init()
|
void |
setCollectionMeta(Collection collection,
MetaData meta)
setCollectionMeta save the Meta for the specified Collection. |
void |
setDocumentMeta(Collection collection,
String id,
MetaData meta)
setDocumentMeta sets the meta data for the specified document. |
| Methods inherited from class org.apache.xindice.core.CollectionManager |
addCollection, countCollections, getCollection, getCollections, getConfig, listCollections |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.xindice.util.Configurable |
getConfig |
| Field Detail |
public static final String METACOL
public static final String METAS
public static final String COLLECTION_META_DATA
| Constructor Detail |
public MetaSystemCollection(Database db)
| Method Detail |
public void init()
throws DBException
DBException
public Collection getMetaCollection(Collection collection,
boolean create)
throws DBException
collection - the collection whose meta you wantcreate - whether or not to create the meta if its missing
DBException - if unable to get meta collection
public void dropCollectionMeta(Collection collection)
throws DBException
collection - The Collection whose meta is required
DBException - if unable to delete collection meta data
public MetaData getCollectionMeta(Collection collection)
throws DBException
collection - The Collection whose meta is required
DBException - if unable to retrieve collection meta data
public void setCollectionMeta(Collection collection,
MetaData meta)
throws DBException
collection - The Collection that owns the MetaDatameta - The MetaData
DBException - if unable to update collection meta data
public void dropDocumentMeta(Collection collection,
String id)
throws DBException
collection - Document collectionid - Document key
DBException - if unable to delete document meta data
public MetaData getDocumentMeta(Collection collection,
String id)
throws DBException
collection - Document collectionid - Document key
DBException - if unable to retrieve document meta data
public void setDocumentMeta(Collection collection,
String id,
MetaData meta)
throws DBException
collection - Document collectionid - Document keymeta - New document meta data
DBException - if unable to update document meta data
|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||