|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.tools.tissue.TissueInfo_JDBCImpl
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.name Name of the tissueinfo table. tissueinfo.column.length.ac Length of the accession code column in the tissueinfo table. tissueinfo.column.length.ac Length of the tissue column in the tissueinfo table. tissueinfo.column.length.ac Length of the organism column in the tissueinfo table.
| Field Summary | |
protected static int |
AC_COLNUM
|
static boolean |
DEBUG
|
java.lang.String |
TI_SEQ_TABLENAME
Name for table (ac,toKey) |
java.lang.String |
TI_TO_TABLENAME
Name for table (toKey, Tissue, Organism) |
java.lang.String |
TI_TOKEYID_SEQNAME
|
protected static int |
TISSUE_COLNUM
|
| Method Summary | |
void |
addInfo(java.lang.String ac,
java.lang.String tissue,
java.lang.String organism)
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()
|
TissueDetails |
getDetails(java.lang.String ac)
Return the tissue information associated with a sequence accession code. |
static TissueInfo_JDBCImpl |
getInstance()
|
java.lang.String |
getOrganism(java.lang.String ac)
Return the organism associated with a sequence accession code. |
java.lang.String |
getTissue(java.lang.String ac)
Return the tissue information associated with a sequence accession code. |
java.lang.String[] |
getTissues(java.lang.String[] ac)
Return the tissue information associated with a sequence accession code. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean DEBUG
public final java.lang.String TI_SEQ_TABLENAME
public final java.lang.String TI_TO_TABLENAME
public final java.lang.String TI_TOKEYID_SEQNAME
protected static int AC_COLNUM
protected static int TISSUE_COLNUM
| Method Detail |
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
public static TissueInfo_JDBCImpl getInstance()
throws TissueInfoNotAvailableException
TissueInfoNotAvailableException
public void begin()
throws TissueInfoNotAvailableException
begin in interface TissueInfoTissueInfoNotAvailableException
public void end()
throws TissueInfoNotAvailableException
end in interface TissueInfoTissueInfoNotAvailableException
public void destroy()
throws TissueInfoNotAvailableException
destroy in interface TissueInfoTissueInfoNotAvailableException
public void empty()
throws TissueInfoNotAvailableException
empty in interface TissueInfoTissueInfoNotAvailableException
public java.lang.String getTissue(java.lang.String ac)
throws TissueInfoNotAvailableException
getTissue in interface TissueInfoTissueInfoNotAvailableException
public TissueDetails getDetails(java.lang.String ac)
throws TissueInfoNotAvailableException
getDetails in interface TissueInfoTissueInfoNotAvailableException
public java.lang.String[] getTissues(java.lang.String[] ac)
throws TissueInfoNotAvailableException
getTissues in interface TissueInfoTissueInfoNotAvailableException
public java.lang.String getOrganism(java.lang.String ac)
throws TissueInfoNotAvailableException
getOrganism in interface TissueInfoTissueInfoNotAvailableException
public void addInfo(java.lang.String ac,
java.lang.String tissue,
java.lang.String organism)
throws TissueInfoNotAvailableException
addInfo in interface TissueInfoTissueInfoNotAvailableExceptionpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||