Class InfoGeneral

    • Constructor Detail

      • InfoGeneral

        public InfoGeneral​(Frame frame,
                           boolean modal,
                           int WindowNo,
                           String value,
                           String tableName,
                           String keyColumn,
                           boolean multiSelection,
                           String whereClause)
        Detail Protected Constructor.
        Parameters:
        frame - parent
        modal - modal
        WindowNo - window no
        value - QueryValue
        tableName - table name
        keyColumn - key column (ignored)
        multiSelection - multiple selections
        whereClause - where clause
      • InfoGeneral

        public InfoGeneral​(Frame frame,
                           boolean modal,
                           int WindowNo,
                           String value,
                           String tableName,
                           String keyColumn,
                           boolean multiSelection,
                           String whereClause,
                           boolean lookup)
        Detail Protected Constructor.
        Parameters:
        frame - parent
        modal - modal
        WindowNo - window no
        value - QueryValue
        tableName - table name
        keyColumn - key column (ignored)
        multiSelection - multiple selections
        whereClause - where clause
        lookup -
    • Method Detail

      • getSQLWhere

        protected String getSQLWhere()
        Construct SQL Where Clause and define parameters. (setParameters needs to set parameters) Includes first AND
        Specified by:
        getSQLWhere in class Info
        Returns:
        where clause
      • setParameters

        protected void setParameters​(PreparedStatement pstmt,
                                     boolean forCount)
                              throws SQLException
        Set Parameters for Query. (as defined in getSQLWhere)
        Specified by:
        setParameters in class Info
        Parameters:
        pstmt - statement
        forCount - for counting records
        Throws:
        SQLException