Spring Data Core

org.springframework.data.domain.jaxb
Class SortAdapter

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

public class SortAdapter
extends XmlAdapter<SpringDataJaxb.SortDto,Sort>

XmlAdapter to convert Sort instances into SpringDataJaxb.SortDto instances and vice versa.

Author:
Oliver Gierke

Field Summary
static SortAdapter INSTANCE
           
 
Constructor Summary
SortAdapter()
           
 
Method Summary
 SpringDataJaxb.SortDto marshal(Sort source)
           
 Sort unmarshal(SpringDataJaxb.SortDto 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 SortAdapter INSTANCE
Constructor Detail

SortAdapter

public SortAdapter()
Method Detail

marshal

public SpringDataJaxb.SortDto marshal(Sort source)
Specified by:
marshal in class XmlAdapter<SpringDataJaxb.SortDto,Sort>

unmarshal

public Sort unmarshal(SpringDataJaxb.SortDto source)
Specified by:
unmarshal in class XmlAdapter<SpringDataJaxb.SortDto,Sort>

Spring Data Core

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.