Class VersionMetadataValueDao

    • Constructor Detail

      • VersionMetadataValueDao

        public VersionMetadataValueDao()
    • Method Detail

      • getVersionMetadataValueFromPk

        public VersionMetadataValue getVersionMetadataValueFromPk​(Object id)
        Return the VersionMetadataValue object with the given OID
        Parameters:
        id - the OID
        Returns:
        the matching VersionMetadataValue object, or null if none was found
      • getVersionMetadataValue

        public VersionMetadataValue getVersionMetadataValue​(TemplateVersion version,
                                                            String tagName)
        Return the VersionMetadataValue object for the given template version and metadata tag name
        Parameters:
        version - the non-null template version
        tagName - a valid metadata tag name
        Returns:
        the matching VersionMetadataValue, or null if none were found
      • getMetadataValue

        public String getMetadataValue​(TemplateVersion version,
                                       String tagName)
        Return the value of a metadata tag for the given template version
        Parameters:
        version - the non-null template version
        tagName - a valid tag name
        Returns:
        the metadata value for the version, or null if none was found
      • getMetadataValues

        public List<VersionMetadataValue> getMetadataValues​(Object templateVersionId)
        Return the list of metadata values for a form and template version
        Parameters:
        templateVersionId - the template version OID (required)
        Returns:
        the list of metadata values for the given form and template version