org.datanucleus.store.types
Interface ObjectLongConverter

All Known Implementing Classes:
DateLongConverter

public interface ObjectLongConverter

Interface for an object that can be converted to/from a Long. Used for datastores that allow persistence of Longs but not of a native Java type.


Field Summary
static Localiser LOCALISER
          Localiser for messages
 
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.
 

Field Detail

LOCALISER

static final Localiser LOCALISER
Localiser for messages

Method Detail

toLong

java.lang.Long toLong(java.lang.Object obj)
Method to convert from the object to its Long form

Parameters:
obj - The object
Returns:
Long form

toObject

java.lang.Object toObject(java.lang.Long value)
Method to convert from Long back to the object.

Parameters:
value - The long
Returns:
The object


Copyright © 2011. All Rights Reserved.