|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ItemWriter
Stores Items in something - an objectstore or otherwise.
| 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. |
| Method Detail |
|---|
java.lang.Integer store(org.intermine.model.fulldata.Item item)
throws ObjectStoreException
item - 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
void store(org.intermine.model.fulldata.ReferenceList refList,
java.lang.Integer itemId)
throws ObjectStoreException
refList - the ReferenceListitemId - the ID of the Item that contains the ReferenceList
ObjectStoreException - if something goes wrong
void store(org.intermine.model.fulldata.Reference ref,
java.lang.Integer itemId)
throws ObjectStoreException
ref - the ReferenceListitemId - the ID of the Item that contains the Reference
ObjectStoreException - if something goes wrong
void store(org.intermine.model.fulldata.Attribute att,
java.lang.Integer itemId)
throws ObjectStoreException
att - the AttributeitemId - the ID of the Item that contains the Attribute
ObjectStoreException - if something goes wrong
void storeAll(java.util.Collection<org.intermine.model.fulldata.Item> items)
throws ObjectStoreException
items - 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
void close()
throws ObjectStoreException
ObjectStoreException - 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 | ||||||||