java.lang.Object
org.postgresql.pljava.Adapter.Service
Specification of a service supplied by the internals module for certain
operations, such as specially instantiating array adapters based on
ArrayBuilder
s constructed here.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Adapter
<?, ?> adapter
(Adapter.ArrayBuilder<?, ?> builder) An upcall from the implementation layer to obtain theAdapter
wrapped by anArrayBuilder
without cluttering the latter's exposed API.protected abstract <TA,
TI> Adapter.Array <TA> buildArrayAdapterImpl
(Adapter.ArrayBuilder<TA, TI> builder, org.postgresql.pljava.Adapter.TypeWrapper w) Builds an array adapter, given anArrayBuilder
(which wraps thisAdapter
and can describe the resulting array type), and anTypeWrapper
.protected AbstractType.MultiArray
multiArray
(Adapter.ArrayBuilder<?, ?> builder) An upcall from the implementation layer to obtain theMultiArray
from anArrayBuilder
without cluttering the latter's exposed API.
-
Constructor Details
-
Service
public Service()
-
-
Method Details
-
buildArrayAdapterImpl
protected abstract <TA,TI> Adapter.Array<TA> buildArrayAdapterImpl(Adapter.ArrayBuilder<TA, TI> builder, org.postgresql.pljava.Adapter.TypeWrapper w) Builds an array adapter, given anArrayBuilder
(which wraps thisAdapter
and can describe the resulting array type), and anTypeWrapper
.The
TypeWrapper
is a contrivance so that the computed array type can be passed back up through the constructors in a non-racy way. -
multiArray
An upcall from the implementation layer to obtain theMultiArray
from anArrayBuilder
without cluttering the latter's exposed API. -
adapter
An upcall from the implementation layer to obtain theAdapter
wrapped by anArrayBuilder
without cluttering the latter's exposed API.
-