Package com.orientechnologies.orient.core.record.impl

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


  public ODatabaseDocumentTx save(final ORecordInternal<?> iRecord) {
    if (!(iRecord instanceof ODocument))
      return (ODatabaseDocumentTx) super.save(iRecord);

    final ODocument doc = (ODocument) iRecord;
    doc.validate();

    try {
      if (doc.getIdentity().isNew()) {
        // NEW RECORD
        if (doc.getClassName() != null)
View Full Code Here


      // UPDATE: CHECK ACCESS ON SCHEMA CLASS NAME (IF ANY)
      if (doc.getClassName() != null)
        checkSecurity(ODatabaseSecurityResources.CLASS, ORole.PERMISSION_UPDATE, doc.getClassName());
    }

    doc.validate();

    super.save(doc, iClusterName);
    return this;
  }
View Full Code Here

  public ODatabaseDocumentTx save(final ORecordInternal<?> iContent) {
    if (!(iContent instanceof ODocument))
      return (ODatabaseDocumentTx) super.save(iContent);

    final ODocument doc = (ODocument) iContent;
    doc.validate();

    try {
      if (doc.getIdentity().isNew()) {
        // NEW RECORD
        if (doc.getClassName() != null)
View Full Code Here

      if (id == clusterIds.length)
        throw new IllegalArgumentException("Cluster name " + iClusterName + " is not configured to store the class "
            + doc.getClassName());
    }

    doc.validate();

    super.save(doc, iClusterName);
    return this;
  }
View Full Code Here

  public ODatabaseDocumentTx save(final ORecordInternal<?> iContent) {
    if (!(iContent instanceof ODocument))
      return (ODatabaseDocumentTx) super.save(iContent);

    final ODocument doc = (ODocument) iContent;
    doc.validate();

    try {
      if (doc.getIdentity().isNew()) {
        // NEW RECORD
        if (doc.getClassName() != null)
View Full Code Here

      // UPDATE: CHECK ACCESS ON SCHEMA CLASS NAME (IF ANY)
      if (doc.getClassName() != null)
        checkSecurity(ODatabaseSecurityResources.CLASS, ORole.PERMISSION_UPDATE, doc.getClassName());
    }

    doc.validate();

    super.save(doc, iClusterName);
    return this;
  }
View Full Code Here

    checkOpeness();
    if (!(iRecord instanceof ODocument))
      return (RET) super.save(iRecord, iMode, iForceCreate, iRecordCreatedCallback, iRecordUpdatedCallback);

    ODocument doc = (ODocument) iRecord;
    doc.validate();
    ODocumentInternal.convertAllMultiValuesToTrackedVersions(doc);

    try {
      if (iForceCreate || doc.getIdentity().isNew()) {
        // NEW RECORD
View Full Code Here

      // UPDATE: CHECK ACCESS ON SCHEMA CLASS NAME (IF ANY)
      if (doc.getClassName() != null)
        checkSecurity(ODatabaseSecurityResources.CLASS, ORole.PERMISSION_UPDATE, doc.getClassName());
    }

    doc.validate();
    ODocumentInternal.convertAllMultiValuesToTrackedVersions(doc);

    doc = super.save(doc, iClusterName, iMode, iForceCreate, iRecordCreatedCallback, iRecordUpdatedCallback);
    return (RET) doc;
  }
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.