edu.jhu.tmaj.beans.manytomany
Class UsersArrayBlocksBean

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

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

Represents the UsersArrayBlocks table, a many-to-many table that links users to ArrayBlocks. This table allows users to be restricted to selected ArrayBlocks when designing an ArrayBlock in the ArrayBuilder application.

See Also:
Serialized Form

Constructor Summary
UsersArrayBlocksBean()
           
 
Method Summary
 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
static void insertUsersArrayBlocks(int userID, int arrayBlockID)
           
 
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

UsersArrayBlocksBean

public UsersArrayBlocksBean()
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

insertUsersArrayBlocks

public static void insertUsersArrayBlocks(int userID,
                                          int arrayBlockID)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException