Package adql.db
Class SearchTableList
- All Implemented Interfaces:
SearchTableApi,Serializable,Cloneable,Iterable<DBTable>,Collection<DBTable>,List<DBTable>,RandomAccess,SequencedCollection<DBTable>
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, 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.getCopy()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
addFirst, addLast, clone, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeFirst, removeIf, removeLast, 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, reversed
-
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.
-
getCopy
- Specified by:
getCopyin interfaceSearchTableApi
-
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
Description copied from interface:SearchTableApi- Specified by:
searchin interfaceSearchTableApi- Parameters:
table- AnADQLTable.- Returns:
- The list of all corresponding
DBTableelements.
-
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 interface:SearchTableApiAdds the given object at the end of this list.- Specified by:
addin interfaceCollection<DBTable>- Specified by:
addin interfaceList<DBTable>- Specified by:
addin interfaceSearchTableApi- Overrides:
addin classcds.utils.TextualSearchList<DBTable>- See Also:
-