类 RowVersionTypeDescriptor

    • 构造器详细资料

      • RowVersionTypeDescriptor

        public RowVersionTypeDescriptor()
    • 方法详细资料

      • areEqual

        public boolean areEqual​(byte[] one,
                                byte[] another)
        从接口复制的说明: JavaTypeDescriptor
        Determine if two instances are equal
        指定者:
        areEqual 在接口中 JavaTypeDescriptor<byte[]>
        覆盖:
        areEqual 在类中 AbstractTypeDescriptor<byte[]>
        参数:
        one - One instance
        another - The other instance
        返回:
        True if the two are considered equal; false otherwise.
      • toString

        public String toString​(byte[] bytes)
      • fromString

        public byte[] fromString​(String string)
      • unwrap

        public <X> X unwrap​(byte[] value,
                            Class<X> type,
                            WrapperOptions options)
        从接口复制的说明: JavaTypeDescriptor
        Unwrap an instance of our handled Java type into the requested type.

        As an example, if this is a JavaTypeDescriptor<Integer> and we are asked to unwrap the Integer value as a Long we would return something like Long.valueOf( value.longValue() ).

        Intended use is during PreparedStatement binding.

        类型参数:
        X - The conversion type.
        参数:
        value - The value to unwrap
        type - The type as which to unwrap
        options - The options
        返回:
        The unwrapped value.
      • wrap

        public <X> byte[] wrap​(X value,
                               WrapperOptions options)
        从接口复制的说明: JavaTypeDescriptor
        Wrap a value as our handled Java type.

        Intended use is during ResultSet extraction.

        类型参数:
        X - The conversion type.
        参数:
        value - The value to wrap.
        options - The options
        返回:
        The wrapped value.