public class SearchTableList extends TextualSearchList<DBTable> implements SearchTableApi
A list of DBTable
elements ordered by their ADQL name in an ascending manner.
In addition to an ADQL name, DBTable
elements can be searched by specifying their schema and catalog.
These last information will be used only if the ADQL table name is ambiguous, otherwise all matching elements are returned.
TextualSearchList.DefaultKeyExtractor<E>, TextualSearchList.KeyExtractor<E>
csMap, keyExtractor, ncsMap
Constructor and Description |
---|
SearchTableList()
Void constructor.
|
SearchTableList(java.util.Collection<? extends DBTable> collection)
Constructor by copy: all the elements of the given collection of
DBTable are copied ordered into this list. |
SearchTableList(int initialCapacity)
Constructor with the initial capacity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(DBTable item)
Adds the given object at the end of this list.
|
boolean |
isDistinct()
Tells whether multiple occurrences are allowed.
|
java.util.List<DBTable> |
search(ADQLTable table)
|
java.util.List<DBTable> |
search(java.lang.String tableName)
Searches all
DBTable elements which has the given name (case insensitive). |
java.util.List<DBTable> |
search(java.lang.String catalog,
java.lang.String schema,
java.lang.String table)
Searches all
DBTable elements which have the given catalog, schema, and table name (case insensitive). |
java.util.List<DBTable> |
search(java.lang.String catalog,
java.lang.String schema,
java.lang.String table,
byte caseSensitivity)
Searches all
DBTable elements which have the given catalog, schema, and table name, with the specified case sensitivity. |
void |
setDistinct(boolean distinct)
Lets indicating that multiple occurrences are allowed.
|
add, addAll, addAll, clear, contains, get, get, remove, remove, removeRange, set
clone, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
public SearchTableList()
public SearchTableList(java.util.Collection<? extends DBTable> collection)
DBTable
are copied ordered into this list.collection
- Collection of DBTable
to copy.public SearchTableList(int initialCapacity)
initialCapacity
- Initial capacity of this list.public final boolean isDistinct()
public final void setDistinct(boolean distinct)
distinct
- true means that multiple occurrences are allowed, false otherwise.public java.util.List<DBTable> search(java.lang.String tableName)
DBTable
elements which has the given name (case insensitive).tableName
- ADQL name of DBTable
to search for.DBTable
elements.TextualSearchList.get(String)
public final java.util.List<DBTable> search(java.lang.String catalog, java.lang.String schema, java.lang.String table)
DBTable
elements which have the given catalog, schema, and table name (case insensitive).catalog
- Catalog name.schema
- Schema name.table
- Table name.DBTable
elements.search(String, String, String, byte)
public java.util.List<DBTable> search(ADQLTable table)
search
in interface SearchTableApi
table
- An ADQLTable
.DBTable
elements.search(String, String, String, byte)
public java.util.List<DBTable> search(java.lang.String catalog, java.lang.String schema, java.lang.String table, byte caseSensitivity)
DBTable
elements which have the given catalog, schema, and table name, with the specified case sensitivity.catalog
- Catalog name.schema
- Schema name.table
- Table name.caseSensitivity
- Case sensitivity for each table parts (one bit by part ; 0=sensitive,1=insensitive ; see IdentifierField
for more details).DBTable
elements.IdentifierField
public boolean add(DBTable item)
TextualSearchList
add
in interface java.util.Collection<DBTable>
add
in interface java.util.List<DBTable>
add
in class TextualSearchList<DBTable>
item
- Object to add (different from NULL).ArrayList.add(java.lang.Object)