apollo.editor
Class UpdateParentTransaction

java.lang.Object
  extended by apollo.editor.Transaction
      extended by apollo.editor.CompoundTransaction
          extended by apollo.editor.UpdateParentTransaction
All Implemented Interfaces:
java.io.Serializable

public class UpdateParentTransaction
extends CompoundTransaction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class apollo.editor.CompoundTransaction
logger
 
Fields inherited from class apollo.editor.Transaction
author, date, NEW, newProperties, OLD, oldProperties
 
Constructor Summary
UpdateParentTransaction(java.lang.Object src, SeqFeatureI child, SeqFeatureI oldParent, SeqFeatureI newParent)
           
 
Method Summary
protected  boolean flattenOnAddingToCompTrans()
          Returns false.
 boolean hasCompoundType()
           
 boolean isUpdateParent()
           
 java.lang.String oneLineSummary()
          Short (one-line) summary of the object; concise alternative to toString() that displays every instance variable set in one of the constructors, plus date and author.
 java.lang.String toString()
           
 
Methods inherited from class apollo.editor.CompoundTransaction
addTransaction, addTransaction, generateAnnotationChangeEvent, getCompoundTypeString, getLeafTransactions, getNewSplitFeature, getTransaction, getTransactions, isCompound, isMerge, isSplit, removeTransaction, setSource, size
 
Methods inherited from class apollo.editor.Transaction
addProperty, generateAnnotationChangeEvent, generateUndoChangeEvent, getAuthor, getClassString, getDate, getDeletedFeature, getNewId, getNewSubpartValue, getObjectClass, getOldComment, getOldId, getOldString, getOldSubpartValue, getOperation, getOperationString, getParentFeature, getParentFeatureClone, getParentTransaction, getProperty, getRank, getSeqFeature, getSeqFeatureClone, getSubpart, getSubpartRank, getSubpartString, hasKids, hasParentTransaction, isAdd, isAddPeptide, isDelete, isUpdate, setAuthor, setDate, setDate, setNewId, setNewSubpartValue, setObjectClass, setOldId, setOldSubpartValue, setOperation, setOperation, setParentFeature, setRank, setSeqFeature, setSubpart, setSubpartRank, subpartIsString, toString, updateClonedTranscriptIdsAndNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateParentTransaction

public UpdateParentTransaction(java.lang.Object src,
                               SeqFeatureI child,
                               SeqFeatureI oldParent,
                               SeqFeatureI newParent)
Method Detail

hasCompoundType

public boolean hasCompoundType()
Overrides:
hasCompoundType in class CompoundTransaction

isUpdateParent

public boolean isUpdateParent()
Overrides:
isUpdateParent in class Transaction

toString

public java.lang.String toString()
Overrides:
toString in class CompoundTransaction

flattenOnAddingToCompTrans

protected boolean flattenOnAddingToCompTrans()
Returns false. this means dont flatten out this transactions when adding it as a child to another compound transactions, which is the default. in other words preserve this comp trans in the comp trans heirarchy.

Overrides:
flattenOnAddingToCompTrans in class CompoundTransaction

oneLineSummary

public java.lang.String oneLineSummary()
Short (one-line) summary of the object; concise alternative to toString() that displays every instance variable set in one of the constructors, plus date and author.

Overrides:
oneLineSummary in class CompoundTransaction