public class SQLCollection extends SQLProxy implements Collection<Object>
| Constructor and Description |
|---|
SQLCollection(SQLRootElement rootElement,
int tableId)
Constructor
|
SQLCollection(SQLRootElement rootElement,
String tableIdWithprefix)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object value)
Add element to collection
|
boolean |
addAll(Collection<? extends Object> values)
Add all elements to collection
|
void |
clear()
Clear collection
|
boolean |
contains(Object value)
Check if collection contains specified element
|
boolean |
containsAll(Collection<?> values)
Check if collection contains all given elements
|
boolean |
isEmpty()
Check if collection is empty
|
Iterator<Object> |
iterator()
Return array iterator
|
boolean |
remove(Object value)
Remove element from collection
|
boolean |
removeAll(Collection<?> values)
Remove all elements from collection
|
boolean |
retainAll(Collection<?> values)
Remove all other elements from collection
|
int |
size()
Get number of collection elements
|
Object[] |
toArray()
Return collection elements as array
|
<T> T[] |
toArray(T[] array)
Return collection elements as array of given type
|
getDriver, getSqlTableIDequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic SQLCollection(SQLRootElement rootElement, int tableId)
rootElement - SQLRootElement for this elementtableId - Table ID of this element in SQL databasepublic SQLCollection(SQLRootElement rootElement, String tableIdWithprefix)
rootElement - SQLRootElement for this elementtableIdWithprefix - Table ID of this element in SQL database with prefixpublic int size()
size in interface Collection<Object>public boolean isEmpty()
isEmpty in interface Collection<Object>public boolean contains(Object value)
contains in interface Collection<Object>public Object[] toArray()
toArray in interface Collection<Object>public <T> T[] toArray(T[] array)
toArray in interface Collection<Object>public boolean add(Object value)
add in interface Collection<Object>public boolean remove(Object value)
remove in interface Collection<Object>public boolean containsAll(Collection<?> values)
containsAll in interface Collection<Object>public boolean addAll(Collection<? extends Object> values)
addAll in interface Collection<Object>public boolean removeAll(Collection<?> values)
removeAll in interface Collection<Object>public boolean retainAll(Collection<?> values)
retainAll in interface Collection<Object>public void clear()
clear in interface Collection<Object>Copyright © 2021. All rights reserved.