Examples of save()


Examples of com.orientechnologies.orient.core.index.OIndexManagerProxy.save()

        OIndex index = indexManager.createIndex(indexName, indexType, indexDefinition, clusterIdsToIndex, null, metadata);
        if (blueprintsIndexClass != null) {
          ODocument configuration = index.getConfiguration();
          configuration.field("blueprintsIndexClass", blueprintsIndexClass);
          indexManager.save();
        }

        n++;
        listener.onMessage("OK");
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OSchema.save()

      testClass.createProperty("timestamp", OType.LONG);
      testClass.createProperty("stringValue", OType.STRING);

      testClass.createIndex("idIndex", OClass.INDEX_TYPE.UNIQUE, "id");

      schema.save();
    }
  }

  private void compareDocuments(long lastTs) {
    long minTs = Long.MAX_VALUE;
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.security.ORole.save()

    readerRole.addRule(ODatabaseSecurityResources.ALL_CLASSES, ORole.PERMISSION_READ);
    readerRole.addRule(ODatabaseSecurityResources.ALL_CLUSTERS, ORole.PERMISSION_READ);
    readerRole.addRule(ODatabaseSecurityResources.QUERY, ORole.PERMISSION_READ);
    readerRole.addRule(ODatabaseSecurityResources.COMMAND, ORole.PERMISSION_READ);
    readerRole.addRule(ODatabaseSecurityResources.RECORD_HOOK, ORole.PERMISSION_READ);
    readerRole.save();
    metadata.getSecurity().createUser("reader", "reader", new String[] { readerRole.getName() });

    final ORole writerRole = metadata.getSecurity().createRole("writer", ORole.ALLOW_MODES.DENY_ALL_BUT);
    writerRole.addRule(ODatabaseSecurityResources.DATABASE, ORole.PERMISSION_READ);
    writerRole
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.security.OUser.save()

      OUser oUser = iDatabase.getMetadata().getSecurity().getUser(dbUser);
      if (oUser == null) {
        iDatabase.getMetadata().getSecurity().createUser(dbUser, dbPasswd, new String[] { ORole.ADMIN });
      } else {
        oUser.setPassword(dbPasswd);
        oUser.save();
      }
    }
    OLogManager.instance().info(this, "Created database '%s' of type '%s'", iDatabase.getURL(),
        iDatabase.getStorage() instanceof OStorageLocal ? "local" : "memory");
View Full Code Here

Examples of com.orientechnologies.orient.core.record.ORecord.save()

      OIdentifiable identifiable = entry.getKey();
      if (identifiable instanceof ORecord) {
        ORID identity = identifiable.getIdentity();
        ORecord record = (ORecord) identifiable;
        if (identity.isNew() || record.isDirty()) {
          record.save();
          identity = record.getIdentity();
        }

        newChangedValues.put(identity, entry.getValue());
      } else
View Full Code Here

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

        text.append(words[random.nextInt(words.length - 1)]);
      }

      doc.field("text", text.toString());

      doc.save();
    }

    database.close();
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ORecordBytes.save()

  @Test
  public void testBasicCreateExternal() {
    database.open("admin", "admin");

    ORecordBytes record = new ORecordBytes(database, "This is a test".getBytes());
    record.save();
    rid = record.getIdentity();

    database.close();
  }
View Full Code Here

Examples of com.orientechnologies.orient.object.db.OObjectDatabaseTx.save()

      CustomClass pojo = database.newInstance(CustomClass.class, "test", 33L, new CustomType(101L), customTypesList, customTypeSet,
          customTypeMap);
      Assert.assertEquals(serialized, 4);
      Assert.assertEquals(unserialized, 0);

      pojo = database.save(pojo);

      rid = database.getIdentity(pojo);

      database.close();
View Full Code Here

Examples of com.pccw.service.iace.HelloHessian.save()

            for (String str : hello.myLoveFruit()) {
                System.out.println(str);
            }

            hello.save("This is a let");
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
    }
   
View Full Code Here

Examples of com.philip.journal.home.dao.BranchDAO.save()

        targetBranch.setParent(parent);
        final Branch storedBranch = branchDao.readByName(targetBranch.getName(), parentId);
        if (storedBranch == null) {
            targetBranch.setBranchId(0);
            branchDao.save(targetBranch);
        } else {
            targetBranch = storedBranch;
        }
        return targetBranch;
    }
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.