Packages

class ConnectionCourses extends ConnectionCourseTrait

Linear Supertypes
ConnectionCourseTrait, ConnectionTrait, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConnectionCourses
  2. ConnectionCourseTrait
  3. ConnectionTrait
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConnectionCourses(username: String, channel: String, chaincode: String, walletPath: Path, networkDescriptionPath: Path)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addCourse(jSonCourse: String): String

    Executes the "addCourse" query.

    Executes the "addCourse" query.

    jSonCourse

    Information about the course to add.

    returns

    Success_state

    Definition Classes
    ConnectionCoursesConnectionCourseTrait
    Exceptions thrown

    Exception if chaincode throws an exception.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def close(): Unit
    Definition Classes
    ConnectionTrait → AutoCloseable
  8. val contract: Contract
    Definition Classes
    ConnectionCoursesConnectionTrait
  9. final val contractName: String
    Definition Classes
    ConnectionCoursesConnectionTrait
  10. final def convertTransactionResult(result: Array[Byte]): String

    Since the chain returns bytes, we need to convert them to a readable Result.

    Since the chain returns bytes, we need to convert them to a readable Result.

    result

    Bytes containing a result from a chaincode transaction.

    returns

    Result as a String.

    Attributes
    protected
    Definition Classes
    ConnectionTrait
  11. def deleteCourseById(courseId: String): String

    Submits the "deleteCourseById" query.

    Submits the "deleteCourseById" query.

    courseId

    courseId to delete course

    returns

    success_state

    Definition Classes
    ConnectionCoursesConnectionCourseTrait
    Exceptions thrown

    Exception if chaincode throws an exception.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. val gateway: Gateway
    Definition Classes
    ConnectionCoursesConnectionTrait
  16. def getAllCourses: String

    Executes the "getCourses" query.

    Executes the "getCourses" query.

    returns

    List of courses represented by their json value.

    Definition Classes
    ConnectionCoursesConnectionCourseTrait
    Exceptions thrown

    Exception if chaincode throws an exception.

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getCourseById(courseId: String): String

    Executes the "getCourseById" query.

    Executes the "getCourseById" query.

    courseId

    courseId to get course information

    returns

    JSon Course Object

    Definition Classes
    ConnectionCoursesConnectionCourseTrait
    Exceptions thrown

    Exception if chaincode throws an exception.

  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def internalEvaluateTransaction(transactionId: String, params: String*): Array[Byte]
    Attributes
    protected
    Definition Classes
    ConnectionTrait
    Annotations
    @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])
  21. final def internalSubmitTransaction(transient: Boolean, transactionId: String, params: String*): Array[Byte]
    Attributes
    protected
    Definition Classes
    ConnectionTrait
    Annotations
    @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. def updateCourseById(courseId: String, jSonCourse: String): String

    Submits the "updateCourseById" query.

    Submits the "updateCourseById" query.

    courseId

    courseId to update course

    jSonCourse

    courseInfo to update to

    returns

    success_state

    Definition Classes
    ConnectionCoursesConnectionCourseTrait
    Exceptions thrown

    Exception if chaincode throws an exception.

  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wrapTransactionResult(transactionId: String, result: Array[Byte]): String

    Wraps the chaincode query result bytes.

    Wraps the chaincode query result bytes. Translates the byte-array to a string and throws an error if said string is not empty

    result

    input byte-array to translate

    returns

    result as a string

    Attributes
    protected
    Definition Classes
    ConnectionTrait
    Annotations
    @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait])

Inherited from ConnectionCourseTrait

Inherited from ConnectionTrait

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped