Examples of dropCollection()


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

                // 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

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

                              String name)
         throws Exception {
      Collection col = DatabaseManager.getCollection(driver + "/" + path);
      CollectionManager service = (CollectionManager) col.getService("CollectionManager", "1.0");

      service.dropCollection(name);
   }

   public String[] listCollections(String path)
         throws Exception {
      Collection col = DatabaseManager.getCollection(driver + "/" + path);
View Full Code Here

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

                // 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

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

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

    public void dropCollection(String path, String name) throws Exception {
        Collection col = DatabaseManager.getCollection(driver + "/" + path);

        if (col != null) {
            CollectionManager service = (CollectionManager) col.getService("CollectionManager", "1.0");
            service.dropCollection(name);
        }
    }

    public String[] listCollections(String path) throws Exception {
        Collection col = DatabaseManager.getCollection(driver + "/" + path);
View Full Code Here

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

    public void dropCollection(String path, String name) throws Exception {
        Collection col = DatabaseManager.getCollection(driver + "/" + path);

        if (col != null) {
            CollectionManager service = (CollectionManager) col.getService("CollectionManager", "1.0");
            service.dropCollection(name);
        }
    }

    public void createIndexer(String path, String indexDoc) throws Exception {
        createIndexer(path, DOMParser.toDocument(indexDoc));
View Full Code Here

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

                // 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

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

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

    public void dropCollection(String path, String name) throws Exception {
        Collection col = DatabaseManager.getCollection(driver + "/" + path);

        if (col != null) {
            CollectionManager service = (CollectionManager) col.getService("CollectionManager", "1.0");
            service.dropCollection(name);
        }
    }

    public void createIndexer(String path, String indexDoc) throws Exception {
        createIndexer(path, DOMParser.toDocument(indexDoc));
View Full Code Here

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

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

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

            System.out.println("Deleted: " + table.getString(XMLTools.COLLECTION) + "/" + table.getString(XMLTools.NAME_OF));

        } finally {
            if (col != null) {
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.