All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sat.QueryEngine

java.lang.Object
   |
   +----sat.QueryEngine

public class QueryEngine
extends Object
This is the implementation of the JDBC query engine. It processes the transactions to the database. It has various methods like getPassword, etc which return the appropriate info from the database. It has two basic functions:
  1. Retrieving information from the database
  2. Inserting information into the database

Author:
Satyen Kale

Constructor Index

 o QueryEngine()
A constructor for the class.

Method Index

 o changePassword(String, String)
changes a password for a given user.
 o deleteEvent(String)
deletes a whole event!!! Use with extreme caution.
 o deleteJudge(String, String, String)
removes a judge for a subevent
 o deleteResult(String, String, String, String)
deletes a result tuple
 o deleteSubEvent(String, String)
deletes a whole subevent!!! Use with extreme caution.
 o getCapacity(String)
returns the capacity for an event.
 o getContData(String, String)
returns an ContData for a Contingent
 o getEMEmail(String)
get email ID of event manager.
 o getEMSpecPAttribs(String)
returns a Vector of Attribs which are required for registration, apart from the fixed (default) attributes such as email_id, etc.
 o getEMSpecSEAttribs(String)
returns a Vector of Attribs which are required to be filled by a SubEvent Manager for a SubEvent, apart from the fixed (default) attributes such as subevent_name, venue, capacity etc.
 o getEventDetails(String)
returns a EMSpecData of event details for the given event_id
 o getEventEmailID(String, String)
gets the email ID of an Individual/Contingent registering for an event.
 o getEventID(String, int)
gets the event ID for an Event Manager/SubEvent Manager.
 o getEventName(String)
returns the event name for given event_id
 o getEventParticipants(String)
returns a Vector of login_id, name of flos registered for an event.
 o getEvents()
returns a ResultSet of event_ids and event names handled by the GEM
 o getEventSchedule(String)
returns a Vector of (subevent name, TimeInfo) for the schedule for an entire event.
 o getIndData(String, String)
returns an IndData for an individual partcipant
 o getIndSEData(String, String, String)
returns an IndSEData object for a given individual participant in a given subevent.
 o getJudges(String, String)
returns a Vector of Judge objects for a given SubEvent.
 o getPassword(String)
gets a password for a given userid.
 o getPending(String)
returns a Vector of (login_id, name) of flos whose registration for the event is still pending approval of the event manager.
 o getPending(String, String)
returns a Vector of (login_id, name) of flos whose participation in the SubEvent is still pending approval of the event manager.
 o getPID(String, String, boolean)
gets a participant pid.
 o getResults(String, String)
generates a Vector object for the given sub-event.
 o getSEMEmail(String, String)
get email ID of subevent manager.
 o getSEMFilledPAttribs(String, String)
returns a Vector of participant Attribs which are required to be filled by the subevent manager.
 o getSEMFilledPAttribVals(String, String, String, String)
returns a Vector of Attribs holding the attrib-value pairs for a given subevent, for a given Participant - only the SEM filled ones.
 o getSEMLogin(String, String)
returns the SEM login id for a given SubEvent
 o getSEMSpecPAttribs(String, String)
returns a Vector of Attribs which are required for participation in a subevent, apart from the fixed (default) attributes.
 o getSEMSpecPAttribVals(String, String, String, String)
returns a Vector of Attribs holding the attrib-value pairs for a given subevent, for a given Participant - only the Participant filled ones.
 o getSubEventData(String, String)
returns a SubEventData object which contains data for the specified SubEvent.
 o getSubEventEmailID(String, String, String, String)
gets the email ID of an Individual/Team participating in a subevent.
 o getSubEventID(String)
returns subevent id for the given SubEvent Manager login id
 o getSubEventName(String, String)
returns the subevent name for given subevent_id
 o getSubEventParticipants(String, String)
returns a Vector of login_id, name of flos participating in a subevent.
 o getSubEvents(String)
