|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.dataadapter.TransactionOutputAdapter
public abstract class TransactionOutputAdapter
A class used to handle Transaction objects output.
| Field Summary | |
|---|---|
protected java.lang.String |
mapID
|
protected java.lang.String |
mapType
|
protected java.lang.Object |
target
|
protected TransactionTransformer |
transformer
|
| Constructor Summary | |
|---|---|
TransactionOutputAdapter()
|
|
| Method Summary | |
|---|---|
void |
commitTransactions(TransactionManager transManager)
The client to this class should call this method to commit (save or write changes to the database) transactions. |
protected abstract void |
commitTransformedTransactions(java.util.List transformedTn)
A subclass to this class should implement this method to provide its own behaviors. |
java.lang.String |
getMapID()
|
java.lang.String |
getMapType()
|
java.lang.Object |
getTarget()
|
TransactionTransformer |
getTransformer()
|
void |
setMapID(java.lang.String mapID)
Set the id for map_position. |
void |
setMapType(java.lang.String type)
Set the type used for map_position. |
void |
setTarget(java.lang.Object target)
Set the output target for Transaction objects. |
void |
setTransformer(TransactionTransformer transformer)
Set the TransactionTransformer to be used to transform Apollo Transaction objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TransactionTransformer transformer
protected java.lang.Object target
protected java.lang.String mapID
protected java.lang.String mapType
| Constructor Detail |
|---|
public TransactionOutputAdapter()
| Method Detail |
|---|
public java.lang.String getMapID()
public void setMapID(java.lang.String mapID)
mapID - The mapID to set.public java.lang.String getMapType()
public void setMapType(java.lang.String type)
type - The type to set.public void setTransformer(TransactionTransformer transformer)
transformer - public TransactionTransformer getTransformer()
public void setTarget(java.lang.Object target)
target - public java.lang.Object getTarget()
public void commitTransactions(TransactionManager transManager)
throws java.lang.Exception
transctions -
java.lang.Exception
protected abstract void commitTransformedTransactions(java.util.List transformedTn)
throws java.lang.Exception
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.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||