org.ektorp.support
Interface DesignDocumentFactory

All Known Implementing Classes:
StdDesignDocumentFactory

public interface DesignDocumentFactory

Author:
henrik lundgren

Method Summary
 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
 

Method Detail

generateFrom

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.

Parameters:
metaDataSource -
Returns:

getFromDatabase

DesignDocument getFromDatabase(CouchDbConnector db,
                               String designDocumentId)
Retrieves the DesignDocument instance from the database

Parameters:
db - The couch database connector
designDocumentId - The id of the document
Returns:

newDesignDocumentInstance

DesignDocument newDesignDocumentInstance()
Create a new empty instance of a DesignDocument

Returns:


Copyright © 2017. All rights reserved.