Package adql.db
Class SearchTableList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
cds.utils.TextualSearchList<DBTable>
adql.db.SearchTableList
- All Implemented Interfaces:
SearchTableApi
,Serializable
,Cloneable
,Iterable<DBTable>
,Collection<DBTable>
,List<DBTable>
,RandomAccess
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.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class cds.utils.TextualSearchList
cds.utils.TextualSearchList.DefaultKeyExtractor<E>, cds.utils.TextualSearchList.KeyExtractor<E>
-
Field Summary
Fields inherited from class cds.utils.TextualSearchList
csMap, keyExtractor, ncsMap
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionVoid constructor.SearchTableList
(int initialCapacity) Constructor with the initial capacity.SearchTableList
(Collection<? extends DBTable> collection) Constructor by copy: all the elements of the given collection ofDBTable
are copied ordered into this list. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds the given object at the end of this list.getCopy()
final boolean
Tells whether multiple occurrences are allowed.Searches allDBTable
elements which has the given name (case insensitive).Searches allDBTable
elements which have the given catalog, schema, and table name (case insensitive).Searches allDBTable
elements which have the given catalog, schema, and table name, with the specified case sensitivity.final void
setDistinct
(boolean distinct) Lets indicating that multiple occurrences are allowed.Methods inherited from class cds.utils.TextualSearchList
add, addAll, addAll, clear, contains, get, get, remove, remove, removeRange, set
Methods inherited from class java.util.ArrayList
clone, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
SearchTableList
public SearchTableList()Void constructor. -
SearchTableList
Constructor by copy: all the elements of the given collection ofDBTable
are copied ordered into this list.- Parameters:
collection
- Collection ofDBTable
to copy.
-
SearchTableList
public SearchTableList(int initialCapacity) Constructor with the initial capacity.- Parameters:
initialCapacity
- Initial capacity of this list.
-
-
Method Details
-
isDistinct
public final boolean isDistinct()Tells whether multiple occurrences are allowed.- Returns:
- true means that multiple occurrences are allowed, false otherwise.
-
setDistinct
public final void setDistinct(boolean distinct) Lets indicating that multiple occurrences are allowed.- Parameters:
distinct
- true means that multiple occurrences are allowed, false otherwise.
-
getCopy
- Specified by:
getCopy
in interfaceSearchTableApi
-
search
Searches allDBTable
elements which has the given name (case insensitive). -
search
Searches allDBTable
elements which have the given catalog, schema, and table name (case insensitive).- Parameters:
catalog
- Catalog name.schema
- Schema name.table
- Table name.- Returns:
- The list of all matching
DBTable
elements. - See Also:
-
search
Description copied from interface:SearchTableApi
- Specified by:
search
in interfaceSearchTableApi
- Parameters:
table
- AnADQLTable
.- Returns:
- The list of all corresponding
DBTable
elements.
-
search
Searches allDBTable
elements which have the given catalog, schema, and table name, with the specified case sensitivity.- Parameters:
catalog
- Catalog name.schema
- Schema name.table
- Table name.caseSensitivity
- Case sensitivity for each table parts (one bit by part ; 0=sensitive,1=insensitive ; seeIdentifierField
for more details).- Returns:
- The list of all matching
DBTable
elements. - See Also:
-
add
Description copied from interface:SearchTableApi
Adds the given object at the end of this list.- Specified by:
add
in interfaceCollection<DBTable>
- Specified by:
add
in interfaceList<DBTable>
- Specified by:
add
in interfaceSearchTableApi
- Overrides:
add
in classcds.utils.TextualSearchList<DBTable>
- See Also:
-