public class

VideoArchiveImpl

extends Object
implements Serializable VideoArchive JPAEntity
java.lang.Object
   ↳ vars.annotation.jpa.VideoArchiveImpl

Summary

[Expand]
Inherited Constants
From interface vars.annotation.VideoArchive
Public Constructors
VideoArchiveImpl()
Public Methods
void addVideoFrame(VideoFrame videoFrame)
VideoFrame findVideoFrameByTimeCode(String timecode)
Searches the VideoArchive and returns the first video frame with the given time code;
Collection<VideoFrame> getEmptyVideoFrames()
Empty VideoFrames are those that do not contain any observations.
Long getId()
String getName()
Get the tape number of this VideoArchive.
Object getPrimaryKey()
String getStartTimecode()
Stored in DB as a String instead of Timecode object
VideoArchiveSet getVideoArchiveSet()
List<VideoFrame> getVideoFrames()
Retrieve the videoframe collection.
void loadLazyRelations()
void removeVideoFrame(VideoFrame videoFrame)
void setId(Long id)
void setName(String videoArchiveName)
Set the tape number of this VideoArchive using the specified Integer.
void setStartTimecode(String timecode)
The timecode is stored in DB as a String instead of Timecode object - Castor uses this method for O/R.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface vars.ILazy
From interface vars.VARSObject
From interface vars.annotation.VideoArchive
From interface vars.jpa.JPAEntity

Public Constructors

public VideoArchiveImpl ()

Public Methods

public void addVideoFrame (VideoFrame videoFrame)

public VideoFrame findVideoFrameByTimeCode (String timecode)

Searches the VideoArchive and returns the first video frame with the given time code;

Parameters
timecode A String in the format of HH:MM:SS:FF
Returns
  • The VideoFrame with a timecode that matches the argument. If no matches are found null is returned. If multiple matches exist the first one found is returned.

public Collection<VideoFrame> getEmptyVideoFrames ()

Empty VideoFrames are those that do not contain any observations. In general, this method isn't really needed. However, when reading vif files, occasionally an empty one escapes through. This finds thes errant beasts and returns references to them.

Returns
  • A collection of VideoFrames that do not contain any observations. The collection will be empty if no empty VideoFrames were found.

public Long getId ()

public String getName ()

Get the tape number of this VideoArchive.

Returns
  • The integer tape number.

public Object getPrimaryKey ()

public String getStartTimecode ()

Stored in DB as a String instead of Timecode object

public VideoArchiveSet getVideoArchiveSet ()

public List<VideoFrame> getVideoFrames ()

Retrieve the videoframe collection. Note: This can result in a database access if the VideoArchive has been persisted and retrieved from the database. Do not add or remove items directly from this collections.

Returns
  • A synchronized collection.

public void loadLazyRelations ()

public void removeVideoFrame (VideoFrame videoFrame)

public void setId (Long id)

public void setName (String videoArchiveName)

Set the tape number of this VideoArchive using the specified Integer.

Parameters
videoArchiveName An Integer tape number for this VideoArchive.

public void setStartTimecode (String timecode)

The timecode is stored in DB as a String instead of Timecode object - Castor uses this method for O/R. Developers should use setTimeCode instead of this method.

public String toString ()