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

s.fisco-bcos-tars-sdk.3.5.0.source-code.TransactionFactoryImpl 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 TransactionFactoryImpl extends TransactionFactory {
  private transient long swigCPtr;
  private transient boolean swigCMemOwnDerived;

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

  protected static long getCPtr(TransactionFactoryImpl 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_TransactionFactoryImpl(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public TransactionFactoryImpl(TransactionFactoryImpl arg0) {
    this(bcosJNI.new_TransactionFactoryImpl__SWIG_0(TransactionFactoryImpl.getCPtr(arg0), arg0), true);
  }

  public TransactionFactoryImpl(CryptoSuite cryptoSuite) {
    this(bcosJNI.new_TransactionFactoryImpl__SWIG_2(CryptoSuite.getCPtr(cryptoSuite), cryptoSuite), true);
  }

  public Transaction createTransaction(SWIGTYPE_p_bcos__bytesConstRef txData, boolean checkSig, boolean checkHash) {
    long cPtr = bcosJNI.TransactionFactoryImpl_createTransaction__SWIG_0(swigCPtr, this, SWIGTYPE_p_bcos__bytesConstRef.getCPtr(txData), checkSig, checkHash);
    return (cPtr == 0) ? null : new Transaction(cPtr, true);
  }

  public Transaction createTransaction(SWIGTYPE_p_bcos__bytesConstRef txData, boolean checkSig) {
    long cPtr = bcosJNI.TransactionFactoryImpl_createTransaction__SWIG_1(swigCPtr, this, SWIGTYPE_p_bcos__bytesConstRef.getCPtr(txData), checkSig);
    return (cPtr == 0) ? null : new Transaction(cPtr, true);
  }

  public Transaction createTransaction(SWIGTYPE_p_bcos__bytesConstRef txData) {
    long cPtr = bcosJNI.TransactionFactoryImpl_createTransaction__SWIG_2(swigCPtr, this, SWIGTYPE_p_bcos__bytesConstRef.getCPtr(txData));
    return (cPtr == 0) ? null : new Transaction(cPtr, true);
  }

  public Transaction createTransaction(int _version, String _to, SWIGTYPE_p_std__vectorT_unsigned_char_t _input, String _nonce, long _blockLimit, String _chainId, String _groupId, long _importTime, String _abi) {
    long cPtr = bcosJNI.TransactionFactoryImpl_createTransaction__SWIG_3(swigCPtr, this, _version, _to, SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(_input), _nonce, _blockLimit, _chainId, _groupId, _importTime, _abi);
    return (cPtr == 0) ? null : new Transaction(cPtr, true);
  }

  public Transaction createTransaction(int _version, String _to, SWIGTYPE_p_std__vectorT_unsigned_char_t _input, String _nonce, long _blockLimit, String _chainId, String _groupId, long _importTime) {
    long cPtr = bcosJNI.TransactionFactoryImpl_createTransaction__SWIG_4(swigCPtr, this, _version, _to, SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(_input), _nonce, _blockLimit, _chainId, _groupId, _importTime);
    return (cPtr == 0) ? null : new Transaction(cPtr, true);
  }

  public Transaction createTransaction(int _version, String _to, SWIGTYPE_p_std__vectorT_unsigned_char_t _input, String _nonce, long _blockLimit, String _chainId, String _groupId, long _importTime, KeyPairInterface keyPair, String _abi) {
    long cPtr = bcosJNI.TransactionFactoryImpl_createTransaction__SWIG_5(swigCPtr, this, _version, _to, SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(_input), _nonce, _blockLimit, _chainId, _groupId, _importTime, KeyPairInterface.getCPtr(keyPair), keyPair, _abi);
    return (cPtr == 0) ? null : new Transaction(cPtr, true);
  }

  public Transaction createTransaction(int _version, String _to, SWIGTYPE_p_std__vectorT_unsigned_char_t _input, String _nonce, long _blockLimit, String _chainId, String _groupId, long _importTime, KeyPairInterface keyPair) {
    long cPtr = bcosJNI.TransactionFactoryImpl_createTransaction__SWIG_6(swigCPtr, this, _version, _to, SWIGTYPE_p_std__vectorT_unsigned_char_t.getCPtr(_input), _nonce, _blockLimit, _chainId, _groupId, _importTime, KeyPairInterface.getCPtr(keyPair), keyPair);
    return (cPtr == 0) ? null : new Transaction(cPtr, true);
  }

  public void setCryptoSuite(CryptoSuite cryptoSuite) {
    bcosJNI.TransactionFactoryImpl_setCryptoSuite(swigCPtr, this, CryptoSuite.getCPtr(cryptoSuite), cryptoSuite);
  }

  public CryptoSuite cryptoSuite() {
    long cPtr = bcosJNI.TransactionFactoryImpl_cryptoSuite(swigCPtr, this);
    return (cPtr == 0) ? null : new CryptoSuite(cPtr, true);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy