Class BoundStatementBuilder

    • Method Detail

      • getPreparedStatement

        @NonNull
        public PreparedStatement getPreparedStatement()
        The prepared statement that was used to create this statement.
      • firstIndexOf

        public int firstIndexOf​(@NonNull
                                CqlIdentifier id)
        Description copied from interface: AccessibleById
        Returns the first index where a given identifier appears (depending on the implementation, identifiers may appear multiple times).
        Specified by:
        firstIndexOf in interface AccessibleById
      • firstIndexOf

        public int firstIndexOf​(@NonNull
                                String name)
        Description copied from interface: AccessibleByName
        Returns the first index where a given identifier appears (depending on the implementation, identifiers may appear multiple times).
        Specified by:
        firstIndexOf in interface AccessibleByName
      • setBytesUnsafe

        @NonNull
        public BoundStatementBuilder setBytesUnsafe​(int i,
                                                    ByteBuffer v)
        Description copied from interface: SettableByIndex
        Sets the raw binary representation of the ith value.

        This is primarily for internal use; you'll likely want to use one of the typed setters instead, to pass a higher-level Java representation.

        Specified by:
        setBytesUnsafe in interface SettableByIndex<BoundStatementBuilder>
        v - the raw value, or null to set the CQL value NULL. For performance reasons, this is the actual instance used internally. If pass in a buffer that you're going to modify elsewhere in your application, make sure to duplicate it beforehand. If you change the buffer's index or its contents in any way, further usage of this data will have unpredictable results.
      • getBytesUnsafe

        public ByteBuffer getBytesUnsafe​(int i)
        Description copied from interface: GettableByIndex
        Returns the raw binary representation of the ith value.

        This is primarily for internal use; you'll likely want to use one of the typed getters instead, to get a higher-level Java representation.

        Specified by:
        getBytesUnsafe in interface GettableByIndex
        Returns:
        the raw value, or null if the CQL value is NULL. For performance reasons, this is the actual instance used internally. If you read data from the buffer, make sure to duplicate it beforehand, or only use relative methods. If you change the buffer's index or its contents in any way, any other getter invocation for this value will have unpredictable results.
      • codecRegistry

        @NonNull
        public CodecRegistry codecRegistry()
        Description copied from interface: Data
        Returns the registry of all the codecs currently available to convert values for this instance.

        If you obtained this object from the driver, this will be set automatically. If you created it manually, or just deserialized it, it is set to CodecRegistry.DEFAULT. You can reattach this object to an existing driver instance to use its codec registry.

        Specified by:
        codecRegistry in interface Data
        See Also:
        Detachable
      • protocolVersion

        @NonNull
        public ProtocolVersion protocolVersion()
        Description copied from interface: Data
        Returns the protocol version that is currently used to convert values for this instance.

        If you obtained this object from the driver, this will be set automatically. If you created it manually, or just deserialized it, it is set to ProtocolVersion.DEFAULT. You can reattach this object to an existing driver instance to use its protocol version.

        Specified by:
        protocolVersion in interface Data
        See Also:
        Detachable