Interface SCOCollection
-
- All Superinterfaces:
Collection
,Iterable
,SCO
public interface SCOCollection extends Collection, SCO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAllInternal(Collection c)
Adds objects of the given Collection to this Collection without recording the event.void
addInternal(Object o)
Adds object to the Collection without recording the event.void
addToBaseCollection(Object o)
Adds an object to the list without recording changes.void
applyDeferredUpdates(Collection c)
void
clearInternal()
Clears Collection without recording the event.Collection
getAdded()
Returns the Collection of added elementsCollection
getRemoved()
Returns the Collection of removed elementsboolean
isDeferred()
void
markDeferred()
void
removeAllInternal(Collection c)
Removes objects of the given Collection from this Collection without recording the event.void
removeInternal(Object o)
Removes element from the Collection without recording the event.void
reset()
Resets removed and added lists after flushvoid
setOwner(Object owner, String fieldName, Class elementType)
Sets a new owner for the SCO instance that is not owned by any other object.-
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
Methods inherited from interface com.sun.jdo.spi.persistence.support.sqlstore.SCO
applyUpdates, cloneInternal, getFieldName, getOwner, makeDirty, unsetOwner
-
-
-
-
Method Detail
-
reset
void reset()
Resets removed and added lists after flush
-
markDeferred
void markDeferred()
-
isDeferred
boolean isDeferred()
-
applyDeferredUpdates
void applyDeferredUpdates(Collection c)
-
addInternal
void addInternal(Object o)
Adds object to the Collection without recording the event. Used internaly to initially populate the Collection
-
addAllInternal
void addAllInternal(Collection c)
Adds objects of the given Collection to this Collection without recording the event. Used internaly to initially populate the Collection
-
addToBaseCollection
void addToBaseCollection(Object o)
Adds an object to the list without recording changes.
-
removeAllInternal
void removeAllInternal(Collection c)
Removes objects of the given Collection from this Collection without recording the event. Used internaly to remove a collection of elements from this collection.
-
clearInternal
void clearInternal()
Clears Collection without recording the event. Used internaly to clear the Collection
-
removeInternal
void removeInternal(Object o)
Removes element from the Collection without recording the event. Used internaly to update the Collection
-
getAdded
Collection getAdded()
Returns the Collection of added elements- Returns:
- Collection of the added elements as java.util.Collection
-
getRemoved
Collection getRemoved()
Returns the Collection of removed elements- Returns:
- Collection of the removed elements as java.util.Collection
-
setOwner
void setOwner(Object owner, String fieldName, Class elementType)
Sets a new owner for the SCO instance that is not owned by any other object.- Parameters:
owner
- the new ownerfieldName
- as java.lang.StringelementType
- the new element type as Class, or null if type is not to be checke.- Throws:
JDOUserException
- if the instance is owned by another owner.
-
-