Class BooleanSqlType

  • All Implemented Interfaces:
    SQLType<java.lang.Boolean>

    public class BooleanSqlType
    extends java.lang.Object
    implements SQLType<java.lang.Boolean>
    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanSqlType()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bindParam​(java.sql.PreparedStatement ps, int parameterIndex, java.lang.Boolean value)
      bindParam
      java.lang.Boolean[] createArray​(java.lang.Boolean value1, java.lang.Boolean value2)
      createArray
      java.lang.String formatValue​(java.lang.Boolean value)
      formatValue
      java.lang.String getValueAsString​(java.lang.Boolean value)
      getValueAsString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BooleanSqlType

        public BooleanSqlType()
    • Method Detail

      • formatValue

        public java.lang.String formatValue​(java.lang.Boolean value)
        Description copied from interface: SQLType

        formatValue

        Specified by:
        formatValue in interface SQLType<java.lang.Boolean>
        Parameters:
        value - a T object.
        Returns:
        a String object.
      • getValueAsString

        public java.lang.String getValueAsString​(java.lang.Boolean value)
        Description copied from interface: SQLType

        getValueAsString

        Specified by:
        getValueAsString in interface SQLType<java.lang.Boolean>
        Parameters:
        value - a T object.
        Returns:
        a String object.
      • bindParam

        public void bindParam​(java.sql.PreparedStatement ps,
                              int parameterIndex,
                              java.lang.Boolean value)
                       throws java.sql.SQLException
        Description copied from interface: SQLType

        bindParam

        Specified by:
        bindParam in interface SQLType<java.lang.Boolean>
        Parameters:
        ps - a PreparedStatement object.
        parameterIndex - a int.
        value - a T object.
        Throws:
        java.sql.SQLException - if any.
      • createArray

        public java.lang.Boolean[] createArray​(java.lang.Boolean value1,
                                               java.lang.Boolean value2)
        Description copied from interface: SQLType

        createArray

        Specified by:
        createArray in interface SQLType<java.lang.Boolean>
        Parameters:
        value1 - a T object.
        value2 - a T object.
        Returns:
        an array of T objects.