Annotation Type Transaction
-
@Retention(RUNTIME) @Target(METHOD) public @interface Transaction
Method level annotation indicating the method to be a callable transaction function.These functions are called in client SDKs by the combination of
[contractname]:[transactioname]
Unless specified otherwise, the contract name is the class name (without package) and the transaction name is the method name.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Transaction.TYPE
intent
What are submit semantics for this transaction.java.lang.String
name
The name of the callable transaction if it should be different to the method name.boolean
submit
Deprecated.Please use intent
-
-
-
Element Detail
-
submit
@Deprecated boolean submit
Deprecated.Please use intentSubmit semantics. TRUE indicates that this function is intended to be called with the 'submit' semantics FALSE indicates that this is intended to be called with the evaluate semantics- Returns:
- boolean, default is true
- Default:
- true
-
-
-
intent
Transaction.TYPE intent
What are submit semantics for this transaction. SUBMIT - indicates that this function is intended to be called with the 'submit' semantics EVALUATE - indicates that this is intended to be called with the 'evaluate' semantics- Returns:
- submit semantics
- Default:
- org.hyperledger.fabric.contract.annotation.Transaction.TYPE.SUBMIT
-
-