org.datanucleus.store.types
Class DateLongConverter

java.lang.Object
  extended by org.datanucleus.store.types.DateLongConverter
All Implemented Interfaces:
ObjectLongConverter

public class DateLongConverter
extends java.lang.Object
implements ObjectLongConverter

Class to handle the conversion between java.util.Date and a Long form.


Field Summary
 
Fields inherited from interface org.datanucleus.store.types.ObjectLongConverter
LOCALISER
 
Constructor Summary
DateLongConverter()
           
 
Method Summary
 java.lang.Long toLong(java.lang.Object obj)
          Method to convert from the object to its Long form
 java.lang.Object toObject(java.lang.Long value)
          Method to convert from Long back to the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateLongConverter

public DateLongConverter()
Method Detail

toObject

public java.lang.Object toObject(java.lang.Long value)
Description copied from interface: ObjectLongConverter
Method to convert from Long back to the object.

Specified by:
toObject in interface ObjectLongConverter
Parameters:
value - The long
Returns:
The object

toLong

public java.lang.Long toLong(java.lang.Object obj)
Description copied from interface: ObjectLongConverter
Method to convert from the object to its Long form

Specified by:
toLong in interface ObjectLongConverter
Parameters:
obj - The object
Returns:
Long form


Copyright © 2011. All Rights Reserved.