Package adql.db
Class 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.
- Version:
- 1.4 (09/2017)
- Author:
- Grégory Mantelet (CDS;ARI)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class cds.utils.TextualSearchList
TextualSearchList.DefaultKeyExtractor<E>, TextualSearchList.KeyExtractor<E> -
Field Summary
Fields inherited from class cds.utils.TextualSearchList
csMap, keyExtractor, ncsMapFields 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 ofDBTableare copied ordered into this list. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds the given object at the end of this list.final booleanTells whether multiple occurrences are allowed.Searches allDBTableelements which has the given name (case insensitive).Searches allDBTableelements which have the given catalog, schema, and table name (case insensitive).Searches allDBTableelements which have the given catalog, schema, and table name, with the specified case sensitivity.final voidsetDistinct(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, setMethods 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, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods 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 ofDBTableare copied ordered into this list.- Parameters:
collection- Collection ofDBTableto 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.
-
search
Searches allDBTableelements which has the given name (case insensitive). -
search
Searches allDBTableelements 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
DBTableelements. - See Also:
-
search
- Specified by:
searchin interfaceSearchTableApi- Parameters:
table- AnADQLTable.- Returns:
- The list of all corresponding
DBTableelements. - See Also:
-
search
Searches allDBTableelements 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 ; seeIdentifierFieldfor more details).- Returns:
- The list of all matching
DBTableelements. - See Also:
-
add
Description copied from class:TextualSearchListAdds the given object at the end of this list.- Specified by:
addin interfaceCollection<DBTable>- Specified by:
addin interfaceList<DBTable>- Overrides:
addin classTextualSearchList<DBTable>- Parameters:
item- Object to add (different from NULL).- See Also:
-