Package org.postgresql.pljava.pg.adt
Class XMLAdapter.Synthetic
java.lang.Object
org.postgresql.pljava.Adapter<SQLXML,Void>
org.postgresql.pljava.Adapter.As<SQLXML,Void>
org.postgresql.pljava.pg.adt.XMLAdapter
org.postgresql.pljava.pg.adt.XMLAdapter.Synthetic
- All Implemented Interfaces:
Adapter.ArrayProto<SQLXML[]>
,SlotTester.Visible
- Enclosing class:
XMLAdapter
Adapter for use when the PostgreSQL type is not actually XML, but
to be synthetically rendered as XML (such as
pg_node_tree
).
This is, for now, a very thin wrapper over
SQLXMLImpl.newReadable
, which (so far) is still where the
type-specific rendering logic gets chosen, but that can be refactored
eventually.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.postgresql.pljava.pg.adt.XMLAdapter
XMLAdapter.Synthetic
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.TypeWrapper, Adapter.Via -
Field Summary
Fields inherited from class org.postgresql.pljava.pg.adt.XMLAdapter
INSTANCE, SYNTHETIC_INSTANCE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
<T extends InputStream & Datum>
SQLXMLfetch
(Attribute a, Datum.Input<T> in) Methods inherited from class org.postgresql.pljava.Adapter.As
arrayOf, canFetchNull, fetch, fetchNull
Methods inherited from class org.postgresql.pljava.Adapter
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
-
Method Details
-
canFetch
- Overrides:
canFetch
in classXMLAdapter
-
fetch
public <T extends InputStream & Datum> SQLXML fetch(Attribute a, Datum.Input<T> in) throws SQLException, IOException - Overrides:
fetch
in classXMLAdapter
- Throws:
SQLException
IOException
-