org.jboss.test.cmp2.enums.ejb
Class IDClass

java.lang.Object
  extended byorg.jboss.test.cmp2.enums.ejb.IDClass
All Implemented Interfaces:
Mapper (src) , java.io.Serializable

public class IDClass
extends java.lang.Object
implements java.io.Serializable, Mapper (src)

See Also:
Serialized Form

Field Summary
 long id
           
 
Constructor Summary
IDClass()
           
IDClass(long id)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 long getId()
           
 int hashCode()
           
 void setId(long id)
           
 java.lang.Object toColumnValue(java.lang.Object fieldValue)
          This method is called when CMP field is stored.
 java.lang.Object toFieldValue(java.lang.Object columnValue)
          This method is called when CMP field is loaded.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public long id
Constructor Detail

IDClass

public IDClass()

IDClass

public IDClass(long id)
Method Detail

getId

public long getId()

setId

public void setId(long id)

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

toString

public java.lang.String toString()

toColumnValue

public java.lang.Object toColumnValue(java.lang.Object fieldValue)
Description copied from interface: Mapper (src)
This method is called when CMP field is stored.

Specified by:
toColumnValue in interface Mapper (src)
Parameters:
fieldValue - - CMP field value
Returns:
column value.

toFieldValue

public java.lang.Object toFieldValue(java.lang.Object columnValue)
Description copied from interface: Mapper (src)
This method is called when CMP field is loaded.

Specified by:
toFieldValue in interface Mapper (src)
Parameters:
columnValue - - loaded column value.
Returns:
CMP field value.