public class

VideoArchiveSetDAOImpl

extends DAO
implements VideoArchiveSetDAO
java.lang.Object
   ↳ vars.jpa.DAO
     ↳ vars.annotation.jpa.VideoArchiveSetDAOImpl

Summary

[Expand]
Inherited Fields
From class vars.jpa.DAO
Public Constructors
VideoArchiveSetDAOImpl(EntityManager entityManager, AnnotationFactory annotationFactory)
Public Methods
Collection<VideoArchiveSet> findAll()
Collection<VideoArchiveSet> findAllBetweenDates(Date startDate, Date endDate)
Collection<VideoArchiveSet> findAllByPlatform(String platform)
Collection<VideoArchiveSet> findAllByPlatformAndSequenceNumber(String platform, int sequenceNumber)
Collection<VideoArchiveSet> findAllByPlatformAndTrackingNumber(String platform, String trackingNumber)
Collection<VideoArchiveSet> findAllByTrackingNumber(String trackingNumber)
Set<String> findAllLinkValues(VideoArchiveSet videoArchiveSet, String linkName)
Set<String> findAllLinkValues(VideoArchiveSet videoArchiveSet, String linkName, Concept concept)
Set<Integer> findAllSequenceNumbersByPlatformName(String platformName)
Find all sequence numbers (e.g.
Collection<VideoArchiveSet> findAllThatDuplicatePlatformAndSequenceNumber()
Find all videoarchivesets that duplicate platform and sequence numbers
Collection<VideoArchiveSet> findAllWithMissingCameraDeployments()
Looks up all VideoArchiveSets that do not havea cameradeployment associated with them
Collection<VideoArchiveSet> findAllWithMultipleCameraDeployments()
Collection<VideoArchiveSet> findAllWithNoChiefScientist()
Collection<VideoArchiveSet> findAllWithoutDates()
Look up VideoArchiveSets without startDate or endDate values
Collection<VideoArchiveSet> findAllWithoutTrackingNumber()
VideoArchiveSet findByPrimaryKey(Object primaryKey)
Integer findVideoFrameCountByPrimaryKey(Object primaryKey)
This should be alled within a JPA/DAO transaction
[Expand]
Inherited Methods
From class vars.jpa.DAO
From class java.lang.Object
From interface vars.DAO
From interface vars.annotation.VideoArchiveSetDAO
From interface vars.jpa.EntityManagerAspect

Public Constructors

public VideoArchiveSetDAOImpl (EntityManager entityManager, AnnotationFactory annotationFactory)

Public Methods

public Collection<VideoArchiveSet> findAll ()

public Collection<VideoArchiveSet> findAllBetweenDates (Date startDate, Date endDate)

public Collection<VideoArchiveSet> findAllByPlatform (String platform)

public Collection<VideoArchiveSet> findAllByPlatformAndSequenceNumber (String platform, int sequenceNumber)

public Collection<VideoArchiveSet> findAllByPlatformAndTrackingNumber (String platform, String trackingNumber)

public Collection<VideoArchiveSet> findAllByTrackingNumber (String trackingNumber)

public Set<String> findAllLinkValues (VideoArchiveSet videoArchiveSet, String linkName)

public Set<String> findAllLinkValues (VideoArchiveSet videoArchiveSet, String linkName, Concept concept)

public Set<Integer> findAllSequenceNumbersByPlatformName (String platformName)

Find all sequence numbers (e.g. dive numbers) available for a particular platform

Parameters
platformName The platform of interest
Returns
  • A set of all dive numbers in the database for a given platform. An empty set is returned if no numbers are found.

public Collection<VideoArchiveSet> findAllThatDuplicatePlatformAndSequenceNumber ()

Find all videoarchivesets that duplicate platform and sequence numbers

public Collection<VideoArchiveSet> findAllWithMissingCameraDeployments ()

Looks up all VideoArchiveSets that do not havea cameradeployment associated with them

public Collection<VideoArchiveSet> findAllWithMultipleCameraDeployments ()

public Collection<VideoArchiveSet> findAllWithNoChiefScientist ()

public Collection<VideoArchiveSet> findAllWithoutDates ()

Look up VideoArchiveSets without startDate or endDate values

Returns
  • VideoArchiveSets that are missing startDate or endDate values

public Collection<VideoArchiveSet> findAllWithoutTrackingNumber ()

public VideoArchiveSet findByPrimaryKey (Object primaryKey)

public Integer findVideoFrameCountByPrimaryKey (Object primaryKey)

This should be alled within a JPA/DAO transaction

Parameters
primaryKey The VideoArchiveSets primary key
Returns
  • A count of videoframes contained by this videoarchiveset