Class Adapter.Service

java.lang.Object
org.postgresql.pljava.Adapter.Service
Enclosing class:
Adapter<T,U>

public abstract static class Adapter.Service extends Object
Specification of a service supplied by the internals module for certain operations, such as specially instantiating array adapters based on ArrayBuilders constructed here.
  • 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 an ArrayBuilder (which wraps this Adapter and can describe the resulting array type), and an TypeWrapper.

      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

      protected AbstractType.MultiArray multiArray(Adapter.ArrayBuilder<?,?> builder)
      An upcall from the implementation layer to obtain the MultiArray from an ArrayBuilder without cluttering the latter's exposed API.
    • adapter

      protected Adapter<?,?> adapter(Adapter.ArrayBuilder<?,?> builder)
      An upcall from the implementation layer to obtain the Adapter wrapped by an ArrayBuilder without cluttering the latter's exposed API.