java.lang.Object
org.postgresql.pljava.Adapter<T,Void>
org.postgresql.pljava.Adapter.As<T,Void>
org.postgresql.pljava.Adapter.Array<T>
- All Implemented Interfaces:
Adapter.ArrayProto<T[]>
,SlotTester.Visible
Abstract supertype of array adapters.
Instantiating an array adapter requires supplying an array contract and a compatible adapter for the element type, to be stored in the corresponding final fields here, which are declared with raw types. The several accessible constructors enforce the various compatible parameterizations for the two arguments.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.postgresql.pljava.Adapter
Adapter.AdapterException, Adapter.Array<T>, Adapter.ArrayBuilder<TA,
TI>, Adapter.ArrayProto<TA>, Adapter.As<T, U>, Adapter.AsBoolean<U>, Adapter.AsByte<U>, Adapter.AsChar<U>, Adapter.AsDouble<U>, Adapter.AsFloat<U>, Adapter.AsInt<U>, Adapter.AsLong<U>, Adapter.AsShort<U>, Adapter.Configuration, Adapter.Container, Adapter.Contract<T>, Adapter.Dispenser<T, U extends Adapter.Contract<T>>, Adapter.Permission, Adapter.Primitive<T, U, TA>, Adapter.PullDispenser<T, U extends Adapter.Contract<T>>, Adapter.Service, Adapter.Via -
Field Summary
Modifier and TypeFieldDescriptionprotected final Adapter.Contract.Array
TheContract.Array
that this array adapter will use, together with the supplied element-type adapter.protected final Adapter
TheAdapter
that this array adapter will use for the array's element type, together with the supplied contract. -
Constructor Summary
ModifierConstructorDescriptionprotected
Array
(Adapter.Contract.Array<T, E, Adapter.As<E, ?>> using, Adapter.As<E, ?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a reference-returningAdapter
for the element type.protected
Array
(Adapter.Contract.Array<T, Boolean, Adapter.AsBoolean<?>> using, Adapter.AsBoolean<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a boolean-returningAdapter
for the element type.protected
Array
(Adapter.Contract.Array<T, Byte, Adapter.AsByte<?>> using, Adapter.AsByte<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a byte-returningAdapter
for the element type.protected
Array
(Adapter.Contract.Array<T, Character, Adapter.AsChar<?>> using, Adapter.AsChar<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a char-returningAdapter
for the element type.protected
Array
(Adapter.Contract.Array<T, Double, Adapter.AsDouble<?>> using, Adapter.AsDouble<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a double-returningAdapter
for the element type.protected
Array
(Adapter.Contract.Array<T, Float, Adapter.AsFloat<?>> using, Adapter.AsFloat<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a float-returningAdapter
for the element type.protected
Array
(Adapter.Contract.Array<T, Integer, Adapter.AsInt<?>> using, Adapter.AsInt<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and an int-returningAdapter
for the element type.protected
Array
(Adapter.Contract.Array<T, Long, Adapter.AsLong<?>> using, Adapter.AsLong<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a long-returningAdapter
for the element type.protected
Array
(Adapter.Contract.Array<T, Short, Adapter.AsShort<?>> using, Adapter.AsShort<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a short-returningAdapter
for the element type. -
Method Summary
Methods inherited from class org.postgresql.pljava.Adapter.As
arrayOf, canFetchNull, fetch, fetchNull
Methods inherited from class org.postgresql.pljava.Adapter
canFetch, canFetch, configure, topType, topType, toString, underType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.postgresql.pljava.Adapter.ArrayProto
a1, a2, a4
-
Field Details
-
m_contract
TheContract.Array
that this array adapter will use, together with the supplied element-type adapter.Declared here as the raw type. The accessible constructors enforce the compatibility requirements between this and the supplied element adapter.
-
m_elementAdapter
TheAdapter
that this array adapter will use for the array's element type, together with the supplied contract.Declared here as the raw type. The accessible constructors enforce the compatibility requirements between this and the supplied contract.
-
-
Constructor Details
-
Array
protected Array(Adapter.Contract.Array<T, E, Adapter.As<E, ?>> using, Adapter.As<E, ?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a reference-returningAdapter
for the element type.- Parameters:
using
- the array Contract that will be used to produce the value returnedadapter
- an Adapter producing a representation of the array's element typewitness
- if not null, the top type the resulting adapter will produce, if a Type object can specify that more precisely than the default typing rules.c
- Configuration instance generated for this class
-
Array
protected Array(Adapter.Contract.Array<T, Long, Adapter.AsLong<?>> using, Adapter.AsLong<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a long-returningAdapter
for the element type.- Parameters:
using
- the array Contract that will be used to produce the value returnedadapter
- an Adapter producing a representation of the array's element typewitness
- if not null, the top type the resulting adapter will produce, if a Type object can specify that more precisely than the default typing rules.c
- Configuration instance generated for this class
-
Array
protected Array(Adapter.Contract.Array<T, Double, Adapter.AsDouble<?>> using, Adapter.AsDouble<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a double-returningAdapter
for the element type.- Parameters:
using
- the array Contract that will be used to produce the value returnedadapter
- an Adapter producing a representation of the array's element typewitness
- if not null, the top type the resulting adapter will produce, if a Type object can specify that more precisely than the default typing rules.c
- Configuration instance generated for this class
-
Array
protected Array(Adapter.Contract.Array<T, Integer, Adapter.AsInt<?>> using, Adapter.AsInt<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and an int-returningAdapter
for the element type.- Parameters:
using
- the array Contract that will be used to produce the value returnedadapter
- an Adapter producing a representation of the array's element typewitness
- if not null, the top type the resulting adapter will produce, if a Type object can specify that more precisely than the default typing rules.c
- Configuration instance generated for this class
-
Array
protected Array(Adapter.Contract.Array<T, Float, Adapter.AsFloat<?>> using, Adapter.AsFloat<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a float-returningAdapter
for the element type.- Parameters:
using
- the array Contract that will be used to produce the value returnedadapter
- an Adapter producing a representation of the array's element typewitness
- if not null, the top type the resulting adapter will produce, if a Type object can specify that more precisely than the default typing rules.c
- Configuration instance generated for this class
-
Array
protected Array(Adapter.Contract.Array<T, Short, Adapter.AsShort<?>> using, Adapter.AsShort<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a short-returningAdapter
for the element type.- Parameters:
using
- the array Contract that will be used to produce the value returnedadapter
- an Adapter producing a representation of the array's element typewitness
- if not null, the top type the resulting adapter will produce, if a Type object can specify that more precisely than the default typing rules.c
- Configuration instance generated for this class
-
Array
protected Array(Adapter.Contract.Array<T, Character, Adapter.AsChar<?>> using, Adapter.AsChar<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a char-returningAdapter
for the element type.- Parameters:
using
- the array Contract that will be used to produce the value returnedadapter
- an Adapter producing a representation of the array's element typewitness
- if not null, the top type the resulting adapter will produce, if a Type object can specify that more precisely than the default typing rules.c
- Configuration instance generated for this class
-
Array
protected Array(Adapter.Contract.Array<T, Byte, Adapter.AsByte<?>> using, Adapter.AsByte<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a byte-returningAdapter
for the element type.- Parameters:
using
- the array Contract that will be used to produce the value returnedadapter
- an Adapter producing a representation of the array's element typewitness
- if not null, the top type the resulting adapter will produce, if a Type object can specify that more precisely than the default typing rules.c
- Configuration instance generated for this class
-
Array
protected Array(Adapter.Contract.Array<T, Boolean, Adapter.AsBoolean<?>> using, Adapter.AsBoolean<?> adapter, Type witness, Adapter.Configuration c) Constructor for a leaf arrayAdapter
that is based on aContract.Array
and a boolean-returningAdapter
for the element type.- Parameters:
using
- the array Contract that will be used to produce the value returnedadapter
- an Adapter producing a representation of the array's element typewitness
- if not null, the top type the resulting adapter will produce, if a Type object can specify that more precisely than the default typing rules.c
- Configuration instance generated for this class
-