Examples of drop()


Examples of org.exolab.jms.tools.db.DBTool.drop()

     * @param config the configuration to use
     * @throws ServiceException for any error
     */
    public DataLoader(Configuration config) throws ServiceException {
        DBTool tool = new DBTool(config);
        tool.drop();
        tool.create();

        _service = new DatabaseService(config);
        _service.start();
        _adapter = _service.getAdapter();
View Full Code Here

Examples of org.exolab.jms.tools.db.RDBMSTool.drop()

        // ensure the tables don't exist
        EmbeddedDataSource ds = MigrationHelper.getDataSource(DB_NAME);
        RDBMSTool tool = new RDBMSTool(ds.getConnection());
        Database schema = MigrationHelper.getSchema();
        tool.drop(schema);
        assertFalse(tool.hasTables(schema.getTable()));

        // Create the exporter, and verify it has created the tables.
        new Exporter(config, DB_NAME, false);
        assertTrue(tool.hasTables(schema.getTable()));
View Full Code Here

Examples of org.fest.swing.core.ComponentDragAndDrop.drop()

    Robot robot = BasicRobot.robotWithCurrentAwtHierarchy();
   
    ComponentDragAndDrop d = new ComponentDragAndDrop(robot);
       
    d.drag(view, new Point(5,5));
    d.drop(view, new Point(5,5));
   
    Assert.assertNull(dt.v); // Nothing should have happened
   
    d.drag(view, new Point(5,5));
    d.drop(dest, new Point(5,5));   
View Full Code Here

Examples of org.fusesource.ide.commons.ui.drop.DropHandler.drop()

    if (aTarget != null && aTarget instanceof EndpointNode) {
      EndpointNode node = (EndpointNode)aTarget;
      Object data = aDropTargetEvent.data;
      if (isSupported(data)) {
        DropHandler dh = node.createDropHandler(aDropTargetEvent);
        dh.drop(aDropTargetEvent);
        return Status.OK_STATUS;
      }
    }     
    return Status.CANCEL_STATUS;
  }
View Full Code Here

Examples of org.hibernate.tool.hbm2ddl.SchemaExport.drop()

    List<? extends Exception> exceptions;
    try {
      Configuration configuration = getConfiguration();
      if ("drop".equalsIgnoreCase(action)) {
        SchemaExport schemaExport = getSchemaExport(configuration);
        schemaExport.drop(false, false);
        exceptions = CollectionUtil.checkList(schemaExport.getExceptions(), Exception.class);
      }
      else if ("create".equalsIgnoreCase(action)) {
        SchemaExport schemaExport = getSchemaExport(configuration);
        schemaExport.execute(false, false, false, true);
View Full Code Here

Examples of org.jasig.portal.tools.dbloader.ISchemaExport.drop()

            PortalShell.LOGGER.info("");
            PortalShell.LOGGER.info("Hibernate Drop DDL: " + databaseQualifier);

            outputFile = StringUtils.trimToNull(outputFile);

            schemaExportBean.drop(export, outputFile, true);
        }
        catch (Exception e) {
            throw new RuntimeException(target + " for " + databaseQualifier + " failed", e);
        }
    }
View Full Code Here

Examples of org.jcoredb.fs.IContainer.drop()

   */
  @Override
  public void drop(int containerId) throws ContainerDropErr
  {
    IContainer c = containers.get(containerId);
    c.drop();
    this.containers.remove(c);
  }
 
  /* (non-Javadoc)
   * @see org.jcoredb.fs.IFileSystem#create(int)
View Full Code Here

Examples of org.jcoredb.fs.IFileSystem.drop()

 
    IFileSystem fs = FileSystemRegistry.get(new FileSystemRegKey(Constants.HOST, Configs.getFSConfig().getRootDir()));
   
    try
    {
      fs.drop(id);
     
      out.println(JSONHelper.createSuccessNode());     
    }
    catch (Exception e)
    {
View Full Code Here

Examples of org.jcoredb.fs.impl.FileSystem.drop()

    fs.close();
   
    //Open the File System
    fs = new FileSystem(Constants.ROOT_PATH);
    fs.open();
    fs.drop(Integer.MAX_VALUE);
   
    assertTrue(new File(Constants.ROOT_PATH + org.jcoredb.system.Constants.PATH_SEP + 0).exists());
    assertFalse(new File(Constants.ROOT_PATH + org.jcoredb.system.Constants.PATH_SEP + Integer.MAX_VALUE).exists());
  }
 
View Full Code Here

Examples of org.jongo.MongoCollection.drop()

        mongoResource = new MongoResource();
    }

    protected MongoCollection createEmptyCollection(String collectionName) throws UnknownHostException {
        MongoCollection col = jongo.getCollection(collectionName);
        col.drop();
        return col;
    }

    protected void dropCollection(String collectionName) throws UnknownHostException {
        getDatabase().getCollection(collectionName).drop();
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.