Class VersionAttachmentDao


public class VersionAttachmentDao extends AbstractDao
Provides a template VersionAttachment data access object.
  • Constructor Details

    • VersionAttachmentDao

      public VersionAttachmentDao()
  • Method Details

    • getVersionAttachmentForPK

      public VersionAttachment getVersionAttachmentForPK(Object id)
      Return the version attachment for the specified primary key.
      Parameters:
      id - the version attachment PK
      Returns:
      the version attachment
    • getTemplateVersionAttachments

      public List<VersionAttachment> getTemplateVersionAttachments(Object templateVersionId)
      Return the version attachment list for the given template version.
      Parameters:
      templateVersionId - the template version id
      Returns:
      the list of version attachments
    • getCachedVersionAttachments

      public List<VersionAttachment> getCachedVersionAttachments(TemplateVersion version)
      Return the version attachment list for the given form version.
      Parameters:
      version - the template version
      Returns:
      the list of version attachments
      Since:
      5.1.0
    • getVersionAttachments

      public List<VersionAttachment> getVersionAttachments(TemplateVersion version)
      Return the version attachment list for the given form version.
      Parameters:
      version - the template version
      Returns:
      the list of version attachments
    • getVersionAttachmentByName

      public VersionAttachment getVersionAttachmentByName(TemplateVersion templateVersion, String name)
      Return the version attachment for the given form version and attachment name.
      Parameters:
      templateVersion - the form template version
      name - the version attachment name
      Returns:
      the version attachment for the given form version and attachment name
      Since:
      3.6.0