Examples of reName()


Examples of org.h2.table.Column.rename()

        Column col = parseColumnForTable("VALUE", true);
        if (readIf("CHECK")) {
            Expression expr = readExpression();
            col.addCheckConstraint(session, expr);
        }
        col.rename(null);
        command.setColumn(col);
        command.setIfNotExists(ifNotExists);
        return command;
    }

Examples of org.jahia.services.content.JCRNodeWrapper.rename()

        try {
            JCRNodeWrapper nodeWrapper = jcrSessionWrapper.getNodeByUUID(node.getUUID());
            if (!nodeWrapper.getName().equals(node.getName())) {
                String name = contentManager.findAvailableName(nodeWrapper.getParent(), node.getName());
                nodeWrapper.rename(name);
                jcrSessionWrapper.save();
                node.setName(name);
                node.setPath(nodeWrapper.getPath());
            }
        } catch (RepositoryException e) {

Examples of org.jitterbit.integration.client.project.rename.ProjectLocationRenamer.rename()

        @Override
        protected ProjectLocation doInBackground() throws Exception {
            ProjectLocationRenamer renamer = new ProjectLocationRenamer(location);
            renamer.setConflictResolver(new NameCollisionHandler());
            ProjectLocation newLocation = renamer.rename(newName);
            if (newLocation != null) {
                viewer.getRecentProjects().addProjectLocation(newLocation);
            }
            return newLocation;
        }

Examples of org.jnode.driver.DeviceManager.rename()

        // Register the generic SCSI device.
        try {
            final DeviceManager dm = ideDev.getManager();
            synchronized (dm) {
                dm.rename(scsiDevice, "sg", true);
                dm.register(scsiDevice);
                dm.rename(ideDev, SCSIHostControllerAPI.DEVICE_PREFIX, true);
            }
        } catch (DeviceAlreadyRegisteredException ex) {
            throw new DriverException(ex);

Examples of org.lealone.dbobject.table.Column.rename()

        Column col = parseColumnForTable("VALUE", true);
        if (readIf("CHECK")) {
            Expression expr = readExpression();
            col.addCheckConstraint(session, expr);
        }
        col.rename(null);
        command.setColumn(col);
        command.setIfNotExists(ifNotExists);
        return command;
    }

Examples of org.nasutekds.quicksetup.util.FileManager.rename()

    // Revert to the base configuration
    try {
      File newConfig = fm.copy(installation.getBaseConfigurationFile(),
                               installation.getConfigurationDirectory(),
                               /*overwrite=*/true);
      fm.rename(newConfig, installation.getCurrentConfigurationFile());

    } catch (ApplicationException ae) {
      LOG.log(Level.INFO, "failed to restore base configuration", ae);
    }

Examples of org.olat.core.commons.modules.bc.meta.MetaInfo.rename()

          if(container.resolve(fileName) != null) {
            getWindowControl().setError(translator.translate("TargetNameAlreadyUsed"));
            status = FolderCommandStatus.STATUS_FAILED;
          } else {
            if (meta != null) {
              meta.rename(fileName);
            }
            if(VFSConstants.NO.equals(currentItem.rename(fileName))) {
              getWindowControl().setError(translator.translate("FileRenameFailed", new String[]{fileName}));
              status = FolderCommandStatus.STATUS_FAILED;
            }

Examples of org.olat.core.util.vfs.VFSContainer.rename()

      return VFSConstants.YES.equals(versionFile.rename(newname + ".xml"));
    } else if (item instanceof VFSContainer) {
      VFSContainer container = (VFSContainer) item;
      VFSContainer versionContainer = getCanonicalVersionFolder(container, false);
      if (versionContainer == null) { return true; }
      return VFSConstants.YES.equals(versionContainer.rename(newname));
    }
    return false;
  }

  /**
 

Examples of org.olat.core.util.vfs.VFSItem.rename()

    if (item != null && incrementVersion) {
      if (page.getVersion() > 0) {
        versionsContainer.copyFrom(item);
        VFSItem copiedItem = versionsContainer.resolve(page.getPageId() + "." + WIKI_FILE_SUFFIX);
        String fileName = page.getPageId() + "." + WIKI_FILE_SUFFIX + "-" + page.getVersion();
        copiedItem.rename(fileName);
      }
      item.delete();
    }
    // rename existing meta file to version x and copy it to the version
    // container

Examples of org.olat.core.util.vfs.VFSLeaf.rename()

  public boolean rename(VFSItem item, String newname) {
    if (item instanceof VFSLeaf) {
      VFSLeaf currentFile = (VFSLeaf) item;
      VFSLeaf versionFile = getCanonicalVersionXmlFile(currentFile, true);
      // infinite loop if rename is own versions file
      return VFSConstants.YES.equals(versionFile.rename(newname + ".xml"));
    } else if (item instanceof VFSContainer) {
      VFSContainer container = (VFSContainer) item;
      VFSContainer versionContainer = getCanonicalVersionFolder(container, false);
      if (versionContainer == null) { return true; }
      return VFSConstants.YES.equals(versionContainer.rename(newname));
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.