Class FastpathArg

  • Direct Known Subclasses:
    FastpathArg.ByteStreamWriterFastpathArg

    public class FastpathArg
    extends java.lang.Object
    Each fastpath call requires an array of arguments, the number and type dependent on the function being called.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] bytes
      Encoded byte value of argument.
      private int bytesLength  
      private int bytesStart  
    • Constructor Summary

      Constructors 
      Constructor Description
      FastpathArg​(byte[] bytes)
      Constructs an argument that consists of an array of bytes.
      FastpathArg​(byte[] buf, int off, int len)
      Constructs an argument that consists of part of a byte array.
      FastpathArg​(int value)
      Constructs an argument that consists of an integer value.
      FastpathArg​(long value)
      Constructs an argument that consists of an integer value.
      FastpathArg​(java.lang.String s)
      Constructs an argument that consists of a String.
    • Field Detail

      • bytes

        private final byte[] bytes
        Encoded byte value of argument.
      • bytesStart

        private final int bytesStart
      • bytesLength

        private final int bytesLength
    • Constructor Detail

      • FastpathArg

        public FastpathArg​(int value)
        Constructs an argument that consists of an integer value.
        Parameters:
        value - int value to set
      • FastpathArg

        public FastpathArg​(long value)
        Constructs an argument that consists of an integer value.
        Parameters:
        value - int value to set
      • FastpathArg

        public FastpathArg​(byte[] bytes)
        Constructs an argument that consists of an array of bytes.
        Parameters:
        bytes - array to store
      • FastpathArg

        public FastpathArg​(byte[] buf,
                           int off,
                           int len)
        Constructs an argument that consists of part of a byte array.
        Parameters:
        buf - source array
        off - offset within array
        len - length of data to include
      • FastpathArg

        public FastpathArg​(java.lang.String s)
        Constructs an argument that consists of a String.
        Parameters:
        s - String to store
    • Method Detail

      • populateParameter

        void populateParameter​(ParameterList params,
                               int index)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException