org.datanucleus.sco
Interface SCOContainer

All Superinterfaces:
SCO
All Known Subinterfaces:
SCOCollection, SCOList, SCOMap
All Known Implementing Classes:
ArrayList, ArrayList, Collection, Collection, HashMap, HashMap, HashSet, HashSet, Hashtable, Hashtable, LinkedHashMap, LinkedHashMap, LinkedHashSet, LinkedHashSet, LinkedList, LinkedList, List, List, Map, Map, PriorityQueue, PriorityQueue, Properties, Properties, Queue, Queue, Set, Set, SortedMap, SortedMap, SortedSet, SortedSet, Stack, Stack, TreeMap, TreeMap, TreeSet, TreeSet, Vector, Vector

public interface SCOContainer
extends SCO

Representation of a SCO that contains other (persistable) objects.


Method Summary
 void flush()
          Inform the SCO that it should flush any queued updates to the datastore now (in case it is in queued mode).
 boolean isLoaded()
          Method to return if the SCO has its contents loaded.
 void load()
          Inform the SCO that it should load itself fully now (in case it is using lazy loading).
 
Methods inherited from interface org.datanucleus.sco.SCO
attachCopy, clone, detachCopy, getFieldName, getOwner, getValue, initialise, initialise, unsetOwner
 

Method Detail

load

void load()
Inform the SCO that it should load itself fully now (in case it is using lazy loading).


flush

void flush()
Inform the SCO that it should flush any queued updates to the datastore now (in case it is in queued mode).


isLoaded

boolean isLoaded()
Method to return if the SCO has its contents loaded. If the SCO doesn't support lazy loading will just return true.

Returns:
Whether it is loaded


Copyright © 2010. All Rights Reserved.