Class Parameter<T>

  • Direct Known Subclasses:
    ParameterWithCal

    public class Parameter<T>
    extends java.lang.Object
    • Field Detail

      • NULL_PARAMETER

        public static final Parameter<?> NULL_PARAMETER
      • codec

        protected final Codec<T> codec
      • value

        protected final T value
      • length

        protected final java.lang.Long length
    • Constructor Detail

      • Parameter

        public Parameter​(Codec<T> codec,
                         T value)
      • Parameter

        public Parameter​(Codec<T> codec,
                         T value,
                         java.lang.Long length)
    • Method Detail

      • encodeText

        public void encodeText​(PacketWriter encoder,
                               Context context)
                        throws java.io.IOException,
                               java.sql.SQLException
        Throws:
        java.io.IOException
        java.sql.SQLException
      • encodeBinary

        public void encodeBinary​(PacketWriter encoder)
                          throws java.io.IOException,
                                 java.sql.SQLException
        Throws:
        java.io.IOException
        java.sql.SQLException
      • encodeLongData

        public void encodeLongData​(PacketWriter encoder)
                            throws java.io.IOException,
                                   java.sql.SQLException
        Throws:
        java.io.IOException
        java.sql.SQLException
      • encodeData

        public byte[] encodeData()
                          throws java.io.IOException,
                                 java.sql.SQLException
        Throws:
        java.io.IOException
        java.sql.SQLException
      • canEncodeLongData

        public boolean canEncodeLongData()
      • getBinaryEncodeType

        public int getBinaryEncodeType()
      • isNull

        public boolean isNull()