程序包 com.mysql.cj

接口 BindValue

    • 方法详细资料

      • reset

        void reset()
      • isNull

        boolean isNull()
      • setNull

        void setNull​(boolean isNull)
      • isStream

        boolean isStream()
      • setMysqlType

        void setMysqlType​(MysqlType type)
      • getByteValue

        byte[] getByteValue()
      • isSet

        boolean isSet()
      • setCalendar

        void setCalendar​(Calendar cal)
      • escapeBytesIfNeeded

        boolean escapeBytesIfNeeded()
      • setEscapeBytesIfNeeded

        void setEscapeBytesIfNeeded​(boolean val)
      • isNational

        boolean isNational()
      • setIsNational

        void setIsNational​(boolean isNational)
      • getFieldType

        int getFieldType()
      • getTextLength

        long getTextLength()
        Gets the length of this bind value in the text protocol representation.
        返回:
        the expected length, in bytes, of this bind value after being encoded.
      • getBinaryLength

        long getBinaryLength()
        Gets the length of this bind value in the binary protocol representation.
        返回:
        the expected length, in bytes, of this bind value after being encoded.
      • getBoundBeforeExecutionNum

        long getBoundBeforeExecutionNum()
      • getString

        String getString()
        Get a String representation of the value.
        返回:
        value as a String
      • getField

        Field getField()
      • setField

        void setField​(Field field)
      • keepOrigNanos

        boolean keepOrigNanos()
      • setKeepOrigNanos

        void setKeepOrigNanos​(boolean value)
        Should the value keep original fractional seconds ignoring sendFractionalSeconds and sendFractionalSecondsForTime?

        If the value is a part of key for UpdatableResultSet updater, it should keep original milliseconds.

        参数:
        value -
      • setScaleOrLength

        void setScaleOrLength​(long scaleOrLength)
      • getScaleOrLength

        long getScaleOrLength()
      • getName

        String getName()
        Gets the name of this query attribute.
        返回:
        the name of this query attribute.
      • setName

        void setName​(String name)
      • writeAsText

        void writeAsText​(Message intoMessage)
      • writeAsBinary

        void writeAsBinary​(Message intoMessage)
      • writeAsQueryAttribute

        void writeAsQueryAttribute​(Message intoMessage)