public class EnzymeNameMapper extends Object
Constructor and Description |
---|
EnzymeNameMapper() |
Modifier and Type | Method and Description |
---|---|
void |
deleteNames(Long enzymeId,
uk.ac.ebi.intenz.domain.constants.EnzymeNameTypeConstant nameType,
Connection con) |
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeName> |
exportSibNames(Long enzymeId,
Connection con)
Exports all names which are displayed in the ENZYME view.
|
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeName> |
find(Long enzymeId,
Connection con)
Tries to find name information about an enzyme.
|
List<uk.ac.ebi.intenz.domain.enzyme.EnzymeName> |
findCommonNames(Long enzymeId,
Connection con)
Finds only the common name of an entry.
|
uk.ac.ebi.intenz.domain.enzyme.EnzymeName |
findSystematicName(Long enzymeId,
Connection con)
Finds only the systematic name of an entry.
|
void |
insert(uk.ac.ebi.intenz.domain.enzyme.EnzymeName enzymeName,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
int orderIn,
Connection con) |
void |
insertNames(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeName> names,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con) |
void |
reload(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeName> names,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.EnzymeNameTypeConstant type,
uk.ac.ebi.intenz.domain.constants.Status status,
Connection con) |
void |
update(uk.ac.ebi.intenz.domain.enzyme.EnzymeName name,
Long enzymeId,
uk.ac.ebi.intenz.domain.constants.Status status,
int orderIn,
Connection con) |
public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeName> find(Long enzymeId, Connection con) throws SQLException
enzymeId
- Enzyme ID of entry.con
- The logical connection.Vector
containing EnzymeName
instances or null
if nothing has been found.SQLException
public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeName> exportSibNames(Long enzymeId, Connection con) throws SQLException
enzymeId
- The enzyme ID used to retreive the related names.con
- The database connection.ArrayList
of names or null
if no name could be found.SQLException
- if a database error occured.NullPointerException
- if either of the parameters is null
.public List<uk.ac.ebi.intenz.domain.enzyme.EnzymeName> findCommonNames(Long enzymeId, Connection con) throws SQLException
enzymeId
- Enzyme ID of entry.con
- The logical connection.null
if nothing has been found.SQLException
public uk.ac.ebi.intenz.domain.enzyme.EnzymeName findSystematicName(Long enzymeId, Connection con) throws SQLException
enzymeId
- Enzyme ID of entry.con
- The logical connection.null
if nothing has been found.SQLException
public void update(uk.ac.ebi.intenz.domain.enzyme.EnzymeName name, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, int orderIn, Connection con) throws SQLException
SQLException
public void insertNames(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeName> names, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, Connection con) throws SQLException
SQLException
public void insert(uk.ac.ebi.intenz.domain.enzyme.EnzymeName enzymeName, Long enzymeId, uk.ac.ebi.intenz.domain.constants.Status status, int orderIn, Connection con) throws SQLException
SQLException
public void reload(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeName> names, Long enzymeId, uk.ac.ebi.intenz.domain.constants.EnzymeNameTypeConstant type, uk.ac.ebi.intenz.domain.constants.Status status, Connection con) throws SQLException
SQLException
public void deleteNames(Long enzymeId, uk.ac.ebi.intenz.domain.constants.EnzymeNameTypeConstant nameType, Connection con) throws SQLException
SQLException
Copyright © 2014 EMBL-EBI. All rights reserved.