All Downloads are FREE. Search and download functionalities are using the official Maven repository.

s.fisco-bcos-tars-sdk.3.5.0.source-code.TransactionImpl Maven / Gradle / Ivy

The newest version!
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.1.1
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package org.fisco.bcos.sdk.tars;

public class TransactionImpl extends Transaction {
  private transient long swigCPtr;
  private transient boolean swigCMemOwnDerived;

  protected TransactionImpl(long cPtr, boolean cMemoryOwn) {
    super(bcosJNI.TransactionImpl_SWIGSmartPtrUpcast(cPtr), true);
    swigCMemOwnDerived = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(TransactionImpl obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void swigSetCMemOwn(boolean own) {
    swigCMemOwnDerived = own;
    super.swigSetCMemOwn(own);
  }

  @SuppressWarnings("deprecation")
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwnDerived) {
        swigCMemOwnDerived = false;
        bcosJNI.delete_TransactionImpl(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public void decode(SWIGTYPE_p_bcos__bytesConstRef _txData) {
    bcosJNI.TransactionImpl_decode(swigCPtr, this, SWIGTYPE_p_bcos__bytesConstRef.getCPtr(_txData));
  }

  public void encode(SWIGTYPE_p_std__vectorT_unsigned_char_t txData) {
    bcosJNI.TransactionImpl_encode(swigCPtr, this, SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(txData));
  }

  public SWIGTYPE_p_bcos__h256 hash() {
    return new SWIGTYPE_p_bcos__h256(bcosJNI.TransactionImpl_hash(swigCPtr, this), true);
  }

  public int version() {
    return bcosJNI.TransactionImpl_version(swigCPtr, this);
  }

  public SWIGTYPE_p_std__string_view chainId() {
    return new SWIGTYPE_p_std__string_view(bcosJNI.TransactionImpl_chainId(swigCPtr, this), true);
  }

  public SWIGTYPE_p_std__string_view groupId() {
    return new SWIGTYPE_p_std__string_view(bcosJNI.TransactionImpl_groupId(swigCPtr, this), true);
  }

  public long blockLimit() {
    return bcosJNI.TransactionImpl_blockLimit(swigCPtr, this);
  }

  public String nonce() {
    return bcosJNI.TransactionImpl_nonce(swigCPtr, this);
  }

  public void setNonce(String nonce) {
    bcosJNI.TransactionImpl_setNonce(swigCPtr, this, nonce);
  }

  public SWIGTYPE_p_std__string_view to() {
    return new SWIGTYPE_p_std__string_view(bcosJNI.TransactionImpl_to(swigCPtr, this), true);
  }

  public SWIGTYPE_p_std__string_view abi() {
    return new SWIGTYPE_p_std__string_view(bcosJNI.TransactionImpl_abi(swigCPtr, this), true);
  }

  public SWIGTYPE_p_bcos__bytesConstRef input() {
    return new SWIGTYPE_p_bcos__bytesConstRef(bcosJNI.TransactionImpl_input(swigCPtr, this), true);
  }

  public long importTime() {
    return bcosJNI.TransactionImpl_importTime(swigCPtr, this);
  }

  public void setImportTime(long _importTime) {
    bcosJNI.TransactionImpl_setImportTime(swigCPtr, this, _importTime);
  }

  public SWIGTYPE_p_bcos__bytesConstRef signatureData() {
    return new SWIGTYPE_p_bcos__bytesConstRef(bcosJNI.TransactionImpl_signatureData(swigCPtr, this), true);
  }

  public SWIGTYPE_p_std__string_view sender() {
    return new SWIGTYPE_p_std__string_view(bcosJNI.TransactionImpl_sender(swigCPtr, this), true);
  }

  public void forceSender(SWIGTYPE_p_std__vectorT_unsigned_char_t _sender) {
    bcosJNI.TransactionImpl_forceSender(swigCPtr, this, SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(_sender));
  }

  public void setSignatureData(SWIGTYPE_p_std__vectorT_unsigned_char_t signature) {
    bcosJNI.TransactionImpl_setSignatureData(swigCPtr, this, SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(signature));
  }

  public int attribute() {
    return bcosJNI.TransactionImpl_attribute(swigCPtr, this);
  }

  public void setAttribute(int attribute) {
    bcosJNI.TransactionImpl_setAttribute(swigCPtr, this, attribute);
  }

  public SWIGTYPE_p_std__string_view extraData() {
    return new SWIGTYPE_p_std__string_view(bcosJNI.TransactionImpl_extraData(swigCPtr, this), true);
  }

  public void setExtraData(String _extraData) {
    bcosJNI.TransactionImpl_setExtraData(swigCPtr, this, _extraData);
  }

  public SWIGTYPE_p_bcostars__Transaction inner() {
    return new SWIGTYPE_p_bcostars__Transaction(bcosJNI.TransactionImpl_inner(swigCPtr, this), false);
  }

  public SWIGTYPE_p_bcostars__Transaction mutableInner() {
    return new SWIGTYPE_p_bcostars__Transaction(bcosJNI.TransactionImpl_mutableInner(swigCPtr, this), false);
  }

  public void setInner(SWIGTYPE_p_bcostars__Transaction inner) {
    bcosJNI.TransactionImpl_setInner(swigCPtr, this, SWIGTYPE_p_bcostars__Transaction.getCPtr(inner));
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy