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 aTypesvalue. 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 booleanadd(V columnDescriptorEntry)booleanaddAll(Collection<? extends V> c)Vget(String name)HashMap<String,V>getEntries()booleanremove(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:
addin interfaceCollection<V extends DataDescriptorEntry>- Specified by:
addin interfaceSet<V extends DataDescriptorEntry>- Overrides:
addin classTreeSet<V extends DataDescriptorEntry>
-
addAll
public boolean addAll(Collection<? extends V> c)
- Specified by:
addAllin interfaceCollection<V extends DataDescriptorEntry>- Specified by:
addAllin interfaceSet<V extends DataDescriptorEntry>- Overrides:
addAllin classTreeSet<V extends DataDescriptorEntry>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<V extends DataDescriptorEntry>- Specified by:
removein interfaceSet<V extends DataDescriptorEntry>- Overrides:
removein classTreeSet<V extends DataDescriptorEntry>
-
-