Package ru.bgcrm.dao

Class ConfigDAO

    • Field Detail

      • TABLE_CONFIG_GLOBAL

        public static final java.lang.String TABLE_CONFIG_GLOBAL
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConfigDAO

        public ConfigDAO​(java.sql.Connection con)
      • ConfigDAO

        public ConfigDAO​(java.sql.Connection con,
                         java.lang.String tableName)
        Used only in address editor, clean up later.
        Parameters:
        con -
        tableName -
    • Method Detail

      • searchGlobalConfigList

        public void searchGlobalConfigList​(SearchResult<Config> searchResult,
                                           java.util.Set<java.lang.Integer> allowedConfigIds,
                                           java.lang.String filterLike)
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getGlobalConfig

        public Config getGlobalConfig​(int id)
                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getActiveGlobalConfig

        public Config getActiveGlobalConfig()
                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • setActiveGlobalConfig

        public void setActiveGlobalConfig​(int id)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateGlobalConfig

        public void updateGlobalConfig​(Config config)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • deleteGlobalConfig

        public void deleteGlobalConfig​(int id)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getConfigRecordList

        public java.util.List<ConfigRecord> getConfigRecordList​(java.lang.String tableId,
                                                                int recordId)
                                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getConfigRecordMap

        public java.util.Map<java.lang.String,​java.lang.String> getConfigRecordMap​(java.lang.String tableId,
                                                                                         int recordId)
                                                                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateConfigForRecord

        public void updateConfigForRecord​(java.lang.String tableId,
                                          int recordId,
                                          java.util.Map<java.lang.String,​java.lang.String> config)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateConfigForRecord

        public void updateConfigForRecord​(java.lang.String tableId,
                                          int recordId,
                                          java.util.List<ConfigRecord> config)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException