Simple data access objects framework API.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://aoindustries.com/contact
public interface Table<K extends Comparable<? super K>,R extends Row<K,?>> extends Collection<R>
| Modifier and Type | Method and Description |
|---|---|
default boolean |
add(R e) |
default boolean |
addAll(Collection<? extends R> c) |
default K |
canonicalize(K key)
Gets the canonical key used for internal indexing.
|
default void |
clear() |
default void |
clearCaches()
Clears the caches for this table that apply to the current thread.
|
default boolean |
contains(Object o) |
default boolean |
containsAll(Collection<?> c) |
R |
get(K key)
Gets the row with the provided key.
|
default Iterator<? extends R> |
getIterator()
Iterates the rows in sorted order.
|
Map<K,? extends R> |
getMap()
Gets a map view of this table.
|
Model |
getModel()
Gets the model this table is part of.
|
default String |
getName()
Gets the table name.
|
default Set<? extends R> |
getOrderedRows(Iterable<? extends K> keys)
Gets an unmodifiable set of each object corresponding to the set of keys.
|
SortedSet<? extends R> |
getRows()
Gets all rows, sorted by their natural ordering.
|
default SortedSet<? extends R> |
getRows(Iterable<? extends K> keys)
Gets an unmodifiable sorted set of each object corresponding to the set of
keys, sorted by their natural ordering.
|
default int |
getSize()
Gets the number of accessible rows in this table.
|
SortedMap<K,? extends R> |
getSortedMap()
Gets a sorted map view of this table.
|
Set<? extends R> |
getUnsortedRows()
Gets all rows in no particular order.
|
default boolean |
isEmpty() |
default Iterator<R> |
iterator()
Iterates the rows in sorted order.
|
default boolean |
remove(Object o) |
default boolean |
removeAll(Collection<?> c) |
default boolean |
retainAll(Collection<?> c) |
default int |
size() |
default void |
tableUpdated()
Called after the table is updated to ensure cache integrity.
|
default Object[] |
toArray() |
default <T> T[] |
toArray(T[] a) |
equals, hashCode, parallelStream, removeIf, spliterator, streamModel getModel()
default void clearCaches()
default void tableUpdated()
default void clear()
clear in interface Collection<R extends Row<K,?>>default boolean retainAll(Collection<?> c)
retainAll in interface Collection<R extends Row<K,?>>default boolean removeAll(Collection<?> c)
removeAll in interface Collection<R extends Row<K,?>>default boolean addAll(Collection<? extends R> c)
addAll in interface Collection<R extends Row<K,?>>default boolean containsAll(Collection<?> c)
containsAll in interface Collection<R extends Row<K,?>>default boolean remove(Object o)
remove in interface Collection<R extends Row<K,?>>default <T> T[] toArray(T[] a)
toArray in interface Collection<R extends Row<K,?>>default Object[] toArray()
toArray in interface Collection<R extends Row<K,?>>default boolean contains(Object o)
contains in interface Collection<R extends Row<K,?>>default boolean isEmpty()
isEmpty in interface Collection<R extends Row<K,?>>default int getSize()
throws SQLException
SQLExceptiondefault int size()
size in interface Collection<R extends Row<K,?>>default Iterator<? extends R> getIterator() throws SQLException
default String getName()
Set<? extends R> getUnsortedRows() throws SQLException
SQLExceptionSortedSet<? extends R> getRows() throws SQLException
SQLExceptiondefault K canonicalize(K key)
R get(K key) throws com.aoindustries.dbc.NoRowException, SQLException
com.aoindustries.dbc.NoRowException - if not foundSQLException - if database error occursdefault Set<? extends R> getOrderedRows(Iterable<? extends K> keys) throws com.aoindustries.dbc.NoRowException, SQLException
com.aoindustries.dbc.NoRowException - if any key is not foundSQLException - if database error occursdefault SortedSet<? extends R> getRows(Iterable<? extends K> keys) throws com.aoindustries.dbc.NoRowException, SQLException
com.aoindustries.dbc.NoRowException - if any key is not foundSQLException - if database error occursCopyright © 2011–2016 AO Industries, Inc.. All rights reserved.