ITransaction constructor

ITransaction(
  1. FbInterface self
)

Implementation

ITransaction(super.self) {
  startIndex = super.startIndex + super.methodCount;
  methodCount = (version >= 4 ? 13 : 10);
  var idx = startIndex;
  _getInfo =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                UnsignedInt,
                Pointer<Uint8>,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _prepare =
      Pointer<
            NativeFunction<
              Void Function(
                FbInterface,
                FbInterface,
                UnsignedInt,
                Pointer<Uint8>,
              )
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _deprecatedCommit =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  } else {
    _commit =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
  _commitRetaining =
      Pointer<
            NativeFunction<Void Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _deprecatedRollback =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  } else {
    _rollback =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
  _rollbackRetaining =
      Pointer<
            NativeFunction<Void Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _deprecatedDisconnect =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  } else {
    _disconnect =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
  _join =
      Pointer<
            NativeFunction<
              FbInterface Function(FbInterface, FbInterface, FbInterface)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _validate =
      Pointer<
            NativeFunction<
              FbInterface Function(FbInterface, FbInterface, FbInterface)
            >
          >.fromAddress(vtable[idx++])
          .asFunction();
  _enterDtc =
      Pointer<
            NativeFunction<FbInterface Function(FbInterface, FbInterface)>
          >.fromAddress(vtable[idx++])
          .asFunction();
  if (version >= 4) {
    _commit =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
    _rollback =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
    _disconnect =
        Pointer<
              NativeFunction<Void Function(FbInterface, FbInterface)>
            >.fromAddress(vtable[idx++])
            .asFunction();
  }
}