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:
- Retrieving information from the database
- Inserting information into the database
- Author:
- Satyen Kale
-
QueryEngine()
- A constructor for the class.
-
changePassword(String, String)
- changes a password for a given user.
-
deleteEvent(String)
- deletes a whole event!!!
Use with extreme caution.
-
deleteJudge(String, String, String)
- removes a judge for a subevent
-
deleteResult(String, String, String, String)
- deletes a result tuple
-
deleteSubEvent(String, String)
- deletes a whole subevent!!!
Use with extreme caution.
-
getCapacity(String)
- returns the capacity for an event.
-
getContData(String, String)
- returns an
ContData for a Contingent
-
getEMEmail(String)
- get email ID of event manager.
-
getEMSpecPAttribs(String)
- returns a
Vector of Attribs which are required for
registration, apart from the fixed (default) attributes such as email_id,
etc.
-
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.
-
getEventDetails(String)
- returns a
EMSpecData of event details
for the given event_id
-
getEventEmailID(String, String)
- gets the email ID of an Individual/Contingent registering
for an event.
-
getEventID(String, int)
- gets the event ID for an Event Manager/SubEvent Manager.
-
getEventName(String)
- returns the event name for given event_id
-
getEventParticipants(String)
- returns a
Vector of login_id, name of flos registered
for an event.
-
getEvents()
- returns a
ResultSet of event_ids and event names
handled by the GEM
-
getEventSchedule(String)
- returns a
Vector of (subevent name, TimeInfo)
for the schedule for an entire event.
-
getIndData(String, String)
- returns an
IndData for an individual partcipant
-
getIndSEData(String, String, String)
- returns an
IndSEData object for a given individual
participant in a given subevent.
-
getJudges(String, String)
- returns a
Vector of Judge objects
for a given SubEvent.
-
getPassword(String)
- gets a password for a given userid.
-
getPending(String)
- returns a
Vector of (login_id, name) of flos whose registration
for the event is still pending approval of the event manager.
-
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.
-
getPID(String, String, boolean)
- gets a participant pid.
-
getResults(String, String)
- generates a
Vector object for the given sub-event.
-
getSEMEmail(String, String)
- get email ID of subevent manager.
-
getSEMFilledPAttribs(String, String)
- returns a
Vector of participant Attribs which are
required to be filled by the subevent manager.
-
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.
-
getSEMLogin(String, String)
- returns the SEM login id for a given SubEvent
-
getSEMSpecPAttribs(String, String)
- returns a
Vector of Attribs which are required for
participation in a subevent, apart from the fixed (default) attributes.
-
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.
-
getSubEventData(String, String)
- returns a
SubEventData object which contains data for
the specified SubEvent.
-
getSubEventEmailID(String, String, String, String)
- gets the email ID of an Individual/Team participating
in a subevent.
-
getSubEventID(String)
- returns subevent id for the given SubEvent Manager login id
-
getSubEventName(String, String)
- returns the subevent name for given subevent_id
-
getSubEventParticipants(String, String)
- returns a
Vector of login_id, name of flos participating
in a subevent.
-
getSubEvents(String)
- returns a
ResultSet of subevent_ids and subevent names
for a given event_id.
-
getTeamSEData(String, String, String)
- returns an
TeamSEData object for a given team
participant in a given subevent.
-
getTeamSize(String, String)
- returns the team size for a given subevent.
-
getUserType(String)
- find user type.
-
insertEMSpecPAttribs(String, String[], int[])
- enters extra Event Manager specified Participant attribs into
the EM_Spec_Participant_Attrib relation from an array of attribs.
-
insertEMSpecPVals(String, String, Vector)
- inserts the Participant details into EM_SPEC_PARTICIPANT_ATTRIB_VAL
This also checks if any mandatory fields are not filled.
-
insertEMSpecSEAttribs(String, String[], int[])
- enters extra Event Manager specified SE attribs into
the EM_Spec_SubEvent_Attrib relation from an array of extra attributes.
-
insertEMSpecSEVals(String, String, Vector)
- inserts the Subevent details into EM_SPEC_SUBEVENT_ATTRIB
This also checks if any mandatory fields are not filled.
-
insertEventDetails(String, EMSpecData)
-
enters event details in the Event relation
-
insertEventEntry(String, String, String, String, String, String, int)
- creates a new entry for an event in the Event table.
-
insertJudge(String, String, Judge)
- inserts a Judge for a SubEvent.
-
insertPartDefData(PartDefData)
- inserts Participant default registration data into either the
Individual or Contingent table.
-
insertResult(String, String, String, String)
- inserts a new results tuple for a given subevent.
-
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.
-
insertSEMSpecPVals(String, String, String, String, Vector)
- inserts the Participant details into SEM_SPEC_PARTICIPANT_ATTRIB_VAL.
-
insertSubEventEntry(String, String, String, String, String, String, String, int)
- creates a new entry for a subevent under an event in the SubEvent table.
-
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.
-
reorder()
- reorders the pids after a delete
-
updateEMSpecPVals(String, String, Vector)
- updates the Participant details in EM_SPEC_PARTICIPANT_ATTRIB_VAL
This also checks if any mandatory fields are not filled.
-
updateEMSpecSEVals(String, String, Vector)
- updates the Subevent details in EM_SPEC_SUBEVENT_ATTRIB
This also checks if any mandatory fields are not filled.
-
updateJudge(String, String, Judge)
- updates Judge info for a SubEvent.
-
updatePending(String, String, Vector)
- updates the pending participation of an Individual/Team in a
subevent.
-
updatePending(String, Vector)
- updates the pending registration of an Individual/Contingent.
-
updateResult(String, String, String, String, String, String)
- updates a result tuple in the Results table.
-
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.
-
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.
-
updateSubEventData(String, String, SubEventData)
- updates the SubEvent and Occurs On tables.
-
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.
QueryEngine
public QueryEngine()
- A constructor for the class. Initialises the database connection.
Creates instances of Statement, ResultSet, ResultSetMetaData classes.
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
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
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.
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.
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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.
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.
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
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.
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.
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.
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
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.
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
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.
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.
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.
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.
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.
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
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
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
reorder
public synchronized boolean reorder()
- reorders the pids after a delete
- Returns:
- true if success, false otherwise
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
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
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.
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.
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.
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.
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.
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
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
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
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
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