apollo.dataadapter.chado
Class ChadoTransactionTransformer
java.lang.Object
apollo.dataadapter.chado.ChadoTransactionTransformer
- All Implemented Interfaces:
- TransactionTransformer
public class ChadoTransactionTransformer
- extends java.lang.Object
- implements TransactionTransformer
This class is used to translate Apollo Transaction objects to Chado Transaction
objects.
- Author:
- wgm
|
Field Summary |
protected static org.apache.log4j.Logger |
logger
|
| 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
ChadoTransactionTransformer
public ChadoTransactionTransformer()
transform
public java.util.List transform(TransactionManager transManager)
throws TransactionTransformException
- I think the incoming List of transactions are apollo editor Transactions.
These are transformed and the returned List is a list of Chado Transactions.
This does not deal with CompoundTransactions. TransactionManager.coalesce
flattens out compounds so we shouldnt see them here. If that changes then
they need to be dealt with here.
- Specified by:
transform in interface TransactionTransformer
- Throws:
TransactionTransformException
setChadoInstance
public void setChadoInstance(ChadoInstance instance)
getPolypeptideType
public java.lang.String getPolypeptideType()
setPolypeptideType
public void setPolypeptideType(java.lang.String type)
createSrcFeatureIDTransaction
public ChadoTransaction createSrcFeatureIDTransaction(java.lang.String mapID,
java.lang.String mapType)
setOneLevelAnnotTypes
public void setOneLevelAnnotTypes(java.util.List features)
setThreeLevelAnnotTypes
public void setThreeLevelAnnotTypes(java.util.List features)