public class StdDesignDocumentFactory extends Object implements DesignDocumentFactory
| Modifier and Type | Field and Description |
|---|---|
SimpleViewGenerator |
viewGenerator |
| Constructor and Description |
|---|
StdDesignDocumentFactory() |
| Modifier and Type | Method and Description |
|---|---|
DesignDocument |
generateFrom(Object metaDataSource)
Generates a design document with views, lists, shows and filters generated and loaded
according to the annotations found in the metaDataSource object.
|
DesignDocument |
getFromDatabase(CouchDbConnector db,
String designDocumentId)
Retrieves the DesignDocument instance from the database
|
DesignDocument |
newDesignDocumentInstance()
Create a new empty instance of a DesignDocument
|
public SimpleViewGenerator viewGenerator
public DesignDocument generateFrom(Object metaDataSource)
DesignDocumentFactorygenerateFrom in interface DesignDocumentFactorypublic DesignDocument getFromDatabase(CouchDbConnector db, String designDocumentId)
DesignDocumentFactorygetFromDatabase in interface DesignDocumentFactorydb - The couch database connectordesignDocumentId - The id of the documentpublic DesignDocument newDesignDocumentInstance()
DesignDocumentFactorynewDesignDocumentInstance in interface DesignDocumentFactoryCopyright © 2013. All Rights Reserved.