returns a ResultSet of subevent_ids and subevent names for a given event_id.
 o getTeamSEData(String, String, String)
returns an TeamSEData object for a given team participant in a given subevent.
 o getTeamSize(String, String)
returns the team size for a given subevent.
 o getUserType(String)
find user type.
 o insertEMSpecPAttribs(String, String[], int[])
enters extra Event Manager specified Participant attribs into the EM_Spec_Participant_Attrib relation from an array of attribs.
 o insertEMSpecPVals(String, String, Vector)
inserts the Participant details into EM_SPEC_PARTICIPANT_ATTRIB_VAL This also checks if any mandatory fields are not filled.
 o insertEMSpecSEAttribs(String, String[], int[])
enters extra Event Manager specified SE attribs into the EM_Spec_SubEvent_Attrib relation from an array of extra attributes.
 o insertEMSpecSEVals(String, String, Vector)
inserts the Subevent details into EM_SPEC_SUBEVENT_ATTRIB This also checks if any mandatory fields are not filled.
 o insertEventDetails(String, EMSpecData)
enters event details in the Event relation
 o insertEventEntry(String, String, String, String, String, String, int)
creates a new entry for an event in the Event table.
 o insertJudge(String, String, Judge)
inserts a Judge for a SubEvent.
 o insertPartDefData(PartDefData)
inserts Participant default registration data into either the Individual or Contingent table.
 o insertResult(String, String, String, String)
inserts a new results tuple for a given subevent.
 o insertSEMSpecPAttribs(String, String, String[], int[], int[])
enters extra SubEvent Manager specified Participant attribs into the SEM_Spec_Participant_Attrib relation from an array of attribs.
 o insertSEMSpecPVals(String, String, String, String, Vector)
inserts the Participant details into SEM_SPEC_PARTICIPANT_ATTRIB_VAL.
 o insertSubEventEntry(String, String, String, String, String, String, String, int)
creates a new entry for a subevent under an event in the SubEvent table.
 o insertTeamEntry(String, String, String, String[], String[], String, String, String)
inserts the team members for a contingent into the Team_Member, Team and Team_Member_Of tables.
 o reorder()
reorders the pids after a delete
 o updateEMSpecPVals(String, String, Vector)
updates the Participant details in EM_SPEC_PARTICIPANT_ATTRIB_VAL This also checks if any mandatory fields are not filled.
 o updateEMSpecSEVals(String, String, Vector)
updates the Subevent details in EM_SPEC_SUBEVENT_ATTRIB This also checks if any mandatory fields are not filled.
 o updateJudge(String, String, Judge)
updates Judge info for a SubEvent.
 o updatePending(String, String, Vector)
updates the pending participation of an Individual/Team in a subevent.
 o updatePending(String, Vector)
updates the pending registration of an Individual/Contingent.
 o updateResult(String, String, String, String, String, String)
updates a result tuple in the Results table.
 o updateSEMFilledPVals(String, String, String, String, Vector)
updates the SEM filled Participant details in SEM_SPEC_PARTICIPANT_ATTRIB_VAL This also checks if any mandatory fields are not filled.
 o updateSEMSpecPVals(String, String, String, String, Vector)
updates the Participant details in SEM_SPEC_PARTICIPANT_ATTRIB_VAL This also checks if any mandatory fields are not filled.
 o updateSubEventData(String, String, SubEventData)
updates the SubEvent and Occurs On tables.
 o updateTeamEntry(String, String, String, String[], String[], String, String, String)
updates the team members for a contingent in the Team_Member, Team and Team_Member_Of tables.

Constructors

 o QueryEngine
 public QueryEngine()
A constructor for the class. Initialises the database connection. Creates instances of Statement, ResultSet, ResultSetMetaData classes.

Methods

 o getPassword
 public synchronized String getPassword(String userid)
gets a password for a given userid.

Parameters:
userid - the user login id
Returns:
the password of the user
 o getEventName
 public synchronized String getEventName(String event_id)
