|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.bio.postprocess.CreateReferences
public class CreateReferences
Fill in additional references/collections in genomic model
| Field Summary | |
|---|---|
protected ObjectStoreWriter |
osw
|
| Constructor Summary | |
|---|---|
CreateReferences(ObjectStoreWriter osw)
Construct with an ObjectStoreWriter, read and write from same ObjectStore |
|
| Method Summary | |
|---|---|
void |
createUtrRefs()
Read the UTRs collection of MRNA then set the fivePrimeUTR and threePrimeUTR fields with the corresponding UTRs. |
protected void |
insertCollectionField(java.lang.Class<? extends InterMineObject> firstClass,
java.lang.String firstClassFieldName,
java.lang.Class<? extends InterMineObject> connectingClass,
java.lang.String connectingClassFieldName,
java.lang.Class<? extends InterMineObject> secondClass,
java.lang.String createFieldName,
boolean createInFirstClass)
Add a collection of objects of type X to objects of type Y by using a connecting class. |
protected void |
insertReferenceField(java.lang.Class<? extends InterMineObject> sourceClass,
java.lang.String sourceClassFieldName,
java.lang.Class<? extends InterMineObject> connectingClass,
java.lang.String connectingClassFieldName,
java.lang.Class<? extends InterMineObject> destinationClass,
java.lang.String createFieldName)
Add a reference to and object of type X in objects of type Y by using a connecting class. |
void |
insertReferences()
Fill in missing references/collections in model by querying relations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ObjectStoreWriter osw
| Constructor Detail |
|---|
public CreateReferences(ObjectStoreWriter osw)
osw - an ObjectStore to write to| Method Detail |
|---|
public void insertReferences()
throws java.lang.Exception
java.lang.Exception - if anything goes wrong
protected void insertReferenceField(java.lang.Class<? extends InterMineObject> sourceClass,
java.lang.String sourceClassFieldName,
java.lang.Class<? extends InterMineObject> connectingClass,
java.lang.String connectingClassFieldName,
java.lang.Class<? extends InterMineObject> destinationClass,
java.lang.String createFieldName)
throws java.lang.Exception
sourceClass - the first class in the querysourceClassFieldName - the field in the sourceClass which should contain the
connectingClassconnectingClass - the class referred to by sourceClass.sourceFieldNameconnectingClassFieldName - the field in connectingClass which should contain
destinationClassdestinationClass - the class referred to by
connectingClass.connectingClassFieldNamecreateFieldName - the reference field in the destinationClass - the
collection to create/set
java.lang.Exception - if anything goes wrong
protected void insertCollectionField(java.lang.Class<? extends InterMineObject> firstClass,
java.lang.String firstClassFieldName,
java.lang.Class<? extends InterMineObject> connectingClass,
java.lang.String connectingClassFieldName,
java.lang.Class<? extends InterMineObject> secondClass,
java.lang.String createFieldName,
boolean createInFirstClass)
throws java.lang.Exception
firstClass - the first class in the queryfirstClassFieldName - the field in the firstClass which should contain the
connectingClassconnectingClass - the class referred to by firstClass.sourceFieldNameconnectingClassFieldName - the field in connectingClass which should contain
secondClasssecondClass - the class referred to by
connectingClass.connectingClassFieldNamecreateFieldName - the collection field in the secondClass - the
collection to create/setcreateInFirstClass - if true create the new collection field in firstClass, otherwise
create in secondClass
java.lang.Exception - if anything goes wrong
public void createUtrRefs()
throws java.lang.Exception
java.lang.Exception - if anything goes wrong
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||