Examples of create()


Examples of org.exist.storage.btree.BTree.create()

    public void create(int count) throws DBException, IOException {
        file.delete();
        BTree btree = null;
        try {
            btree = new BTree(pool, (byte) 0, false, pool.getCacheManager(), file, 0.1);
            btree.create((short) -1);

            String prefixStr = "KEY";
            for (int i = 1; i <= count; i++) {
                Value value = new Value(prefixStr + Integer.toString(i));
                btree.addValue(value, i);

Examples of org.exolab.castor.jdo.Database.create()

    results = groupOql.execute();
    if ( ! results.hasMore() ) {
      group = new ProductGroup();
      group.setId( 3 );
      group.setName( "a group" );
      db.create( group );
      writer.println( "Creating new group: " + group );
    } else {
      group = (ProductGroup) results.next();
      writer.println( "Query result: " + group );
    }

Examples of org.exolab.castor.jdo.OQLQuery.create()

        _db.begin();

        // Find the first object and remove it
        //object = (TestUuidObject) _db.load( objClass, object.getId() );
        oql = _db.getOQLQuery();
        oql.create("SELECT object FROM " + objClass.getName()
                + " object WHERE id = $1");
        oql.bind(object.getId());
        enumeration = oql.execute();
        LOG.debug("Removing first object: " + object);
        if (enumeration.hasMore()) {

Examples of org.exolab.castor.persist.LockEngine.create()

                        _callback.creating(toBeCreated, _db);
                    } else if (toBeCreatedMolder.getCallback() != null) {
                        toBeCreatedMolder.getCallback().creating(toBeCreated, _db);
                    }

                    OID oid = toBeCreatedLockEngine.create(this,
                            toBeCreatedOID, toBeCreated);

                    if (oid.getIdentity() == null) {
                        throw new IllegalStateException(
                                "oid.getIdentity() is null after create!");

Examples of org.exolab.castor.persist.TransactionContext.create()

        tx = getTransaction();
        info = _scope.getPersistenceInfo( object.getClass() );
        if ( info == null )
            throw new ClassNotPersistenceCapableException( Messages.format("persist.classNotPersistenceCapable", object.getClass().getName()) );

        tx.create( info.engine, info.molder, object, null );
    }

    public void update( Object object )
        throws ClassNotPersistenceCapableException, ObjectModifiedException,
               TransactionNotInProgressException, PersistenceException

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

     * @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();
        _connection = _service.getConnection();

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

                    throw new PersistenceException(
                            "Cannot import data: master database already exists "
                            + "but delete not specified");
                }
            } else {
                tool.create(schema);
            }
        } finally {
            tool.close();
        }
    }

Examples of org.exoplatform.portal.config.DataStorage.create()

            pcontext.addUIComponentToUpdateByAjax(uiPortalApp.getUIPopupMessages());
            return;
         }

         // save page to database
         dataService.create(page);
         pageSelector.setValue(page.getPageId());
      }
   }
}

Examples of org.fao.geonet.util.McKoiDB.create()

      Lib.io.cleanDir(new File(TestConfig.getDBPath()));

      // Create database files
      McKoiDB mcKoi = new McKoiDB();
      mcKoi.setConfigFile(TestConfig.getConfigPath() + "mckoi.conf");
      mcKoi.create(configElm.getChild("user").getText(), configElm.getChild("password").getText());
    }
  }

  private void dbFill() throws Exception {
    Resource resource = new Resource(TestConfig.getAppPath(), dbConfigElm);

Examples of org.fao.geonet.wro4j.GeonetWroModelFactory.create()

                return null;
            }
        });
        wroModelFactory.setContext(context);
        wroModelFactory.setGeonetworkRootDirectory(getGeonetworkRootDirectory());
        return wroModelFactory.create();
    }

    private void assertCssFileExists(String cssFileName, List<Resource> resources) {
        boolean exists = false;
        for (Resource resource : resources) {
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.