uk.ac.ebi.intenz.mapper
Class EnzymeReferenceMapper

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

public class EnzymeReferenceMapper
extends Object

Maps reference information to the corresponding database tables.

Version:
$Revision: 1.3 $ $Date: 2009/05/26 14:59:09 $
Author:
Michael Darsow

Constructor Summary
EnzymeReferenceMapper()
           
 
Method Summary
 void deleteAll(Long enzymeId, Connection con)
           
 void deleteCitations(List<Long> pubIds, Long enzymeId, Connection con)
          Deletes enzyme relations to publications (internally called citations).
 void deleteCitations(Long enzymeId, Connection con)
           
 void deletePublication(Long pubId, Connection con)
           
 List<Reference> find(Long enzymeId, Connection con)
          Tries to find comment information about an enzyme.
 List<Long> findPubIds(Long enzymeId, Connection con)
           
 void insert(List<Reference> references, Long enzymeId, Status status, Connection con)
          Stores the given list of references into the database.
 void insert(Reference reference, Long enzymeId, Status status, Connection con)
           
 void reload(List<Reference> references, Long enzymeId, Status status, Connection con)
           
 void update(List<Reference> references, Long enzymeId, Status status, Connection con)
           
 void update(Reference reference, Long enzymeId, Status status, Connection con)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnzymeReferenceMapper

public EnzymeReferenceMapper()
Method Detail

find

public List<Reference> find(Long enzymeId,
                            Connection con)
                     throws SQLException
Tries to find comment information about an enzyme.

Parameters:
enzymeId - Enzyme ID of entry.
con - The logical connection.
Returns:
a Vector containing Referenceinstances or null if nothing has been found.
Throws:
SQLException

findPubIds

public List<Long> findPubIds(Long enzymeId,
                             Connection con)
                      throws SQLException
Throws:
SQLException

insert

public void insert(Reference reference,
                   Long enzymeId,
                   Status status,
                   Connection con)
            throws SQLException
Throws:
SQLException

insert

public void insert(List<Reference> references,
                   Long enzymeId,
                   Status status,
                   Connection con)
            throws SQLException
Stores the given list of references into the database.

Parameters:
references - The enzyme's references.
enzymeId - The enzyme ID.
status - ...
con - ...
Throws:
SQLException

reload

public void reload(List<Reference> references,
                   Long enzymeId,
                   Status status,
                   Connection con)
            throws SQLException
Throws:
SQLException

update

public void update(Reference reference,
                   Long enzymeId,
                   Status status,
                   Connection con)
            throws SQLException
Throws:
SQLException

update

public void update(List<Reference> references,
                   Long enzymeId,
                   Status status,
                   Connection con)
            throws SQLException
Throws:
SQLException

deleteAll

public void deleteAll(Long enzymeId,
                      Connection con)
               throws SQLException
Throws:
SQLException

deleteCitations

public void deleteCitations(Long enzymeId,
                            Connection con)
                     throws SQLException
Throws:
SQLException

deleteCitations

public void deleteCitations(List<Long> pubIds,
                            Long enzymeId,
                            Connection con)
                     throws SQLException
Deletes enzyme relations to publications (internally called citations).

Parameters:
pubIds - The pub ID of the relation to be deleted.
enzymeId - The enzyme ID.
con - Database connection.
Throws:
SQLException - if any database error occurred.
NullPointerException - if any of the parameters is null.
IllegalArgumentException - if enzymeId < 1.

deletePublication

public void deletePublication(Long pubId,
                              Connection con)
                       throws SQLException
Throws:
SQLException


Copyright © 2013 EMBL-EBI. All Rights Reserved.