Class PreparedStatementPartImpl

    • Constructor Detail

      • PreparedStatementPartImpl

        public PreparedStatementPartImpl()
        Default constructor, creates an empty PreparedStatementPart.
      • PreparedStatementPartImpl

        public PreparedStatementPartImpl​(String sql,
                                         Object... preparedStatementReplacements)
        Constructor, creates a pre-filled PreparedStatementPartImpl.
        Parameters:
        sql - The sql to fill into the sql buffer initially, or null.
        preparedStatementReplacements - the prepared statement replacements to start with, or null.
      • PreparedStatementPartImpl

        public PreparedStatementPartImpl​(PreparedStatementPart toCopy)
        Copy-Constructor.
        Parameters:
        toCopy - the PreparedStatementPart to copy, not null.
    • Method Detail

      • getSql

        public StringBuilder getSql()
        Returns the SQL of the part.
        Returns:
        the SQL as mutable StringBuilder, not null.
      • append

        public PreparedStatementPartImpl append​(PreparedStatementPart toAppend)
        Appends another PreparedStatementPart to this part.
        Parameters:
        toAppend - the part to append, not null.
        Returns:
        this PreparedStatementPart (with toAppend appended).
      • append

        public PreparedStatementPartImpl append​(SqlEnum toAppend)
        Appends a SqlEnum to this part.
        Parameters:
        toAppend - the part to append, not null.
        Returns:
        this PreparedStatementPart (with toAppend appended).
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object