|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.ejb21.sql.SqlTimestampFieldMapping
public class SqlTimestampFieldMapping
Conversion java.util.Date <-> java.sql.Timestamp.
The StorageType is the JORM type, and the MemoryType is the JOnAS type (bean field type).
| Constructor Summary | |
|---|---|
SqlTimestampFieldMapping()
|
|
| Method Summary | |
|---|---|
static Class |
getMemoryType()
Retrieves the java type corresponding to the type in memory. |
static Class |
getStorageType()
Retrieves the java type corresponding to the type into the data support. |
static Object |
toMemory(Object storagevalue)
Converts a value from the data support into a value in memory |
static Object |
toStorage(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 |
|---|
public SqlTimestampFieldMapping()
| Method Detail |
|---|
public static Class getStorageType()
public static Class getMemoryType()
public static Object toMemory(Object storagevalue)
storagevalue - is the value store in the support (can be null).
public static Object toStorage(Object memoryvalue)
memoryvalue - the value in memory (can be null).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||