trait ConnectionCourseTrait extends ConnectionTrait
- Alphabetic
- By Inheritance
- ConnectionCourseTrait
- ConnectionTrait
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def addCourse(jSonCourse: String): String
Executes the "addCourse" query.
Executes the "addCourse" query.
- jSonCourse
Information about the course to add.
- returns
Success_state
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])
- Exceptions thrown
Exceptionif chaincode throws an exception.
- abstract val contract: Contract
- Definition Classes
- ConnectionTrait
- abstract val contractName: String
- Definition Classes
- ConnectionTrait
- abstract def deleteCourseById(courseId: String): String
Submits the "deleteCourseById" query.
Submits the "deleteCourseById" query.
- courseId
courseId to delete course
- returns
success_state
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])
- Exceptions thrown
Exceptionif chaincode throws an exception.
- abstract val gateway: Gateway
- Definition Classes
- ConnectionTrait
- abstract def getAllCourses: String
Executes the "getCourses" query.
Executes the "getCourses" query.
- returns
List of courses represented by their json value.
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])
- Exceptions thrown
Exceptionif chaincode throws an exception.
- abstract def getCourseById(courseId: String): String
Executes the "getCourseById" query.
Executes the "getCourseById" query.
- courseId
courseId to get course information
- returns
JSon Course Object
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])
- Exceptions thrown
Exceptionif chaincode throws an exception.
- abstract 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
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])
- Exceptions thrown
Exceptionif chaincode throws an exception.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def close(): Unit
- Definition Classes
- ConnectionTrait → AutoCloseable
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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])
- 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])
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- 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])