apollo.dataadapter.chado.jdbc
Class JDBCTransactionWriter
java.lang.Object
apollo.dataadapter.TransactionOutputAdapter
apollo.dataadapter.chado.jdbc.JDBCTransactionWriter
public class JDBCTransactionWriter
- extends TransactionOutputAdapter
This class is used to write/commit a List of ChadoTransactions
into a chado database using JDBC.
- Author:
- wgm
|
Field Summary |
protected static org.apache.log4j.Logger |
logger
|
|
Constructor Summary |
JDBCTransactionWriter(ChadoDatabase chadoDB)
|
JDBCTransactionWriter(java.lang.String dbHost,
java.lang.String dbName,
java.lang.String dbUser,
java.lang.String pwd,
int port)
This is only used by test classes, should change test classes to chado db
need template file as well which comes with db |
|
Method Summary |
protected void |
commitTransformedTransactions(java.util.List transformedTn)
This takes a list of chado transactions (not apollo transactions) and commits
them |
| 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
JDBCTransactionWriter
public JDBCTransactionWriter(java.lang.String dbHost,
java.lang.String dbName,
java.lang.String dbUser,
java.lang.String pwd,
int port)
- This is only used by test classes, should change test classes to chado db
need template file as well which comes with db
JDBCTransactionWriter
public JDBCTransactionWriter(ChadoDatabase chadoDB)
- Parameters:
chadoDB - ChadoDatabase to which changes should be written.
commitTransformedTransactions
protected void commitTransformedTransactions(java.util.List transformedTn)
throws java.lang.Exception
- This takes a list of chado transactions (not apollo transactions) and commits
them
- Specified by:
commitTransformedTransactions in class TransactionOutputAdapter
- Parameters:
transformedTn - 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