Examples of fromString()


Examples of com.orientechnologies.orient.core.id.ORecordId.fromString()

    final ORecordId rid = new ORecordId();
    final ODocument doc = new ODocument(database, rid);
    for (String recId : recordToDelete) {
      doc.reset();
      rid.fromString(recId);
      doc.delete();
    }
    listener.onMessage("OK (" + recordToDelete.size() + " records)");
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORecordId.fromString()

          .readString(OJSONReader.COMMA_SEPARATOR);
      dictionaryValue = jsonReader.readNext(OJSONReader.FIELD_ASSIGNMENT).checkContent("\"value\"")
          .readString(OJSONReader.NEXT_IN_OBJECT);

      if (dictionaryValue.length() >= 4)
        rid.fromString(dictionaryValue.substring(1));

      // AVOID TO CHANGE THE DICTIONARY BECAUSE IT'S IMPORTED BY UNDERLYING RECORDS
      // ((ODictionary<ODocument>) database.getDictionary()).put(dictionaryKey, doc);
      tot++;
    } while (jsonReader.lastChar() == ',');
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORecordId.fromString()

    final ORecordId rid = new ORecordId();
    final ODocument doc = new ODocument(database, rid);
    for (String recId : recordToDelete) {
      doc.reset();
      rid.fromString(recId);
      doc.delete();
    }
    listener.onMessage("OK (" + recordToDelete.size() + " records)");
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORecordId.fromString()

  private void searchInRecords() {
    ORecordId rid = new ORecordId();
    ORecordInternal<?> record;
    for (String rec : compiledFilter.getTargetRecords()) {
      rid.fromString(rec);
      record = database.load(rid);
      foreach(record);
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORecordId.fromString()

    final ORecordId rid = new ORecordId();
    final ODocument doc = new ODocument(database, rid);
    for (String recId : recordToDelete) {
      doc.reset();
      rid.fromString(recId);
      doc.delete();
    }
    listener.onMessage("OK (" + recordToDelete.size() + " records)");
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.fromString()

  private OIndexRIDContainer containerFromStream(String stream) {
    stream = stream.substring(OStringSerializerHelper.LINKSET_PREFIX.length(), stream.length() - 1);

    final ODocument doc = new ODocument();
    doc.fromString(stream);
    final OBonsaiBucketPointer rootPointer = new OBonsaiBucketPointer((Long) doc.field("rootIndex"),
        (Integer) doc.field("rootOffset"));
    final String fileName = doc.field("file");

    return new OIndexRIDContainer(fileName, new OIndexRIDContainerSBTree(fileName, rootPointer, false), false, false);
View Full Code Here

Examples of com.sk89q.worldedit.command.util.EntityRemover.fromString()

            actor.printError("Use -1 to remove all entities in loaded chunks");
            return;
        }

        EntityRemover remover = new EntityRemover();
        remover.fromString(typeStr);

        List<EntityVisitor> visitors = new ArrayList<EntityVisitor>();
        LocalSession session = null;
        EditSession editSession = null;
View Full Code Here

Examples of com.sun.tools.javac.util.Names.fromString()

        Names names = def.name.table.names;

        /* SERIALIZABLE_FIELDS can be private,
         * so must lookup by ClassSymbol, not by ClassDocImpl.
         */
        for (Scope.Entry e = def.members().lookup(names.fromString(SERIALIZABLE_FIELDS)); e.scope != null; e = e.next()) {
            if (e.sym.kind == Kinds.VAR) {
                VarSymbol f = (VarSymbol)e.sym;
                if ((f.flags() & Flags.STATIC) != 0 &&
                    (f.flags() & Flags.PRIVATE) != 0) {
                    return f;
View Full Code Here

Examples of com.thoughtworks.xstream.converters.SingleValueConverter.fromString()

                Class type = field.getType();
                if (converter == null) {
                    converter = mapper.getConverterFromItemType(type);
                }
                if (converter != null) {
                    Object value = converter.fromString(reader.getAttribute(attrAlias));
                    if (type.isPrimitive()) {
                        type = Primitives.box(type);
                    }
                    if (value != null && !type.isAssignableFrom(value.getClass())) {
                        throw new ConversionException("Cannot convert type " + value.getClass().getName() + " to type " + type.getName());
View Full Code Here

Examples of com.thoughtworks.xstream.converters.SingleValueConverter.fromString()

                }

                if (valueAsAttribute && valueConverter != null) {
                    final String attribute = reader.getAttribute(valueName);
                    if (attribute != null) {
                        value = valueConverter.fromString(attribute);
                    }
                }
            }

            if (keyConverter == null) {
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.