edu.jhu.tmaj.beans.manytomany
Class ProjectsArraySlidesBean

java.lang.Object
  extended by edu.jhu.tmaj.beans.manytomany.ManyToManyBean
      extended by edu.jhu.tmaj.beans.manytomany.ProjectsArraySlidesBean
All Implemented Interfaces:
java.io.Serializable

public final class ProjectsArraySlidesBean
extends ManyToManyBean
implements java.io.Serializable

Represents the ProjectsArraySlides table, a many-to-many table that links Projects to ArraySlides.

See Also:
Serialized Form

Constructor Summary
ProjectsArraySlidesBean()
           
 
Method Summary
 java.util.Set<java.lang.Integer> getArraySlidesForProject(int projectID)
          Returns a Set of ArraySlideIDs of ArraySlides that are in the given project.
 java.lang.String getSQL()
          Returns a SQL statement that will initialize the bean with every record in the ManyToMany table
 java.lang.String getSQL(int userID)
          Returns a SQL statement that will initialize the bean with limited records for which the user needs access
 boolean isArraySlideInAnyProject(int arraySlideID)
          Returns true if the given ArraySlide has been assigned to one or more projects.
 
Methods inherited from class edu.jhu.tmaj.beans.manytomany.ManyToManyBean
getAllKey1s, getAllKey2s, getKeySetForKey, initialize, initialize, setKeySet, syncDatabase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectsArraySlidesBean

public ProjectsArraySlidesBean()
Method Detail

getSQL

public java.lang.String getSQL(int userID)
Description copied from class: ManyToManyBean
Returns a SQL statement that will initialize the bean with limited records for which the user needs access

Specified by:
getSQL in class ManyToManyBean

getSQL

public java.lang.String getSQL()
Description copied from class: ManyToManyBean
Returns a SQL statement that will initialize the bean with every record in the ManyToMany table

Specified by:
getSQL in class ManyToManyBean

getArraySlidesForProject

public java.util.Set<java.lang.Integer> getArraySlidesForProject(int projectID)
Returns a Set of ArraySlideIDs of ArraySlides that are in the given project.


isArraySlideInAnyProject

public boolean isArraySlideInAnyProject(int arraySlideID)
Returns true if the given ArraySlide has been assigned to one or more projects.