Examples of createCollection()


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

                    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

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

        Collection col = DatabaseManager.getCollection(driver + "/" + parent);
        if (col == null) {
            throw new XindiceException("DatabaseManager.getCollection(" + driver + "/" + parent + ") returned null");
        }
        CollectionManager service = (CollectionManager) col.getService("CollectionManager", "1.0");
        return service.createCollection(path, configuration);
    }

    public Collection getCollection(String path) throws Exception {
        return DatabaseManager.getCollection(driver + "/" + path);
    }
View Full Code Here

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

                  filEle.setAttribute(XMLTools.PAGE_COUNT, (String) table.get(XMLTools.PAGE_COUNT));
                }

                colEle.appendChild(filEle);

                tempcol = colman.createCollection(colPath, doc);

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

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

Examples of org.apache.xindice.core.CollectionManager.createCollection()

      }
     
      CollectionManager colman = getCollection((String) message.get(COLLECTION));

      Configuration config = new Configuration(doc.getDocumentElement(),false);    
      colman.createCollection( (String) message.get(NAME), config );

      Hashtable result = new Hashtable();
      result.put(RESULT, (String) message.get(NAME));
      return result;
   }
View Full Code Here

Examples of org.apache.xindice.core.CollectionManager.createCollection()

        }

        CollectionManager colman = getCollection((String) message.get(COLLECTION));

        Configuration config = new Configuration(doc.getDocumentElement(), false);
        colman.createCollection((String) message.get(NAME), config);

        Hashtable result = new Hashtable();
        result.put(RESULT, message.get(NAME));
        return result;
    }
View Full Code Here

Examples of org.apache.xindice.core.CollectionManager.createCollection()

        }

        CollectionManager colman = getCollection((String) message.get(COLLECTION));

        Configuration config = new Configuration(doc.getDocumentElement(), false);
        colman.createCollection((String) message.get(NAME), config);

        Hashtable result = new Hashtable();
        result.put(RESULT, message.get(NAME));
        return result;
    }
View Full Code Here

Examples of org.apache.xindice.core.Database.createCollection()

    public void setUp() throws Exception {
        if (db == null) {
            Database db = new Database();
            db.setConfig(new Configuration(DOMParser.toDocument(DATABASE)));
            col = db.createCollection("testcol", new Configuration(DOMParser.toDocument(COLLECTION)));
            col.insertDocument(DOMParser.toDocument(DOCUMENT));

            XPathQueryResolverTest.db = db;
        }
View Full Code Here

Examples of org.apache.xindice.core.Database.createCollection()

    public void setUp() throws Exception {
        if (db == null) {
            Database db = new Database();
            db.setConfig(new Configuration(DOMParser.toDocument(DATABASE)));
            col = db.createCollection("testcol", new Configuration(DOMParser.toDocument(COLLECTION)));
            col.insertDocument(DOMParser.toDocument(DOCUMENT));

            XPathQueryResolverTest.db = db;
        }
View Full Code Here

Examples of org.dspace.content.Community.createCollection()

                return;
            }

            // Create the collection
            Collection newCollection = c.createCollection();
            request.setAttribute("collection", newCollection);

            if (AuthorizeManager.isAdmin(context))
            {
                // set a variable to show all buttons
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.