Spring Data Commons

org.springframework.data.domain.jaxb
Class OrderAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<SpringDataJaxb.OrderDto,Sort.Order>
      extended by org.springframework.data.domain.jaxb.OrderAdapter

public class OrderAdapter
extends XmlAdapter<SpringDataJaxb.OrderDto,Sort.Order>

XmlAdapter to convert Sort.Order instances into SpringDataJaxb.OrderDtos and vice versa.

Author:
Oliver Gierke

Field Summary
static OrderAdapter INSTANCE
           
 
Constructor Summary
OrderAdapter()
           
 
Method Summary
 SpringDataJaxb.OrderDto marshal(Sort.Order order)
           
 Sort.Order unmarshal(SpringDataJaxb.OrderDto source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final OrderAdapter INSTANCE
Constructor Detail

OrderAdapter

public OrderAdapter()
Method Detail

marshal

public SpringDataJaxb.OrderDto marshal(Sort.Order order)
                                throws Exception
Specified by:
marshal in class XmlAdapter<SpringDataJaxb.OrderDto,Sort.Order>
Throws:
Exception

unmarshal

public Sort.Order unmarshal(SpringDataJaxb.OrderDto source)
                     throws Exception
Specified by:
unmarshal in class XmlAdapter<SpringDataJaxb.OrderDto,Sort.Order>
Throws:
Exception

Spring Data Commons

Copyright © 2012. All Rights Reserved.