returns the event name for given event_id

Parameters:
event_id - the ID of the event
Returns:
the name of the event
 o getEventSchedule
 public synchronized Vector getEventSchedule(String event_id)
returns a Vector of (subevent name, TimeInfo) for the schedule for an entire event.

Parameters:
event_id - the ID of the event
Returns:
a Vector of the required data.
 o getEventParticipants
 public synchronized Vector getEventParticipants(String event_id)
returns a Vector of login_id, name of flos registered for an event.

Parameters:
event_id - the ID of the event
Returns:
a Vector of the required data.
 o getSubEventParticipants
 public synchronized Vector getSubEventParticipants(String event_id,
                                                    String subevent_id)
returns a Vector of login_id, name of flos participating in a subevent.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
Returns:
a Vector of the required data.
 o getSubEventName
 public synchronized String getSubEventName(String event_id,
                                            String subevent_id)
returns the subevent name for given subevent_id

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
Returns:
the name of the subevent
 o getEventEmailID
 public synchronized String getEventEmailID(String event_id,
                                            String login_id)
gets the email ID of an Individual/Contingent registering for an event.

Parameters:
event_id - the ID of the event
login_id - the login ID
Returns:
the email ID
 o getSubEventEmailID
 public synchronized String getSubEventEmailID(String event_id,
                                               String subevent_id,
                                               String login_id,
                                               String name)
gets the email ID of an Individual/Team participating in a subevent.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
login_id - the login ID
name - the name of the participant
Returns:
the email ID
 o getEMEmail
 public synchronized String getEMEmail(String event_id)
get email ID of event manager.

Parameters:
event_id - the ID of the event
Returns:
the email ID
 o getSEMEmail
 public synchronized String getSEMEmail(String event_id,
                                        String subevent_id)
get email ID of subevent manager.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
Returns:
the email ID
 o getSEMLogin
 public synchronized String getSEMLogin(String event_id,
                                        String subevent_id)
returns the SEM login id for a given SubEvent

Parameters:
event_id - the ID of the event
subevent_id - the ID of the SubEvent
Returns:
the login ID of the subevent manager
 o getTeamSize
 public synchronized int getTeamSize(String event_id,
                                     String subevent_id)
returns the team size for a given subevent.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
Returns:
team size
 o changePassword
 public synchronized boolean changePassword(String userid,
                                            String newpass)
changes a password for a given user.

Parameters:
userid - the user login id
newpass - the new password
Returns:
true on success, false on failure
 o getCapacity
 public synchronized int getCapacity(String event_id)
returns the capacity for an event.

Parameters:
event_id - the ID of the event
Returns:
the capacity of the event
 o getPending
 public synchronized Vector getPending(String event_id)
returns a Vector of (login_id, name) of flos whose registration for the event is still pending approval of the event manager.

Parameters:
event_id - the ID of the event
Returns:
a Vector of the necessary data
 o getPending
 public synchronized Vector getPending(String event_id,
                                       String subevent_id)
returns a Vector of (login_id, name) of flos whose participation in the SubEvent is still pending approval of the event manager.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
Returns:
a Vector of the necessary data
 o getJudges
 public synchronized Vector getJudges(String event_id,
                                      String subevent_id)
returns a Vector of Judge objects for a given SubEvent.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the SubEvent
Returns:
a Vector of the Judge objects
 o getIndData
 public synchronized IndData getIndData(String event_id,
                                        String userid)
returns an IndData for an individual partcipant

Parameters:
userid - the login ID of the Individual
event_id - the id of the event
Returns:
IndData of the required info
 o getContData
 public synchronized ContData getContData(String event_id,
                                          String userid)
returns an ContData for a Contingent

Parameters:
userid - the login ID of the Contingent
event_id - the id of the event
Returns:
ContData of the required info
 o getIndSEData
 public synchronized IndSEData getIndSEData(String event_id,
                                            String subevent_id,
                                            String login_id)
