Class FormReceiptSequenceDao


public class FormReceiptSequenceDao extends AbstractDao
Provides a DAO for the FormReceiptSequence entity.
See Also:
  • Constructor Details

    • FormReceiptSequenceDao

      public FormReceiptSequenceDao()
  • Method Details

    • getFormReceiptSequenceForPk

      public FormReceiptSequence getFormReceiptSequenceForPk(Object id)
      Return the form receipt sequence with the specified OID
      Parameters:
      id - the OID
      Returns:
      the matching form receipt sequence, or null if not found
    • getFormReceiptSequence

      public FormReceiptSequence getFormReceiptSequence(Form form)
      Return the form receipt sequence for a specific form
      Parameters:
      form - the form object
      Returns:
      the matching form receipt sequence
    • getCurrentReceiptSequenceNumber

      public int getCurrentReceiptSequenceNumber(Form form)
      Return the current sequence number for the specified form. The sequence number is used during receipt generation.
      Parameters:
      form - a valid form
      Returns:
      The current receipt sequence number for the form, or 1 if no receipt sequence exists