Package org.ektorp.support

Examples of org.ektorp.support.DesignDocument


            throw new IllegalStateException(e);
        }
        stdCouchDbInstance = new StdCouchDbInstance(httpClient);
        db = new StdCouchDbConnector(dbName, stdCouchDbInstance);
        db.createDatabaseIfNotExists();
        designDocument = new DesignDocument("_design/channels");
        addView(designDocument, Views.CHANNEL);
        addView(designDocument, Views.UAID);
        addView(designDocument, Views.TOKEN);
        addView(designDocument, Views.UNACKS);
        addView(designDocument, Views.SERVER);
View Full Code Here


        return couchDbConnector;
    }

    public static DesignDocument getDesignDocumentForClass(Class<?> clazz, CouchInstance instance) {
        String stdDesignDocumentId = NameConventions.designDocName(clazz);
        DesignDocument dd = instance.getConnector().get(DesignDocument.class, stdDesignDocumentId);
        return dd;
    }
View Full Code Here

TOP

Related Classes of org.ektorp.support.DesignDocument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.