returns an IndSEData object for a given individual participant in a given subevent.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
login_id - the login id of the individual
Returns:
a IndSEData object
 o getTeamSEData
 public synchronized TeamSEData getTeamSEData(String event_id,
                                              String subevent_id,
                                              String login_id)
returns an TeamSEData object for a given team participant in a given subevent.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
login_id - the login id of the Contingent
Returns:
a IndSEData object
 o getResults
 public synchronized Vector getResults(String event_id,
                                       String subevent_id) throws IllegalArgumentException
generates a Vector object for the given sub-event.

Parameters:
event_id - the ID of the event
subevent_id - the id of the subevent
Returns:
a Vector object for this subevent
 o getPID
 public synchronized int getPID(String login_id,
                                String name,
                                boolean tb)
gets a participant pid.

Parameters:
login_id - the login ID
name - the name of the participant
tb - a flag: true if team-based, false otherwise
Returns:
the pid of the participant
 o getUserType
 public synchronized int getUserType(String userid)
find user type.

Parameters:
userid - the login id
Returns:
0 for event manager
1 for subevent managers,
2 for individual user, and
3 for contingents
 o getEventID
 public synchronized String getEventID(String login_id,
                                       int type)
gets the event ID for an Event Manager/SubEvent Manager.

Parameters:
login_id - the login ID of the flo
type - 0 for Event Manager, 1 for SubEvent Manager
Returns:
the event ID
 o getSubEventID
 public synchronized String getSubEventID(String userid)
returns subevent id for the given SubEvent Manager login id

Parameters:
userid - the SubEvent Manager login id
Returns:
the SubEvent id
 o getSubEventData
 public synchronized SubEventData getSubEventData(String event_id,
                                                  String subevent_id)
returns a SubEventData object which contains data for the specified SubEvent.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the SubEvent
Returns:
a SubEventData object
 o getEMSpecPAttribs
 public synchronized Vector getEMSpecPAttribs(String event_id)
returns a Vector of Attribs which are required for registration, apart from the fixed (default) attributes such as email_id, etc.

Parameters:
event_id - the ID of the event
Returns:
a Vector of Attribs
 o getSEMFilledPAttribs
 public synchronized Vector getSEMFilledPAttribs(String event_id,
                                                 String subevent_id)
returns a Vector of participant Attribs which are required to be filled by the subevent manager.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
Returns:
a Vector of Attribs
 o getSEMFilledPAttribVals
 public synchronized Vector getSEMFilledPAttribVals(String event_id,
                                                    String subevent_id,
                                                    String login_id,
                                                    String name)
returns a Vector of Attribs holding the attrib-value pairs for a given subevent, for a given Participant - only the SEM filled ones.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
login_id - the login ID of the Individual or the Contingent
name - the name of the Participant
Returns:
a Vector of Attribs
 o getSEMSpecPAttribVals
 public synchronized Vector getSEMSpecPAttribVals(String event_id,
                                                  String subevent_id,
                                                  String login_id,
                                                  String name)
returns a Vector of Attribs holding the attrib-value pairs for a given subevent, for a given Participant - only the Participant filled ones.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
login_id - the login ID of the Individual or the Contingent
name - the name of the Participant
Returns:
a Vector of Attribs
 o getEMSpecSEAttribs
 public synchronized Vector getEMSpecSEAttribs(String event_id)
returns a Vector of Attribs which are required to be filled by a SubEvent Manager for a SubEvent, apart from the fixed (default) attributes such as subevent_name, venue, capacity etc.

Parameters:
event_id - the ID of the event
Returns:
a Vector of Attribs
 o getSEMSpecPAttribs
 public synchronized Vector getSEMSpecPAttribs(String event_id,
                                               String subevent_id)
returns a Vector of Attribs which are required for participation in a subevent, apart from the fixed (default) attributes.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent_id
Returns:
a Vector of Attribs
 o getSubEvents
 public synchronized ResultSet getSubEvents(String event_id)
