Class RowProtocol

    • Field Detail

      • BIT_LAST_FIELD_NOT_NULL

        public static final int BIT_LAST_FIELD_NOT_NULL
        See Also:
        Constant Field Values
      • TEXT_LOCAL_DATE_TIME

        public static final java.time.format.DateTimeFormatter TEXT_LOCAL_DATE_TIME
      • TEXT_OFFSET_DATE_TIME

        public static final java.time.format.DateTimeFormatter TEXT_OFFSET_DATE_TIME
      • TEXT_ZONED_DATE_TIME

        public static final java.time.format.DateTimeFormatter TEXT_ZONED_DATE_TIME
      • isIntegerRegex

        public static final java.util.regex.Pattern isIntegerRegex
      • maxFieldSize

        protected final int maxFieldSize
      • options

        protected final Options options
      • lastValueNull

        public int lastValueNull
      • buf

        public byte[] buf
      • pos

        public int pos
      • length

        public int length
      • index

        protected int index
    • Constructor Detail

      • RowProtocol

        public RowProtocol​(int maxFieldSize,
                           Options options)
    • Method Detail

      • resetRow

        public void resetRow​(byte[] buf)
      • setPosition

        public abstract void setPosition​(int position)
      • getLengthMaxFieldSize

        public int getLengthMaxFieldSize()
      • getMaxFieldSize

        public int getMaxFieldSize()
      • getInternalString

        public abstract java.lang.String getInternalString​(ColumnInformation columnInfo,
                                                           java.util.Calendar cal,
                                                           java.util.TimeZone timeZone)
                                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalInt

        public abstract int getInternalInt​(ColumnInformation columnInfo)
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalLong

        public abstract long getInternalLong​(ColumnInformation columnInfo)
                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalFloat

        public abstract float getInternalFloat​(ColumnInformation columnInfo)
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalDouble

        public abstract double getInternalDouble​(ColumnInformation columnInfo)
                                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalBigDecimal

        public abstract java.math.BigDecimal getInternalBigDecimal​(ColumnInformation columnInfo)
                                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalDate

        public abstract java.sql.Date getInternalDate​(ColumnInformation columnInfo,
                                                      java.util.Calendar cal,
                                                      java.util.TimeZone timeZone)
                                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalTime

        public abstract java.sql.Time getInternalTime​(ColumnInformation columnInfo,
                                                      java.util.Calendar cal,
                                                      java.util.TimeZone timeZone)
                                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalTimestamp

        public abstract java.sql.Timestamp getInternalTimestamp​(ColumnInformation columnInfo,
                                                                java.util.Calendar userCalendar,
                                                                java.util.TimeZone timeZone)
                                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalObject

        public abstract java.lang.Object getInternalObject​(ColumnInformation columnInfo,
                                                           java.util.TimeZone timeZone)
                                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalBoolean

        public abstract boolean getInternalBoolean​(ColumnInformation columnInfo)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalByte

        public abstract byte getInternalByte​(ColumnInformation columnInfo)
                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalShort

        public abstract short getInternalShort​(ColumnInformation columnInfo)
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalTimeString

        public abstract java.lang.String getInternalTimeString​(ColumnInformation columnInfo)
      • getInternalBigInteger

        public abstract java.math.BigInteger getInternalBigInteger​(ColumnInformation columnInfo)
                                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalZonedDateTime

        public abstract java.time.ZonedDateTime getInternalZonedDateTime​(ColumnInformation columnInfo,
                                                                         java.lang.Class clazz,
                                                                         java.util.TimeZone timeZone)
                                                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalOffsetTime

        public abstract java.time.OffsetTime getInternalOffsetTime​(ColumnInformation columnInfo,
                                                                   java.util.TimeZone timeZone)
                                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalLocalTime

        public abstract java.time.LocalTime getInternalLocalTime​(ColumnInformation columnInfo,
                                                                 java.util.TimeZone timeZone)
                                                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInternalLocalDate

        public abstract java.time.LocalDate getInternalLocalDate​(ColumnInformation columnInfo,
                                                                 java.util.TimeZone timeZone)
                                                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • isBinaryEncoded

        public abstract boolean isBinaryEncoded()
      • lastValueWasNull

        public boolean lastValueWasNull()
      • zeroFillingIfNeeded

        protected java.lang.String zeroFillingIfNeeded​(java.lang.String value,
                                                       ColumnInformation columnInformation)
      • getInternalTinyInt

        protected int getInternalTinyInt​(ColumnInformation columnInfo)
      • parseBit

        protected long parseBit()
      • getInternalSmallInt

        protected int getInternalSmallInt​(ColumnInformation columnInfo)
      • getInternalMediumInt

        protected long getInternalMediumInt​(ColumnInformation columnInfo)
      • rangeCheck

        protected void rangeCheck​(java.lang.Object className,
                                  long minValue,
                                  long maxValue,
                                  java.math.BigDecimal value,
                                  ColumnInformation columnInfo)
                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • rangeCheck

        protected void rangeCheck​(java.lang.Object className,
                                  long minValue,
                                  long maxValue,
                                  long value,
                                  ColumnInformation columnInfo)
                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • extractNanos

        protected int extractNanos​(java.lang.String timestring)
                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • wasNull

        public boolean wasNull()
        Reports whether the last column read had a value of Null. Note that you must first call one of the getter methods on a column to try to read its value and then call the method wasNull to see if the value read was Null.
        Returns:
        true true if the last column value read was null and false otherwise