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

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


//            collection = getCollection("xmldb:xindice-embed:///db/");

            CollectionManager service = (CollectionManager) collection.getService("CollectionManager", "1.0");

            try{
                service.dropCollection(COLLECTION_NAME);
                System.out.println("Dropped existing collection with name: " + COLLECTION_NAME);
            }
            catch (Exception e) {
                ; // nothing, this may be the first pass.
            }
View Full Code Here


                // Create a collection manager instance for the parent of the collection
                CollectionManager colman = (CollectionManager) col.getService("CollectionManager", XMLDBAPIVERSION);

                // Drop the collection
                colman.dropCollection((String) table.get(XMLTools.NAME_OF));

                System.out.println("Deleted: " + table.get(XMLTools.COLLECTION) + "/" + (String) table.get(XMLTools.NAME_OF));
            } else
                System.out.println("Error : Collection Context and 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.