return cal;
}
ObjectStringConverter strConv =
ec.getNucleusContext().getTypeManager().getStringConverter(mmd.getType());
ObjectLongConverter longConv =
ec.getNucleusContext().getTypeManager().getLongConverter(mmd.getType());
Object returnValue = value;
if (strConv != null)
{
// Persisted as a String, so convert back
String strValue = (String)value;
returnValue = strConv.toObject(strValue);
}
else if (longConv != null)
{
// Persisted as a Long, so convert back
Long longValue = (Long)value;
returnValue = longConv.toObject(longValue);
}
if (sm != null)
{
// Wrap if SCO