returns a ResultSet of subevent_ids and subevent names for a given event_id.

Parameters:
event_id - the ID of the event
Returns:
a ResultSet containing the required info.
 o getEvents
 public synchronized ResultSet getEvents()
returns a ResultSet of event_ids and event names handled by the GEM

Returns:
a ResultSet containing the required info.
 o getEventDetails
 public synchronized EMSpecData getEventDetails(String event_id)
returns a EMSpecData of event details for the given event_id

Parameters:
event_id - the ID of the event
Returns:
a EMSpecData containing the required info.
 o insertEventDetails
 public synchronized boolean insertEventDetails(String event_id,
                                                EMSpecData esd)
enters event details in the Event relation

Parameters:
event_id - the ID of the event
esd - the data specified by the Event Manager.
Returns:
true on success, false otherwise
 o insertEMSpecSEAttribs
 public synchronized boolean insertEMSpecSEAttribs(String event_id,
                                                   String attribs[],
                                                   int mand[])
enters extra Event Manager specified SE attribs into the EM_Spec_SubEvent_Attrib relation from an array of extra attributes. This array may have empty strings after some point. The mandatory_flags are also set.

Parameters:
event_id - the ID of the event
attribs - the array of the extra attributes
mand - the array of the mandatory_flags
Returns:
true if success, false if not.
 o insertEMSpecPAttribs
 public synchronized boolean insertEMSpecPAttribs(String event_id,
                                                  String attribs[],
                                                  int mand[])
enters extra Event Manager specified Participant attribs into the EM_Spec_Participant_Attrib relation from an array of attribs. This array may have empty strings after some point. Also, the mandatory_flags are also set then.

Parameters:
event_id - the ID of the event
attribs - the array of the extra attributes
mand - the array of mandatory_flags
Returns:
true if success, false if not.
 o insertSEMSpecPAttribs
 public synchronized boolean insertSEMSpecPAttribs(String event_id,
                                                   String subevent_id,
                                                   String attribs[],
                                                   int sem_flag[],
                                                   int mand[])
enters extra SubEvent Manager specified Participant attribs into the SEM_Spec_Participant_Attrib relation from an array of attribs. This array may have empty strings after some point. For each attrib, the corresponding sem_flag array element should be 0 or 1 depending upon whether this attribute has to be filled by the SubEvent_Manager or not. Also, the mandatory_flags are also set then.

Parameters:
event_id - the ID of the event
subvent_id - the ID of the subvent
attribs - the array of the extra attributes
sem_flag - the array of flags
mand - the array of mandatory_flags
Returns:
true if success, false if not.
 o insertResult
 public synchronized boolean insertResult(String event_id,
                                          String subevent_id,
                                          String desc,
                                          String result)
inserts a new results tuple for a given subevent.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
desc - the description of the result
result - the value for the result
Returns:
true if success, false otherwise
 o insertPartDefData
 public synchronized boolean insertPartDefData(PartDefData pdd)
inserts Participant default registration data into either the Individual or Contingent table.

Parameters:
pdd - a PartDefData object
Returns:
true if success, false if not.
 o insertTeamEntry
 public synchronized boolean insertTeamEntry(String event_id,
                                             String subevent_id,
                                             String login_id,
                                             String names[],
                                             String emails[],
                                             String team_name,
                                             String name,
                                             String email)
inserts the team members for a contingent into the Team_Member, Team and Team_Member_Of tables.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
login_id - the login ID of the contingent
names - an array of the names of the team members
emails - an array of the emails of the team members
team_name - the name of the team
name - the contact name
email - the contact email ID
Returns:
true if success, false otherwise
 o insertSEMSpecPVals
 public synchronized boolean insertSEMSpecPVals(String event_id,
                                                String subevent_id,
                                                String userid,
                                                String name,
                                                Vector vec)
