org.objectweb.jonas_ejb.lib
Class SqlTimestampFieldMapping

java.lang.Object
  extended by org.objectweb.jonas_ejb.lib.SqlTimestampFieldMapping

public class SqlTimestampFieldMapping
extends java.lang.Object

Conversion java.util.Date <-> java.sql.Timestamp.
The StorageType is the JORM type, and the MemoryType is the JOnAS type (bean field type).

Author:
Helene Joanin

Constructor Summary
SqlTimestampFieldMapping()
           
 
Method Summary
static java.lang.Class getMemoryType()
          Retrieves the java type corresponding to the type in memory.
static java.lang.Class getStorageType()
          Retrieves the java type corresponding to the type into the data support.
static java.lang.Object toMemory(java.lang.Object storagevalue)
          Converts a value from the data support into a value in memory
static java.lang.Object toStorage(java.lang.Object memoryvalue)
          Converts a value from the data support into a value in memory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlTimestampFieldMapping

public SqlTimestampFieldMapping()
Method Detail

getStorageType

public static java.lang.Class getStorageType()
Retrieves the java type corresponding to the type into the data support.

Returns:
a Class object (never null).

getMemoryType

public static java.lang.Class getMemoryType()
Retrieves the java type corresponding to the type in memory.

Returns:
a Class object (never null).

toMemory

public static java.lang.Object toMemory(java.lang.Object storagevalue)
Converts a value from the data support into a value in memory

Parameters:
storagevalue - is the value store in the support (can be null).
Returns:
the value in memory (can be null).

toStorage

public static java.lang.Object toStorage(java.lang.Object memoryvalue)
Converts a value from the data support into a value in memory

Parameters:
memoryvalue - the value in memory (can be null).
Returns:
is the value store in the support (can be null).