intarsys runtime library

de.intarsys.tools.jaxb
Class TimestampAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<Long,Timestamp>
      extended by de.intarsys.tools.jaxb.TimestampAdapter

public class TimestampAdapter
extends XmlAdapter<Long,Timestamp>

Marshalling java timestamps.


Constructor Summary
TimestampAdapter()
           
 
Method Summary
 Long marshal(Timestamp v)
           
 Timestamp unmarshal(Long v)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampAdapter

public TimestampAdapter()
Method Detail

marshal

public Long marshal(Timestamp v)
             throws Exception
Specified by:
marshal in class XmlAdapter<Long,Timestamp>
Throws:
Exception

unmarshal

public Timestamp unmarshal(Long v)
                    throws Exception
Specified by:
unmarshal in class XmlAdapter<Long,Timestamp>
Throws:
Exception

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.