|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sigpath.adapter.ReactionAdapterImpl
public class ReactionAdapterImpl
Adapter class for creating a new Reaction and storing it to the database.
Reaction| Constructor Summary | |
|---|---|
ReactionAdapterImpl(SigPathEntity spe,
SPDBManager spdbm,
ValidationErrors ve,
String substrateSpid,
String productSpid)
substrateSpid and productSpid can be null |
|
ReactionAdapterImpl(String spid,
SPDBManager spdbm,
ValidationErrors ve)
|
|
ReactionAdapterImpl(ValidationErrors ve)
Deprecated. Use the DBTask framework instead. Adapters will be dropped form SigPath in the near future. |
|
| Method Summary | |
|---|---|
void |
addComplextoRight(String name,
String[] spids,
boolean isSubstrate,
boolean isProduct)
Add a new complex to the right-hand side of the reaction. |
void |
addInteractionSite(String spid,
String sites)
Adds the interaction sites for the BioPolymer specified via a unique SPID. |
void |
addLiteratureReference(String pubMedID)
Add a new PubMed ID. |
void |
addLiteratureReferenceNote(String _publicationNote)
Add a new Publication Note. |
void |
addModifiedChemicalToRight(String spid,
String name,
String type,
boolean isSubstrate,
boolean isProduct)
Add a new modified chemical to the right-hand side of the reaction. |
void |
addMoleculeToLeft(String spid,
String sites,
boolean isSubstrate,
boolean isProduct)
Add a new chemical to the left-hand side of the reaction. |
void |
addMoleculeToRight(String spid,
String sites,
boolean isSubstrate,
boolean isProduct)
Add a new chemical to the right-hand side of the reaction. |
void |
close()
Use this to close the adapter and free resources. |
Date |
getDateLastModified()
|
Date |
getDateSubmitted()
|
String |
getDescription()
|
String |
getInteractionSite(String spid)
Gets the interaction site for the BioPolymer specified via a unique SPID. |
Parameter |
getKBackward()
Get the backward rate of the reaction. |
Parameter |
getKForward()
Get the forward rate of the reaction. |
LiteratureReferences |
getLiteratureReferences()
Get collection of literature references. |
Collection |
getMoleculesOnLeft()
Returns a Collection of MoleculeDisplay objects. |
Collection |
getMoleculesOnRight()
Returns a Collection of MoleculeDisplay objects. |
Reaction |
getReaction()
Returns the reaction. |
Reaction |
getReaction(EntityManager em)
Temporary method to for FO9 testing Returns the reaction. |
String |
getSpid()
Returns the reaction spid. |
String |
getUser()
Gets User |
void |
removeAllLiteratureReferences()
Removes all LiteratureReferences from Reaction. |
void |
removeInteractionSite(String spid)
Removes the interaction site for the BioPolymer specified via a unique SPID. |
void |
removeKBackward()
Remove the backward rate of the reaction. |
void |
removeKForward()
Remove the forward rate of the reaction. |
void |
removeMoleculeFromLeft(String spid)
Remove the chemical specified by the SPID from the left-hand side of the reaction. |
void |
removeMoleculeFromRight(String spid)
Remove the chemical specified by the SPID from the right-hand side of the reaction. |
boolean |
saveReaction()
Saves the reaction to the database. |
void |
setDbManager(SPDBManager dbm)
Set the database manager to use for this adapter. |
void |
setDescription(String description)
|
void |
setKBackward(double value,
String unit)
Set the backward rate of the reaction. |
void |
setKForward(double value,
String unit)
Set the forward rate of the reaction. |
void |
setUser(String user_name)
Sets User |
void |
updateReaction()
Updates the reaction in the database. |
ValidationErrors |
validate()
Validate the reaction against all known scientific rules. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReactionAdapterImpl(ValidationErrors ve)
SPDBManager,
Internal Transaction***
public ReactionAdapterImpl(String spid,
SPDBManager spdbm,
ValidationErrors ve)
throws SigPathDatabaseException
SigPathDatabaseException
public ReactionAdapterImpl(SigPathEntity spe,
SPDBManager spdbm,
ValidationErrors ve,
String substrateSpid,
String productSpid)
| Method Detail |
|---|
public void setDbManager(SPDBManager dbm)
ReactionAdapter
setDbManager in interface ReactionAdapterdbm - Database manager to use for this adapter.public void close()
public void addMoleculeToLeft(String spid,
String sites,
boolean isSubstrate,
boolean isProduct)
addMoleculeToLeft in interface ReactionAdapterspid - spid of chemicalsites - interaction sites of chemicalisSubstrate - indicates if the molecule is a substrateisProduct - indicates if the molecule is a productChemical,
ResidueRange,
InteractionSitespublic void removeMoleculeFromLeft(String spid)
removeMoleculeFromLeft in interface ReactionAdapterspid - spid of chemicalChemicalpublic Collection getMoleculesOnLeft()
getMoleculesOnLeft in interface ReactionAdapterMoleculeDisplay,
Chemical
public void addMoleculeToRight(String spid,
String sites,
boolean isSubstrate,
boolean isProduct)
addMoleculeToRight in interface ReactionAdapterspid - spid of chemicalsites - interaction sites of chemicalisSubstrate - indicates if the molecule is a substrateisProduct - indicates if the molecule is a productChemical,
ResidueRange,
InteractionSitespublic void removeMoleculeFromRight(String spid)
removeMoleculeFromRight in interface ReactionAdapterspid - spid of chemicalChemicalpublic Collection getMoleculesOnRight()
getMoleculesOnRight in interface ReactionAdapterMoleculeDisplay,
Chemical
public void addComplextoRight(String name,
String[] spids,
boolean isSubstrate,
boolean isProduct)
addComplextoRight in interface ReactionAdaptername - name of complexspids - spids of molecules in complexisSubstrate - indicates if the molecule is a substrateisProduct - indicates if the molecule is a productComplex,
Internal Transaction***
public void addModifiedChemicalToRight(String spid,
String name,
String type,
boolean isSubstrate,
boolean isProduct)
addModifiedChemicalToRight in interface ReactionAdapterspid - spid of source chemicalname - name of modified chemicaltype - type of modified chemicalisSubstrate - indicates if the molecule is a substrateisProduct - indicates if the molecule is a productChemical,
Internal
Transaction***
public void setKForward(double value,
String unit)
setKForward in interface ReactionAdaptervalue - forward rate of reactionunit - unit of ratepublic Parameter getKForward()
getKForward in interface ReactionAdapterpublic void removeKForward()
removeKForward in interface ReactionAdapter
public void setKBackward(double value,
String unit)
setKBackward in interface ReactionAdaptervalue - backward rate of reactionunit - unit of ratepublic Parameter getKBackward()
getKBackward in interface ReactionAdapterpublic void removeKBackward()
removeKBackward in interface ReactionAdapterpublic void addLiteratureReference(String pubMedID)
addLiteratureReference in interface ReactionAdapterpubMedID - PubMed IDpublic void addLiteratureReferenceNote(String _publicationNote)
addLiteratureReferenceNote in interface ReactionAdapter_publicationNote - publication notepublic void removeAllLiteratureReferences()
removeAllLiteratureReferences in interface ReactionAdapterpublic LiteratureReferences getLiteratureReferences()
getLiteratureReferences in interface ReactionAdapterLiteratureReferencespublic void setUser(String user_name)
ReactionAdapter
setUser in interface ReactionAdapterpublic String getUser()
ReactionAdapter
getUser in interface ReactionAdapterpublic Date getDateSubmitted()
getDateSubmitted in interface ReactionAdapterpublic Date getDateLastModified()
getDateLastModified in interface ReactionAdapterpublic void setDescription(String description)
setDescription in interface ReactionAdapterpublic String getDescription()
getDescription in interface ReactionAdapterpublic boolean saveReaction()
saveReaction in interface ReactionAdapterpublic void updateReaction()
updateReaction in interface ReactionAdapterpublic ValidationErrors validate()
validate in interface ReactionAdapterValidationErrorspublic String getSpid()
getSpid in interface ReactionAdapterReaction
public Reaction getReaction(EntityManager em)
throws SigPathDatabaseException
SigPathDatabaseExceptionReaction
public Reaction getReaction()
throws SigPathDatabaseException
SigPathDatabaseExceptionReactionpublic String getInteractionSite(String spid)
getInteractionSite in interface ReactionAdapterspid - spid of chemical
BioPolymer,
ResidueRange,
InteractionSitespublic void removeInteractionSite(String spid)
removeInteractionSite in interface ReactionAdapterspid - spid of chemicalBioPolymer,
ResidueRange,
InteractionSites
public void addInteractionSite(String spid,
String sites)
addInteractionSite in interface ReactionAdapterspid - spid of chemicalsites - interaction sites of chemicalBioPolymer,
ResidueRange,
InteractionSites
|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||