Class ExecutableMongoScript

java.lang.Object
org.springframework.data.mongodb.core.script.ExecutableMongoScript

@Deprecated public class ExecutableMongoScript extends Object
Deprecated.
since 2.2. The eval command has been removed without replacement in MongoDB Server 4.2.0.
Value object for MongoDB JavaScript functions implementation that can be saved or directly executed.
Since:
1.7
Author:
Christoph Strobl, Oliver Gierke
  • Constructor Details

    • ExecutableMongoScript

      public ExecutableMongoScript(String code)
      Deprecated.
      Parameters:
      code - must not be null or empty.
  • Method Details

    • getCode

      public String getCode()
      Deprecated.
      Returns the actual script code.
      Returns:
      will never be null or empty.