inserts the Participant details into SEM_SPEC_PARTICIPANT_ATTRIB_VAL. Also registers the participant for the subevent by adding an entry in the Participates_In table. This also checks if any mandatory fields are not filled.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
userid - the login ID of the Participant
name - the name of the participant, the team name if team-based
vec - A Vector of Attrib
Returns:
true if success, false if not.
 o insertEMSpecSEVals
 public synchronized boolean insertEMSpecSEVals(String event_id,
                                                String subevent_id,
                                                Vector vec)
inserts the Subevent details into EM_SPEC_SUBEVENT_ATTRIB This also checks if any mandatory fields are not filled.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
vec - A Vector of Attrib
Returns:
true if success, false if not.
 o insertEMSpecPVals
 public synchronized boolean insertEMSpecPVals(String event_id,
                                               String userid,
                                               Vector vec)
inserts the Participant details into EM_SPEC_PARTICIPANT_ATTRIB_VAL This also checks if any mandatory fields are not filled.

Parameters:
event_id - the ID of the event
userid - the login id
vec - A Vector of Attrib
Returns:
true if success, false if not.
 o insertEventEntry
 public synchronized boolean insertEventEntry(String event_id,
                                              String event_name,
                                              String em_name,
                                              String em_login,
                                              String em_passwd,
                                              String em_email,
                                              int capacity)
creates a new entry for an event in the Event table. This is to be used by the sysad to register an event. This populates the table with some junk default values.

Parameters:
event_id - the ID assigned to this event by the sysad
event_name - the name of the event
em_name - the name of the event manager for this event
em_login - the login ID of the event manager for this event
em_passwd - the password of the event manager for this event
em_email - the email ID of the event manager
capacity - the capacity constraints for this event
Returns:
true if success, false if not.
 o insertSubEventEntry
 public synchronized boolean insertSubEventEntry(String event_id,
                                                 String subevent_id,
                                                 String subevent_name,
                                                 String sem_name,
                                                 String sem_login,
                                                 String sem_passwd,
                                                 String sem_email,
                                                 int capacity)
creates a new entry for a subevent under an event in the SubEvent table. This is to be used by the Event Manager to register an event. This populates the table with some junk default values.

Parameters:
event_id - the ID assigned to the event
subevent_id - the ID assigned to this subevent by the Event Manager
subevent_name - the name of this subevent
sem_name - the name of the subevent manager for this subevent
sem_login - the login ID of this subevent manager
sem_passwd - the password of this subevent manager
sem_email - the email ID of this subevent manager
capacity - the capacity constraints for this subevent
Returns:
true if success, false if not.
 o insertJudge
 public synchronized boolean insertJudge(String event_id,
                                         String subevent_id,
                                         Judge j)
inserts a Judge for a SubEvent.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the SubEvent
j - a Judge object
Returns:
true if success, false if not
 o deleteResult
 public synchronized boolean deleteResult(String event_id,
                                          String subevent_id,
                                          String desc,
                                          String result)
deletes a result tuple

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
desc - the description of the result
result - the value for the result
Returns:
true if success, false otherwise
 o deleteEvent
 public synchronized boolean deleteEvent(String event_id)
deletes a whole event!!! Use with extreme caution. To be used by sysad wonly!!

Parameters:
event_id - the id of the event to be khatched.
Returns:
true if success, false otherwise
 o reorder
 public synchronized boolean reorder()
reorders the pids after a delete

Returns:
true if success, false otherwise
 o deleteSubEvent
 public synchronized boolean deleteSubEvent(String event_id,
                                            String subevent_id)
deletes a whole subevent!!! Use with extreme caution. To be used by event manager wonly!!

Parameters:
event_id - the id of the event
subevent_id - the ID of the subevent
Returns:
true if success, false otherwise
 o deleteJudge
 public synchronized boolean deleteJudge(String event_id,
                                         String subevent_id,
                                         String email)
removes a judge for a subevent

