Package ru.bgcrm.dao

Class CommonDAO.RecordUpdater<T extends Id>

  • Enclosing class:
    CommonDAO

    protected abstract class CommonDAO.RecordUpdater<T extends Id>
    extends java.lang.Object
    • Constructor Detail

      • RecordUpdater

        protected RecordUpdater()
    • Method Detail

      • getInsertQuery

        public abstract java.lang.String getInsertQuery()
                                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getUpdateQuery

        public Pair<java.lang.String,​java.lang.Integer> getUpdateQuery()
                                                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • fillCommonFields

        public abstract void fillCommonFields​(T record,
                                              java.sql.PreparedStatement ps)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException