apollo.dataadapter.chadoxml
Class ChadoTransactionXMLWriter
java.lang.Object
apollo.dataadapter.TransactionOutputAdapter
apollo.dataadapter.chadoxml.ChadoTransactionXMLWriter
public class ChadoTransactionXMLWriter
- extends TransactionOutputAdapter
This class is used to write Transaction objects to Chado transaction XML.
- Author:
- wgm
|
Field Summary |
protected static org.apache.log4j.Logger |
logger
|
|
Method Summary |
protected void |
commitTransformedTransactions(java.util.List chadoTransactions)
A subclass to this class should implement this method to provide its own behaviors. |
void |
setTarget(java.lang.Object target)
Override the super class method to check the type of the target |
void |
setTransformer(TransactionTransformer transformer)
Need to add some information from config file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.log4j.Logger logger
ChadoTransactionXMLWriter
public ChadoTransactionXMLWriter()
- Default constructor
setTarget
public void setTarget(java.lang.Object target)
- Override the super class method to check the type of the target
- Overrides:
setTarget in class TransactionOutputAdapter
- Parameters:
target - the file target. It must be a file name. This is the file name for game xml.
So it should be converted to chado transaction xml file extension.
commitTransformedTransactions
protected void commitTransformedTransactions(java.util.List chadoTransactions)
throws java.lang.Exception
- Description copied from class:
TransactionOutputAdapter
- A subclass to this class should implement this method to provide its own behaviors.
- Specified by:
commitTransformedTransactions in class TransactionOutputAdapter
- Parameters:
chadoTransactions - a list of Transaction objects transformed by transactions.
These are no longer apollo.editor.Transactions, but transactions that are specific
to the data adapter (eg ChadoTransactions)
I would argue this should be a HASA just like the transaction transformer. so
the transaction output adapter is just a generic object that gets a transformer &
a writer and just calls both - its the old HASA vs ISA i guess.
- Throws:
java.lang.Exception
setTransformer
public void setTransformer(TransactionTransformer transformer)
- Need to add some information from config file.
- Overrides:
setTransformer in class TransactionOutputAdapter