|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.bio.dataconversion.ChadoProcessor
public abstract class ChadoProcessor
A processor for a chado module. See http://www.gmod.org/wiki/index.php/Chado#Modules for documentation about the possible modules.
| Constructor Summary | |
|---|---|
ChadoProcessor(ChadoDBConverter chadoDBConverter)
Create a new ChadoModuleProcessor object. |
|
| Method Summary | |
|---|---|
ChadoDBConverter |
getChadoDBConverter()
Return the ChadoDBConverter that was passed to the constructor. |
Database |
getDatabase()
Return the database to read from |
ItemWriter |
getItemWriter()
Return an ItemWriter used to handle the resultant Items |
Model |
getModel()
Return the Model of the target database. |
abstract void |
process(java.sql.Connection connection)
Do the processing for this module - called by ChadoDBConverter. |
protected void |
setAttribute(java.lang.Integer intermineObjectId,
java.lang.String attributeName,
java.lang.String value)
Set an attribute in an Item by creating an Attribute object and storing it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChadoProcessor(ChadoDBConverter chadoDBConverter)
chadoDBConverter - the converter that created this Processor| Method Detail |
|---|
public ChadoDBConverter getChadoDBConverter()
public Database getDatabase()
public ItemWriter getItemWriter()
public Model getModel()
public abstract void process(java.sql.Connection connection)
throws java.lang.Exception
connection - the database connection to chado
java.lang.Exception - if the is a problem while processing
protected void setAttribute(java.lang.Integer intermineObjectId,
java.lang.String attributeName,
java.lang.String value)
throws ObjectStoreException
intermineObjectId - the intermine object ID of the item to create this attribute for.attributeName - the attribute namevalue - the value to set
ObjectStoreException - if there is a problem while storing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||