Class SqlArrayArgument<T>

  • All Implemented Interfaces:
    Argument

    class SqlArrayArgument<T>
    extends java.lang.Object
    implements Argument
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object[] array  
      private java.lang.String typeName  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(int position, java.sql.PreparedStatement statement, StatementContext ctx)
      Apply the argument to the given prepared statement.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • typeName

        private final java.lang.String typeName
      • array

        private final java.lang.Object[] array
    • Constructor Detail

      • SqlArrayArgument

        SqlArrayArgument​(SqlArrayType<T> arrayType,
                         java.lang.Object newArray)
    • Method Detail

      • apply

        public void apply​(int position,
                          java.sql.PreparedStatement statement,
                          StatementContext ctx)
                   throws java.sql.SQLException
        Description copied from interface: Argument
        Apply the argument to the given prepared statement.
        Specified by:
        apply in interface Argument
        Parameters:
        position - the position to which the argument should be bound, using the stupid JDBC "start at 1" bit
        statement - the prepared statement the argument is to be bound to
        ctx - the statement context
        Throws:
        java.sql.SQLException - if anything goes wrong
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object