apollo.dataadapter.chado
Class ChadoTransactionTransformer

java.lang.Object
  extended by 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
           
 
Constructor Summary
ChadoTransactionTransformer()
           
 
Method Summary
 ChadoTransaction createSrcFeatureIDTransaction(java.lang.String mapID, java.lang.String mapType)
           
 java.lang.String getPolypeptideType()
           
 void setChadoInstance(ChadoInstance instance)
           
 void setOneLevelAnnotTypes(java.util.List features)
           
 void setPolypeptideType(java.lang.String type)
           
 void setThreeLevelAnnotTypes(java.util.List features)
           
 java.util.List transform(TransactionManager transManager)
          I think the incoming List of transactions are apollo editor Transactions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

ChadoTransactionTransformer

public ChadoTransactionTransformer()
Method Detail

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)