public interface PersistenceStoring
Storer.| Modifier and Type | Method and Description |
|---|---|
long |
store(Object instance)
Stores the passed instance in any case and all referenced instances of persistable references recursively,
but stores referenced instances only if they are newly encountered (e.g.
|
void |
storeAll(Iterable<?> instances)
Convenience method to
store(Object) all instances of an Iterable type, usually a collection.The passed instance itself is NOT stored. Note that this method does not return an array of objectIds, since the amount of instances supplied by the passed Iterable cannot be known until after all instances have been stored and the memory and performance
overhead to collect them dynamically would not be worth it in most cases since the returned array is hardly ever
needed. |
long[] |
storeAll(Object... instances)
Convenience method to
store(Object) multiple instances. |
long store(Object instance)
instance - the root instance of the subgraph of required instances to be stored.long[] storeAll(Object... instances)
store(Object) multiple instances.
The passed array (maybe implicitely created by the compiler) itself is NOT stored.instances - multiple root instances of the subgraphs of required instances to be stored.void storeAll(Iterable<?> instances)
store(Object) all instances of an Iterable type, usually a collection.Iterable cannot be known until after all instances have been stored and the memory and performance
overhead to collect them dynamically would not be worth it in most cases since the returned array is hardly ever
needed.
If it should be needed, the desired behavior can be easily achieved with a tiny custom-made utility method.instances - multiple root instances of the subgraphs of required instances to be stored.Copyright © 2022 MicroStream Software. All rights reserved.