public boolean update(final TransactionContext tx, final OID oid, final Object object,
final AccessMode suggestedAccessMode, final int timeout) throws PersistenceException {
// If the object is new, don't try to load it from the cache
TypeInfo typeInfo = (TypeInfo) _typeInfo.get(oid.getName());
if (typeInfo == null) {
throw new ClassNotPersistenceCapableException(Messages.format(
"persist.classNotPersistenceCapable", oid.getName()));
}
boolean succeed = false;
ObjectLock lock = null;