Parameters:
event_id - the ID of the event
subevent_id - the ID of the SubEvent
email - the email ID of the judge to be removed
Returns:
true on success, false otherwise
 o updateEMSpecSEVals
 public synchronized boolean updateEMSpecSEVals(String event_id,
                                                String subevent_id,
                                                Vector vec)
updates the Subevent details in EM_SPEC_SUBEVENT_ATTRIB This also checks if any mandatory fields are not filled.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
vec - A Vector of Attrib
Returns:
true if success, false if not.
 o updateEMSpecPVals
 public synchronized boolean updateEMSpecPVals(String event_id,
                                               String userid,
                                               Vector vec)
updates the Participant details in EM_SPEC_PARTICIPANT_ATTRIB_VAL This also checks if any mandatory fields are not filled.

Parameters:
event_id - the ID of the event
userid - the login id
vec - A Vector of Attrib
Returns:
true if success, false if not.
 o updateSEMSpecPVals
 public synchronized boolean updateSEMSpecPVals(String event_id,
                                                String subevent_id,
                                                String userid,
                                                String name,
                                                Vector vec)
updates the Participant details in SEM_SPEC_PARTICIPANT_ATTRIB_VAL This also checks if any mandatory fields are not filled.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
userid - the login ID of the Participant
name - the name of the participant, the team name if team-based
vec - A Vector of Attrib
Returns:
true if success, false if not.
 o updateSEMFilledPVals
 public synchronized boolean updateSEMFilledPVals(String event_id,
                                                  String subevent_id,
                                                  String userid,
                                                  String name,
                                                  Vector vec)
updates the SEM filled Participant details in SEM_SPEC_PARTICIPANT_ATTRIB_VAL This also checks if any mandatory fields are not filled.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
userid - the login ID of the Participant
name - the name of the participant, the team name if team-based
vec - A Vector of Attrib
Returns:
true if success, false if not.
 o updateSubEventData
 public synchronized boolean updateSubEventData(String event_id,
                                                String subevent_id,
                                                SubEventData sed)
updates the SubEvent and Occurs On tables.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
sed - a SubEventData object for this SubEvent
Returns:
true if success, false if not.
 o updateJudge
 public synchronized boolean updateJudge(String event_id,
                                         String subevent_id,
                                         Judge j)
updates Judge info for a SubEvent.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the SubEvent
j - a Judge object
Returns:
true if success, false if not
 o updatePending
 public synchronized boolean updatePending(String event_id,
                                           Vector v)
updates the pending registration of an Individual/Contingent.

Parameters:
event_id - The ID of the event
v - The Vector of registrant info
Returns:
true if success, false otherwise
 o updatePending
 public synchronized boolean updatePending(String event_id,
                                           String subevent_id,
                                           Vector v)
updates the pending participation of an Individual/Team in a subevent.

Parameters:
event_id - The ID of the event
subevent_id - the ID of the subevent
v - The Vector of registrant info
Returns:
true if success, false otherwise
 o updateResult
 public synchronized boolean updateResult(String event_id,
                                          String subevent_id,
                                          String odesc,
                                          String ores,
                                          String ndesc,
                                          String nres)
updates a result tuple in the Results table.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
odesc - the old description of the result
ores - the old value for the result
ndesc - the old description of the result
nres - the old value for the result
Returns:
true if success, false otherwise
 o updateTeamEntry
 public synchronized boolean updateTeamEntry(String event_id,
                                             String subevent_id,
                                             String login_id,
                                             String names[],
                                             String emails[],
                                             String team_name,
                                             String name,
                                             String email)
updates the team members for a contingent in the Team_Member, Team and Team_Member_Of tables.

Parameters:
event_id - the ID of the event
subevent_id - the ID of the subevent
login_id - the login ID of the contingent
names - an array of the names of the team members
emails - an array of the emails of the team members
team_name - the name of the team
name - the contact name
email - the contact email ID
Returns:
true if success, false otherwise

All Packages  Class Hierarchy  This Package  Previous  Next  Index