|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.dataconversion.ObjectStoreItemWriter
public class ObjectStoreItemWriter
Stores Items in an objectstore.
| Constructor Summary | |
|---|---|
ObjectStoreItemWriter(ObjectStoreWriter osw)
Constructs the ItemWriter with an ObjectStoreWriter. |
|
| Method Summary | |
|---|---|
void |
close()
Flushes any store queue, closes transactions, and generally makes sure that every Item passed to the store() method is committed to the destination. |
void |
store(org.intermine.model.fulldata.Attribute att,
java.lang.Integer itemId)
Stores the given Attribute after setting its item id. |
java.lang.Integer |
store(org.intermine.model.fulldata.Item item)
Stores the given Item and all its associated attributes, references, and referencelists. |
void |
store(org.intermine.model.fulldata.Reference ref,
java.lang.Integer itemId)
Stores the given Reference after setting its item id. |
void |
store(org.intermine.model.fulldata.ReferenceList refList,
java.lang.Integer itemId)
Stores the given ReferenceList after setting its item id. |
void |
storeAll(java.util.Collection<org.intermine.model.fulldata.Item> items)
Stores the given Collection of Items and all their associated attributes, references, and referencelists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectStoreItemWriter(ObjectStoreWriter osw)
throws ObjectStoreException
osw - the ObjectStoreWriter in which to store the Items
ObjectStoreException - if the ObjectStore is already in a transaction| Method Detail |
|---|
public java.lang.Integer store(org.intermine.model.fulldata.Item item)
throws ObjectStoreException
store in interface ItemWriteritem - the Item to store
ObjectStoreException - if something goes wrong. Note that for performance reasons, not
all implementations of ItemWriter necessarily actually perform the store before this method
terminates, therefore a problem could result in an ObjectStoreException being thrown at a
later time
public void store(org.intermine.model.fulldata.ReferenceList refList,
java.lang.Integer itemId)
throws ObjectStoreException
store in interface ItemWriterrefList - the ReferenceListitemId - the ID of the Item that contains the ReferenceList
ObjectStoreException - if something goes wrong
public void store(org.intermine.model.fulldata.Reference ref,
java.lang.Integer itemId)
throws ObjectStoreException
store in interface ItemWriterref - the ReferenceListitemId - the ID of the Item that contains the Reference
ObjectStoreException - if something goes wrong
public void store(org.intermine.model.fulldata.Attribute att,
java.lang.Integer itemId)
throws ObjectStoreException
store in interface ItemWriteratt - the AttributeitemId - the ID of the Item that contains the Attribute
ObjectStoreException - if something goes wrong
public void storeAll(java.util.Collection<org.intermine.model.fulldata.Item> items)
throws ObjectStoreException
storeAll in interface ItemWriteritems - the Collection of Items to store
ObjectStoreException - if something goes wrong. Note that for performance reasons, not
all implementations of ItemWriter necessarily actually perform the store before this method
terminates, therefore a problem could result in an ObjectStoreException being thrown at a
later time
public void close()
throws ObjectStoreException
close in interface ItemWriterObjectStoreException - if something goes wrong. If a problem has occurred with ANY of
the previously store()ed Items that has not already caused an ObjectStoreException to be
thrown, then this method MUST throw an ObjectStoreException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||