|
TissueInfo API 20091124110011 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.mssm.crover.tools.tissue.TissueInfoNullsJDBCImpl
public final class TissueInfoNullsJDBCImpl
Provides access to tissue information for sequences.
This interface is implemented with a JDBC-aware class that connects to a database and retrieves the requested information. The database is loaded with information with DbestParser, from the dbEst division of genbank. The following properties are obtained through CLI and alter the behaviour of this class: tissueinfo.table.null.name Name of the tiNull table. tissueinfo.column.length.ac Length of the accession code column in the tissueinfo table. tissueinfo.column.length.rawtissue Length of the tissue column in the tissueinfo table. tissueinfo.column.length.curatedtissue Length of the tissue column in the tissueinfo table. tissueinfo.column.length.organism Length of the organism column in the tissueinfo table.
| Field Summary | |
|---|---|
protected static int |
AC_COLNUM
The column index for the accession code. |
protected static int |
CTISSUE_COLNUM
The column index for the curated tissue. |
protected static int |
RTISSUE_COLNUM
The column index for the raw tissue. |
| Method Summary | |
|---|---|
void |
addInfo(String ac,
String organism,
String rawTissue,
String curatedTissue)
Add a new tissue information to TissueInfo. |
void |
begin()
Notifies this class that a batch of interaction now begin. |
void |
destroy()
Destroy all TissueInfo data and tables. |
void |
empty()
Empty TissueInfo. |
void |
end()
Notifies this class that a batch of interaction now ends. |
protected void |
finalize()
Clean up. |
String |
getCuratedTissue(String ac)
Return the tissue information associated with a sequence accession code. |
String[] |
getCuratedTissues(String[] ac)
Return the tissue information associated with a set of sequence accession codes. |
NullTissueDetails |
getDetails(String ac)
Return the tissue information associated with a sequence accession code. |
static TissueInfoNullsJDBCImpl |
getInstance()
Gets an instance of this class. |
String |
getOrganism(String ac)
Return the organism associated with a sequence accession code. |
String |
getRawTissue(String ac)
Return the tissue information associated with a sequence accession code. |
String[] |
getRawTissues(String[] ac)
Return the tissue information associated with a set of sequence accession codes. |
static void |
main(String[] args)
Main method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int AC_COLNUM
protected static final int RTISSUE_COLNUM
protected static final int CTISSUE_COLNUM
| Method Detail |
|---|
protected void finalize()
throws Throwable
finalize in class ObjectThrowable - if an Exception occurs.
public static TissueInfoNullsJDBCImpl getInstance()
throws TissueInfoNotAvailableException
TissueInfoNotAvailableException - if the database is unavailable
public void begin()
throws TissueInfoNotAvailableException
TissueInfoNotAvailableException - if the database is unavailablepublic void end()
public void destroy()
throws TissueInfoNotAvailableException
TissueInfoNotAvailableException - if the database is unavailable
public void empty()
throws TissueInfoNotAvailableException
TissueInfoNotAvailableException - if the database is unavailable
public String getRawTissue(String ac)
throws TissueInfoNotAvailableException
ac - The accession code
TissueInfoNotAvailableException - if the database is unavailable
public String getCuratedTissue(String ac)
throws TissueInfoNotAvailableException
ac - The accession code
TissueInfoNotAvailableException - if the database is unavailable
public NullTissueDetails getDetails(String ac)
throws TissueInfoNotAvailableException
ac - The accession code
TissueInfoNotAvailableException - if the database is unavailable
public String[] getRawTissues(String[] ac)
throws TissueInfoNotAvailableException
ac - The accession codes
TissueInfoNotAvailableException - if the database is unavailable
public String[] getCuratedTissues(String[] ac)
throws TissueInfoNotAvailableException
ac - The accession codes
TissueInfoNotAvailableException - if the database is unavailable
public String getOrganism(String ac)
throws TissueInfoNotAvailableException
ac - The accession code
TissueInfoNotAvailableException - if the database is unavailable
public void addInfo(String ac,
String organism,
String rawTissue,
String curatedTissue)
throws TissueInfoNotAvailableException
ac - The accession codeorganism - The organism associated with the accession coderawTissue - The raw tissue associated with the accession codecuratedTissue - The curated tissue associated with the accession
code
TissueInfoNotAvailableException - if the database is unavailablepublic static void main(String[] args)
args - The command line arguments
|
TissueInfo API 20091124110011 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||