Interface VarlenaWrapper

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  VarlenaWrapper.Input
      A class by which Java reads the content of a varlena.
      static class  VarlenaWrapper.Output
      A class by which Java writes the content of a varlena as an OutputStream.
      static class  VarlenaWrapper.Verifier
      A Verifier verifies the proper form of content written to a VarlenaWrapper.Output.
    • Method Summary

      Modifier and Type Method Description
      long adopt​(DualState.Key cookie)
      Return the varlena address to native code and dissociate the varlena from Java.
      String toString​(Object o)
      Return a string describing this object in a way useful for debugging, prefixed with the name (abbreviated for comfort) of the class of the object passed in (the normal Java toString() method should pass this).
    • Method Detail

      • adopt

        long adopt​(DualState.Key cookie)
            throws SQLException
        Return the varlena address to native code and dissociate the varlena from Java.
        Parameters:
        cookie - Capability held by native code.
        Throws:
        SQLException
      • toString

        String toString​(Object o)
        Return a string describing this object in a way useful for debugging, prefixed with the name (abbreviated for comfort) of the class of the object passed in (the normal Java toString() method should pass this).

        Subclasses or consumers are encouraged to call this method and append further details specific to the subclass or consumer. The convention should be that the recursion will stop at some class that will actually construct the abbreviated class name of o and use it to prefix the returned value.

        Parameters:
        o - An object whose class name (possibly abbreviated) should be used to prefix the returned string.
        Returns:
        Description of this object.