Class CorePreparedStatement

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.sql.Statement, java.sql.Wrapper, Codes
    Direct Known Subclasses:
    JDBC3PreparedStatement

    public abstract class CorePreparedStatement
    extends JDBC4Statement
    • Field Detail

      • columnCount

        protected int columnCount
      • paramCount

        protected int paramCount
      • batchQueryCount

        protected int batchQueryCount
    • Constructor Detail

      • CorePreparedStatement

        protected CorePreparedStatement​(SQLiteConnection conn,
                                        java.lang.String sql)
                                 throws java.sql.SQLException
        Constructs a prepared statement on a provided connection.
        Parameters:
        conn - Connection on which to create the prepared statement.
        sql - The SQL script to prepare.
        Throws:
        java.sql.SQLException
    • Method Detail

      • clearBatch

        public void clearBatch()
                        throws java.sql.SQLException
        Specified by:
        clearBatch in interface java.sql.Statement
        Overrides:
        clearBatch in class JDBC3Statement
        Throws:
        java.sql.SQLException
        See Also:
        ()
      • batch

        protected void batch​(int pos,
                             java.lang.Object value)
                      throws java.sql.SQLException
        Assigns the object value to the element at the specific position of array batch.
        Parameters:
        pos -
        value -
        Throws:
        java.sql.SQLException
      • setDateByMilliseconds

        protected void setDateByMilliseconds​(int pos,
                                             java.lang.Long value,
                                             java.util.Calendar calendar)
                                      throws java.sql.SQLException
        Store the date in the user's preferred format (text, int, or real)
        Throws:
        java.sql.SQLException