public static EDBObject convertJPAObjectToEDBObject ( JPAObject object ) { EDBObject result = new EDBObject ( object . getOID ( ) ) ; for ( JPAEntry kvp : object . getEntries ( ) ) { EDBObjectEntry entry = convertJPAEntryToEDBObjectEntry ( kvp ) ; result . put ( entry . getKey ( ) , entry ) ; } result . setDeleted ( object . isDeleted ( ) ) ; if ( object . getTimestamp ( ) != null ) { result . updateTimestamp ( object . getTimestamp ( ) ) ; } return result ; }
Converts a JPAObject object into an EDBObject .