- All Superinterfaces:
Collection<Attribute>
,Iterable<Attribute>
,List<Attribute>
,SequencedCollection<Attribute>
,TargetList
,TargetList.Projection
,TupleDescriptor
- Enclosing interface:
TupleDescriptor
A descriptor that either describes a known composite type in the
catalogs, or has been interned in PostgreSQL's type cache, and has
a distinct
rowType
that can be used to identify it
for the duration of the session.
Some operations, such as constructing a composite value for a function to return, require this.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.postgresql.pljava.TargetList
TargetList.Cursor, TargetList.Projection
Nested classes/interfaces inherited from interface org.postgresql.pljava.model.TupleDescriptor
TupleDescriptor.Ephemeral, TupleDescriptor.Interned
-
Method Summary
Modifier and TypeMethodDescriptiondefault TupleDescriptor.Interned
intern()
Return this descriptor unchanged if it is already interned in PostgreSQL's type cache, otherwise an equivalent new descriptor with a differentrowType
uniquely assigned to identify it for the duration of the session.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, toArray, toArray
Methods inherited from interface org.postgresql.pljava.TargetList
applyOver, applyOver, sqlGet
Methods inherited from interface org.postgresql.pljava.TargetList.Projection
project, project, project, project, sqlProject, subList
Methods inherited from interface org.postgresql.pljava.model.TupleDescriptor
attributes, get, get, rowType
-
Method Details
-
intern
Description copied from interface:TupleDescriptor
Return this descriptor unchanged if it is already interned in PostgreSQL's type cache, otherwise an equivalent new descriptor with a differentrowType
uniquely assigned to identify it for the duration of the session.PostgreSQL calls this operation "BlessTupleDesc", which updates the descriptor in place; in PL/Java code, the descriptor returned by this method should be used in place of the original.
- Specified by:
intern
in interfaceTupleDescriptor
-