public interface

VideoArchiveDAO

implements DAO
vars.annotation.VideoArchiveDAO
Known Indirect Subclasses

Class Overview

Created by IntelliJ IDEA. User: brian Date: Aug 7, 2009 Time: 2:38:18 PM To change this template use File | Settings | File Templates.

Summary

Public Methods
abstract VideoArchive deleteEmptyVideoFrames(VideoArchive videoArchive)
Removes VideoFrames that do not contain observations.
abstract Set<String> findAllLinkValues(VideoArchive videoArchive, String linkName)
Return all reference numbers in the current videoArchive.
abstract Set<String> findAllLinkValues(VideoArchive videoArchive, String linkName, Concept concept)
Return all linkValues in the current videoArchive for a given concept and linkName.
abstract VideoArchive findByName(String name)
Lookup a @link{IVideoArchive} by name.
abstract VideoArchive findByPrimaryKey(Object primaryKey)
abstract VideoArchive findOrCreateByParameters(String platform, int sequenceNumber, String videoArchiveName)
Looks up the @link{IVideoArchive} by name.
[Expand]
Inherited Methods
From interface vars.DAO

Public Methods

public abstract VideoArchive deleteEmptyVideoFrames (VideoArchive videoArchive)

Removes VideoFrames that do not contain observations.

Returns
  • The updated VideoArchive

public abstract Set<String> findAllLinkValues (VideoArchive videoArchive, String linkName)

Return all reference numbers in the current videoArchive. The reference number is found in Association with the 'linkName | toConcept | linkValue' of 'identity-reference | self | [integer]' where integer is a value egual to or greater than 0. This is used so that the UI can list the existing reference numbers for users to select from.

Parameters
videoArchive The videoArchive of interest. This find will search all annotation in this video archive
linkName The linkValue in the associations to search for
Returns
  • A collection of String objects

public abstract Set<String> findAllLinkValues (VideoArchive videoArchive, String linkName, Concept concept)

Return all linkValues in the current videoArchive for a given concept and linkName. For example to find all reference numbers in a videoArchive: The reference number is found in Association with the 'linkName | toConcept | linkValue' of 'identity-reference | self | [integer]' where integer is a value egual to or greater than 0. This is used so that the UI can list the existing reference numbers for users to select from.

Parameters
videoArchive The videoArchive of interest. This find will search all annotation in this video archive
linkName The name of links to match
concept If not null then only the linkvalues found for associations to this concept are returned
Returns
  • A collection (SortedSet) of String objects

public abstract VideoArchive findByName (String name)

Lookup a @link{IVideoArchive} by name.

Returns
  • The matching object. null is returned if no match exists

public abstract VideoArchive findByPrimaryKey (Object primaryKey)

public abstract VideoArchive findOrCreateByParameters (String platform, int sequenceNumber, String videoArchiveName)

Looks up the @link{IVideoArchive} by name. If no match is found a new one is created and returned.