public interface SlotTester
A temporary test jig during TupleTableSlot development, not intended to last.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A temporary marker interface used on classes or interfaces whose static final fields should be visible toadapterPlease
. -
Method Summary
Modifier and TypeMethodDescriptionadapterPlease
(String clazz, String field) Return one of the predefinedAdapter
instances, given knowledge of the class name and static final field name within that class inside PL/Java's implementation module.Execute query, returning its complete result as aList
ofTupleTableSlot
.
-
Method Details
-
unwrapAsPortal
Unwrap aResultSet
instance from the legacy JDBC layer as aPortal
instance so results can be retrieved using new API.- Parameters:
rs
- a ResultSet, which can only be an SPIResultSet obtained from the legacy JDBC implementation, not yet closed or used to fetch anything, and will be closed.- Throws:
SQLException
-
test
Execute query, returning its complete result as aList
ofTupleTableSlot
. -
adapterPlease
Return one of the predefinedAdapter
instances, given knowledge of the class name and static final field name within that class inside PL/Java's implementation module.Example:
adapterPlease( "org.postgresql.pljava.pg.adt.Primitives", "FLOAT8_INSTANCE");
- Throws:
ReflectiveOperationException
-