Top Description Inners Fields Constructors Methods
org.jooq.impl

public Class AbstractXMLasObjectBinding<T>

extends AbstractXMLBinding<T>
Class Inheritance
Static Imports
java.beans.Introspector.decapitalize

A binding that binds JAXB-annotated Object types to SQLXML types from your database.

Subtypes may extend this type to provide actual bound type.

Author
Lukas Eder

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final Converter<XML, T>

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public final Converter<XML, T>
converter()

Implements org.jooq.Binding.converter.

A converter that can convert between the database type and the custom type.
Inherited from org.jooq.impl.AbstractXMLBinding:
getgetgetregistersetsetsql

Field Detail

converterback to summary
private final Converter<XML, T> converter

Constructor Detail

AbstractXMLasObjectBindingback to summary
protected AbstractXMLasObjectBinding(final Class<T> theType)

Method Detail

converterback to summary
public final Converter<XML, T> converter()

Implements org.jooq.Binding.converter.

Doc from org.jooq.Binding.converter.

A converter that can convert between the database type and the custom type.

Annotations
@Override
org.jooq.impl back to summary

private final Class AbstractXMLasObjectBinding.XMLasObjectConverter<T>

extends AbstractContextConverter<XML, T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv transient JAXBContext
pack-priv XmlRootElement

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public T
from(XML
The database object.
t
,
ConverterContext
The context of this conversion.
scope
)

Implements org.jooq.ContextConverter.from.

Read and convert a database object to a user object.
private final JAXBContext
private void
public XML
to(T
The user object.
u
,
ConverterContext
The context of this conversion.
scope
)

Implements org.jooq.ContextConverter.to.

Convert and write a user object to a database object.
private void
Inherited from org.jooq.impl.AbstractContextConverter:
toString

Field Detail

ctxback to summary
pack-priv transient JAXBContext ctx
rootback to summary
pack-priv XmlRootElement root

Constructor Detail

XMLasObjectConverterback to summary
private XMLasObjectConverter(Class<T> type)

Method Detail

fromback to summary
public T from(XML t, ConverterContext scope)

Implements org.jooq.ContextConverter.from.

Doc from org.jooq.ContextConverter.from.

Read and convert a database object to a user object.

Parameters
t:XML

The database object.

scope:ConverterContext

The context of this conversion.

Returns:T

The user object.

Annotations
@Override
initCtxback to summary
private final JAXBContext initCtx()
readObjectback to summary
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
toback to summary
public XML to(T u, ConverterContext scope)

Implements org.jooq.ContextConverter.to.

Doc from org.jooq.ContextConverter.to.

Convert and write a user object to a database object.

Parameters
u:T

The user object.

scope:ConverterContext

The context of this conversion.

Returns:XML

The database object.

Annotations
@Override
writeObjectback to summary
private void writeObject(ObjectOutputStream oos) throws IOException