
org.hyperledger.fabric.contract.annotation.Transaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-chaincode-shim
Show all versions of fabric-chaincode-shim
Hyperledger Fabric Java Chaincode Shim
/*
Copyright IBM Corp., DTCC All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.contract.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Method level annotation indicating the function to be a callable transaction function
*/
@Retention(RUNTIME)
@Target(METHOD)
public @interface Transaction {
/**
* 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
* @return
*/
boolean submit() default true;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy