org.objectweb.speedo.lib
Class SqlTimestampFieldMapping

java.lang.Object
  extended byorg.objectweb.speedo.lib.SqlTimestampFieldMapping
All Implemented Interfaces:
UserFieldMapping

public class SqlTimestampFieldMapping
extends java.lang.Object
implements UserFieldMapping

Author:
S.Chassande-Barrioz

Constructor Summary
SqlTimestampFieldMapping()
           
 
Method Summary
 java.lang.Class getMemoryType()
          Retrieves the java type corresponding to the type in memory.
 java.lang.Class getStorageType()
          Retrieves the java type corresponding to the type into the data support.
 java.lang.Object toMemory(java.lang.Object storagevalue)
          Converts a value from the data support into a value in memory
 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 java.lang.Class getStorageType()
Retrieves the java type corresponding to the type into the data support.

Specified by:
getStorageType in interface UserFieldMapping
Returns:
a Class object (never null).

getMemoryType

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

Specified by:
getMemoryType in interface UserFieldMapping
Returns:
a Class object (never null).

toMemory

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

Specified by:
toMemory in interface UserFieldMapping
Parameters:
storagevalue - is the value store in the support (can be null).
Returns:
the value in memory (can be null).

toStorage

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

Specified by:
toStorage in interface UserFieldMapping
Parameters:
memoryvalue - the value in memory (can be null).
Returns:
is the value store in the support (can be null).