Examples of saveInternal()


Examples of com.orientechnologies.orient.core.metadata.schema.OClassImpl.saveInternal()

        linkedType = OType.valueOf(linked.toUpperCase());
    }

    // CREATE IT LOCALLY
    prop = sourceClass.addPropertyInternal(fieldName, type, linkedType, linkedClass);
    sourceClass.saveInternal();

    return sourceClass.properties().size();
  }
}
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClassImpl.saveInternal()

    if (sourceClass == null)
      throw new OCommandExecutionException("Source class '" + className + "' not found");

    // REMOVE THE PROPERTY
    sourceClass.dropPropertyInternal(fieldName);
    sourceClass.saveInternal();

    return null;
  }
}
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClassImpl.saveInternal()

    if (database.getMetadata().getSchema().existsClass(className))
      throw new OCommandExecutionException("Class " + className + " already exists");

    final OClassImpl sourceClass = (OClassImpl) ((OSchemaProxy) database.getMetadata().getSchema()).createClassInternal(className,
        superClass, clusterIds);
    sourceClass.saveInternal();
    return database.getMetadata().getSchema().getClasses().size();
  }
}
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClassImpl.saveInternal()

    if (database.getMetadata().getSchema().existsClass(className))
      throw new OCommandExecutionException("Class " + className + " already exists");

    final OClassImpl sourceClass = (OClassImpl) ((OSchemaProxy) database.getMetadata().getSchema()).createClassInternal(className,
        superClass, clusterIds);
    sourceClass.saveInternal();
    return sourceClass.getId();
  }
}
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClassImpl.saveInternal()

        linkedType = OType.valueOf(linked.toUpperCase());
    }

    // CREATE IT LOCALLY
    prop = sourceClass.addPropertyInternal(fieldName, type, linkedType, linkedClass);
    sourceClass.saveInternal();

    return prop.getId();
  }
}
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.