Manages sorting the executables (lazily)
Manages the querySpaces affected by the executables in the list, and caches this too.
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final ArrayList | |
| public static final int | |
| private transient Set | querySpaces
Used to hold the query spaces (table names, roughly) that all the Executable instances contained in this list define. |
| private final boolean | |
| private boolean | |
| private final ExecutableList. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ExecutableList(int
The initial capacity for instantiating the internal List initialCapacity)Creates a new ExecutableList with the specified initialCapacity. |
| public | |
| public | |
| public | ExecutableList(ExecutableList.
The Sorter to use; may be sorternullCreates a new ExecutableList using the specified Sorter. |
| public | ExecutableList(int
The initial capacity for instantiating the internal List initialCapacity, ExecutableList.The Sorter to use; may be sorternullCreates a new ExecutableList with the specified initialCapacity and Sorter. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the object was added to the listthe executable to add to the list executable)Add an Executable to this list. |
| public void | afterDeserialize(SessionImplementor
The session to which to associate the Executables session)
Deprecated
as a consequence of
Allow the Executables to re-associate themselves with the Session after deserialization.
SessionImplementor being deprecated.
|
| public void | |
| public E | |
| public Set | Returns: the querySpaces affected by the actions in this listLazily constructs the querySpaces affected by the actions in the list. |
| public boolean | |
| public Iterator | Returns: an unmodifiable iteratorImplements java. |
| public void | readExternal(ObjectInput
The stream from which to read our serial state in)Implements java. |
| public E | Returns: the entry that was removedThe index of the element to remove index)Removes the entry at position index in the list. |
| public void | |
| public int | |
| public void | |
| public String | |
| public void | writeExternal(ObjectOutput
The stream to which to serialize our state oos)Implements java. |
| executables | back to summary |
|---|---|
| private final ArrayList<E> executables | |
| INIT_QUEUE_LIST_SIZE | back to summary |
|---|---|
| public static final int INIT_QUEUE_LIST_SIZE | |
| querySpaces | back to summary |
|---|---|
| private transient Set<Serializable> querySpaces Used to hold the query spaces (table names, roughly) that all the Executable instances contained
in this list define. This information is ultimately used to invalidate cache regions as it is
exposed from | |
| requiresSorting | back to summary |
|---|---|
| private final boolean requiresSorting | |
| sorted | back to summary |
|---|---|
| private boolean sorted | |
| sorter | back to summary |
|---|---|
| private final ExecutableList. | |
| ExecutableList | back to summary |
|---|---|
| public ExecutableList() Creates a new ExecutableList with the default settings. | |
| ExecutableList | back to summary |
|---|---|
| public ExecutableList(int initialCapacity) Creates a new ExecutableList with the specified initialCapacity.
| |
| ExecutableList | back to summary |
|---|---|
| public ExecutableList(boolean requiresSorting) | |
| ExecutableList | back to summary |
|---|---|
| public ExecutableList(int initialCapacity, boolean requiresSorting) | |
| ExecutableList | back to summary |
|---|---|
| public ExecutableList(ExecutableList. Creates a new ExecutableList using the specified Sorter.
| |
| ExecutableList | back to summary |
|---|---|
| public ExecutableList(int initialCapacity, ExecutableList. Creates a new ExecutableList with the specified initialCapacity and Sorter.
| |
| add | back to summary |
|---|---|
| public boolean add(E executable) Add an Executable to this list.
| |
| afterDeserialize | back to summary |
|---|---|
| public void afterDeserialize(SessionImplementor session)
Deprecated as a consequence of Allow the Executables to re-associate themselves with the Session after deserialization.
| |
| clear | back to summary |
|---|---|
| public void clear() Clears the list of executions. | |
| get | back to summary |
|---|---|
public E get(int index)
| |
| getQuerySpaces | back to summary |
|---|---|
| public Set Lazily constructs the querySpaces affected by the actions in the list.
| |
| isEmpty | back to summary |
|---|---|
public boolean isEmpty()
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Returns an iterator for the list. Wraps the list just in case something tries to modify it. | |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Read this object state back in from the given stream as part of de-serialization
| |
| remove | back to summary |
|---|---|
| public E remove(int index) Removes the entry at position index in the list.
| |
| removeLastN | back to summary |
|---|---|
| public void removeLastN(int n) Removes the last n entries from the list.
| |
| size | back to summary |
|---|---|
public int size()
| |
| sort | back to summary |
|---|---|
| public void sort() Sorts the list using the natural ordering or using the Sorter if it's not null.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput oos) throws IOException Implements java. Write this list out to the given stream as part of serialization
| |
| sort | back to summary |
|---|---|
| public void sort(List<E> l) Sorts the list. | |