Package org.apache.xindice.core

Examples of org.apache.xindice.core.Collection.dropCollection()


       Hashtable result = new Hashtable();
      try {

          Collection col = getCollection( (String) message.get(COLLECTION)
                                      + "/" + (String) message.get(NAME));
          col.dropCollection( col );
          result.put(RESULT, "yes");

      } catch (Exception e) {

          /* No such collection... */
 
View Full Code Here


        Hashtable result = new Hashtable();
        try {
                       
            Collection col = getCollection((String) message.get(COLLECTION) + "/" + childName);
            col.dropCollection(col);
            result.put(RESULT, "yes");

        } catch (Exception e) {
            // FIXME "No such collection" is when col == null
            /* No such collection... */
 
View Full Code Here

                                     FaultCodes.COL_COLLECTION_NOT_FOUND,
                                     "Cannot remove child collection '" + childName + "': Parent collection '" + parentName + "' not found.");
        }

        final Hashtable result = new Hashtable();
        col.dropCollection(col.getCollection(childName));
        result.put(RESULT, "yes");
        return result;
    }
}
View Full Code Here

      if ( cm == null )
         throw new DBException(FaultCodes.DBE_CANNOT_DROP, "You Cannot Drop The Database");
     
      if ( cm != this )
         return cm.dropCollection(collection);
      else {
         String path = collection.getCanonicalName();
         final String name = collection.getName();
         boolean dropped = collection.drop();
         if ( dropped ) {
View Full Code Here

            throw new XMLDBException(ErrorCodes.NO_SUCH_COLLECTION,
                                     FaultCodes.COL_COLLECTION_NOT_FOUND,
                                     "Cannot remove child collection '" + childName + "': Parent collection '" + parentName + "' not found.");
        }

        col.dropCollection(col.getCollection(childName));

        Map result = new HashMap(3);
        result.put(RESULT, "yes");
        return result;
    }
View Full Code Here

            if (overwrite) {
                // overwrites the collection
                String name = destCollection.getName();
                Collection parent = destCollection.getParentCollection();
                // delete collection
                parent.dropCollection(destCollection);
                results.putAll(copyCollection(col, parent, name, deep));
                if (results.size() == 0) {
                    results.put(dest, new Integer(WebdavStatus.SC_NO_CONTENT));
                }
            } else {
View Full Code Here

                                     FaultCodes.COL_COLLECTION_NOT_FOUND,
                                     "Cannot remove child collection '" + childName + "': Parent collection '" + parentName + "' not found.");
        }

        final Hashtable result = new Hashtable();
        col.dropCollection(col.getCollection(childName));
        result.put(RESULT, "yes");
        return result;
    }
}
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.