uk.ac.ebi.intenz.mapper
Class HistoryEventMapper

java.lang.Object
  extended by uk.ac.ebi.intenz.mapper.HistoryEventMapper

public class HistoryEventMapper
extends Object


Constructor Summary
HistoryEventMapper()
           
 
Method Summary
 void insertEvent(Event event, Long beforeId, Long afterId, String note, Connection con)
           
 void updateEvent(int eventId, int groupId, String newNote, Integer beforeId, Integer afterId, Connection con)
          Modifies an event in the history.
 void updateEventNote(int eventId, int groupId, String newNote, Connection con)
          Updates the note for an event in the history.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryEventMapper

public HistoryEventMapper()
Method Detail

insertEvent

public void insertEvent(Event event,
                        Long beforeId,
                        Long afterId,
                        String note,
                        Connection con)
                 throws SQLException
Throws:
SQLException

updateEventNote

public void updateEventNote(int eventId,
                            int groupId,
                            String newNote,
                            Connection con)
                     throws SQLException
Updates the note for an event in the history.

Parameters:
eventId - the ID of the event.
groupId - the ID of the event group.
newNote - the new note for the event.
con - a database connection.
Throws:
SQLException

updateEvent

public void updateEvent(int eventId,
                        int groupId,
                        String newNote,
                        Integer beforeId,
                        Integer afterId,
                        Connection con)
                 throws SQLException
Modifies an event in the history.

Parameters:
eventId - the event ID.
groupId - the event group ID.
newNote - the new history note.
beforeId - the ID of the enzyme before the event.
afterId - the ID of the enzyme after the event.
con - a database connection.
Throws:
SQLException


Copyright © 2013 EMBL-EBI. All Rights Reserved.