|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.intenz.mapper.EnzymeReferenceMapper
public class EnzymeReferenceMapper
Maps reference information to the corresponding database tables.
| 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 |
|---|
public EnzymeReferenceMapper()
| Method Detail |
|---|
public List<Reference> find(Long enzymeId,
Connection con)
throws SQLException
enzymeId - Enzyme ID of entry.con - The logical connection.
Vector containing Referenceinstances or null if nothing has been found.
SQLException
public List<Long> findPubIds(Long enzymeId,
Connection con)
throws SQLException
SQLException
public void insert(Reference reference,
Long enzymeId,
Status status,
Connection con)
throws SQLException
SQLException
public void insert(List<Reference> references,
Long enzymeId,
Status status,
Connection con)
throws SQLException
references - The enzyme's references.enzymeId - The enzyme ID.status - ...con - ...
SQLException
public void reload(List<Reference> references,
Long enzymeId,
Status status,
Connection con)
throws SQLException
SQLException
public void update(Reference reference,
Long enzymeId,
Status status,
Connection con)
throws SQLException
SQLException
public void update(List<Reference> references,
Long enzymeId,
Status status,
Connection con)
throws SQLException
SQLException
public void deleteAll(Long enzymeId,
Connection con)
throws SQLException
SQLException
public void deleteCitations(Long enzymeId,
Connection con)
throws SQLException
SQLException
public void deleteCitations(List<Long> pubIds,
Long enzymeId,
Connection con)
throws SQLException
pubIds - The pub ID of the relation to be deleted.enzymeId - The enzyme ID.con - Database connection.
SQLException - if any database error occurred.
NullPointerException - if any of the parameters is null.
IllegalArgumentException - if enzymeId < 1.
public void deletePublication(Long pubId,
Connection con)
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||