Package org.apache.xindice.client.xmldb.services

Examples of org.apache.xindice.client.xmldb.services.CollectionManager.createCollection()


            String collectionConfig =
                "<collection compressed=\"true\" name=\"" + COLLECTION_NAME + "\">"
                    + "   <filer class=\"org.apache.xindice.core.filer.BTreeFiler\"/>"
                    + "</collection>";

            service.createCollection(COLLECTION_NAME, DOMParser.toDocument(collectionConfig));

            System.out.println("Collection " + COLLECTION_NAME + " created.");
        } catch (XMLDBException e) {
            System.err.println("XML:DB Exception occured " + e.errorCode + " " + e.getMessage());
        } finally {
View Full Code Here


                    filEle.setAttribute("maxkeysize", (String) table.get(XMLTools.MAX_KEY_SIZE));
                }

                colEle.appendChild(filEle);

                tempcol = colman.createCollection(newcol, doc);

                System.out.println("Created : " + table.get(XMLTools.COLLECTION) + "/" + newcol);
            } else {
                System.out.println("ERROR : Collection Context and New Collection name required");
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.