Class UpdatePreparedStatementSetter

  • All Implemented Interfaces:
    org.springframework.jdbc.core.PreparedStatementSetter
    Direct Known Subclasses:
    UpdateLocalizedPreparedStatementSetter

    public class UpdatePreparedStatementSetter
    extends java.lang.Object
    implements org.springframework.jdbc.core.PreparedStatementSetter
    • Field Detail

      • optimisticLockCounter

        protected java.lang.Long optimisticLockCounter
      • isLockedExpectedValue

        protected boolean isLockedExpectedValue
      • itemPk

        protected final PK itemPk
      • checkOptimisticLockCounter

        protected final boolean checkOptimisticLockCounter
    • Constructor Detail

      • UpdatePreparedStatementSetter

        public UpdatePreparedStatementSetter​(PK itemPk,
                                             java.util.Set<ColumnPayload> changes)
      • UpdatePreparedStatementSetter

        public UpdatePreparedStatementSetter​(PK itemPk,
                                             java.util.Set<ColumnPayload> changes,
                                             java.lang.Long optimisticLockCounter,
                                             boolean isLockedExpectedValue,
                                             boolean checkOptimisticLockCounter)
    • Method Detail

      • setValues

        public void setValues​(java.sql.PreparedStatement ps)
                       throws java.sql.SQLException
        Specified by:
        setValues in interface org.springframework.jdbc.core.PreparedStatementSetter
        Throws:
        java.sql.SQLException
      • toString

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