Class DataDescriptors<V extends DataDescriptorEntry>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.TreeSet<V>
-
- edu.uiuc.ncsa.security.storage.data.DataDescriptors<V>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<V>
,Collection<V>
,NavigableSet<V>
,Set<V>
,SortedSet<V>
- Direct Known Subclasses:
ColumnDescriptors
public class DataDescriptors<V extends DataDescriptorEntry> extends TreeSet<V>
Descriptors for the columns in an SQL database. One of the issues with JDBC is that certain statements are order dependent -- the order in which columns are described must be carefully followed. This sorts all the columns alphabetically and strictly follows this canonical ordering for all subsequent operations. You need merely make a relationship between a column name and aTypes
value. Logically this is aTreeSet
. Very useful and very convenient.Created by Jeff Gaynor
on 8/30/11 at 2:50 PM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataDescriptors()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(V columnDescriptorEntry)
boolean
addAll(Collection<? extends V> c)
V
get(String name)
HashMap<String,V>
getEntries()
boolean
remove(Object o)
-
Methods inherited from class java.util.TreeSet
ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, size, spliterator, subSet, subSet, tailSet, tailSet
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
add
public boolean add(V columnDescriptorEntry)
- Specified by:
add
in interfaceCollection<V extends DataDescriptorEntry>
- Specified by:
add
in interfaceSet<V extends DataDescriptorEntry>
- Overrides:
add
in classTreeSet<V extends DataDescriptorEntry>
-
addAll
public boolean addAll(Collection<? extends V> c)
- Specified by:
addAll
in interfaceCollection<V extends DataDescriptorEntry>
- Specified by:
addAll
in interfaceSet<V extends DataDescriptorEntry>
- Overrides:
addAll
in classTreeSet<V extends DataDescriptorEntry>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<V extends DataDescriptorEntry>
- Specified by:
remove
in interfaceSet<V extends DataDescriptorEntry>
- Overrides:
remove
in classTreeSet<V extends DataDescriptorEntry>
-
-