Class RecentSQLStatementsHandler<M>

    • Field Detail

      • RECENTSTATEMENTS_COUNT

        public static final String RECENTSTATEMENTS_COUNT
        the property for storing the number of recent statements.
        See Also:
        Constant Field Values
      • RECENTSTATEMENTS_PREFIX

        public static final String RECENTSTATEMENTS_PREFIX
        the property prefix for a recent statement.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RecentSQLStatementsHandler

        public RecentSQLStatementsHandler​(String propsFile,
                                          M menu)
        Initializes the handler with a maximum of 5 items.
        Parameters:
        propsFile - the props file to store the files in
        menu - the menu to add the recent files as subitems to
      • RecentSQLStatementsHandler

        public RecentSQLStatementsHandler​(String propsFile,
                                          int maxCount,
                                          M menu)
        Initializes the handler.
        Parameters:
        propsFile - the props file to store the files in
        maxCount - the maximum number of files to keep in menu
        menu - the menu to add the recent files as subitems to
      • RecentSQLStatementsHandler

        public RecentSQLStatementsHandler​(String propsFile,
                                          String propPrefix,
                                          int maxCount,
                                          M menu)
        Initializes the handler.
        Parameters:
        propsFile - the props file to store the files in
        propPrefix - the properties prefix, use null to ignore
        maxCount - the maximum number of files to keep in menu
        menu - the menu to add the recent files as subitems to