edu.jhu.tmaj.beans.manytomany
Class UsersProjectsBean

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

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

This class represents the many-to-many table UsersProjects, linking users to projects. This table allows users to have access only to certain projects in the Images application. Projects in turn are linked to ArraySlides with the ProjectsArraySlidesBean. The end effect is to limit the ArraySlides to which a user has access.

See Also:
Serialized Form

Constructor Summary
UsersProjectsBean()
           
 
Method Summary
(package private)  java.lang.String getSQL()
          Returns a SQL statement that will initialize the bean with every record in the ManyToMany table
(package private)  java.lang.String getSQL(int userID)
          Returns a SQL statement that will initialize the bean with limited records for which the user needs access
static void insertUsersProjects(int userID, int projectID)
           
 
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

UsersProjectsBean

public UsersProjectsBean()
Method Detail

getSQL

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

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

insertUsersProjects

public static void insertUsersProjects(int userID,
                                       int projectID)
                                throws java.sql.SQLException
Throws:
java.sql.SQLException