nsIRDFCompositeDataSource
| IID: | 96343820-307C-11D2-BC15-00805F912FE7 |
| Inherits From: | nsIRDFDataSource |
An nsIRDFCompositeDataSource composes individual data sources, providing the illusion of a single, coherent RDF graph.
This interface is intended to be used as an instance. To create an object implementing this interface:
var obj = Components.classes["@mozilla.org/rdf/datasource;1?name=composite-datasource"].
createInstance(Components.interfaces.nsIRDFCompositeDataSource);This interface is implemented by the following components:
Properties
PRBool allowNegativeAssertions
Set this value to true if the composite datasource
may contains at least one datasource that has negative
assertions. (This is the default.)
Set this value to false if none of the datasources
being composed contains a negative assertion. This allows the
composite datasource to perform some query optimizations.
By default, this value is true.
PRBool coalesceDuplicateArcs
Set to true if the composite datasource should
take care to coalesce duplicate arcs when returning values from
queries. (This is the default.)
Set to false if the composite datasource shouldn't
bother to check for duplicates. This allows the composite
datasource to more efficiently answer queries.
By default, this value is true.
Methods
void AddDataSource ( nsIRDFDataSource dataSource )
nsISimpleEnumerator GetDataSources ( )
void RemoveDataSource ( nsIRDFDataSource dataSource )
void AddDataSource ( nsIRDFDataSource dataSource )
Add a datasource the the composite data source.
- Arguments:
- dataSource: the datasource to add to composite
nsISimpleEnumerator GetDataSources ( )
Retrieve the datasources in the composite data source.
- Returns:
- nsISimpleEnumerator that will enumerate each of the datasources in the composite
void RemoveDataSource ( nsIRDFDataSource dataSource )
Remove a datasource from the composite data source.
- Arguments:
- dataSource: the datasource to remove from the composite
References
This interface is the type of the following properties:
nsIDOMXULElement.database, nsIXULTemplateBuilder.database
This interface is passed as an argument to the following methods:
nsIMessenger.compactFolder, nsIMessenger.copyFolders, nsIMessenger.copyMessages, nsIMessenger.deleteFolders, nsIMessenger.emptyTrash, nsIMessenger.renameFolder
Reference documentation is generated from Mozilla's source.
