Package org.exolab.castor.jdo

Examples of org.exolab.castor.jdo.ObjectNotFoundException


            if ( _logInterceptor != null )
                _logInterceptor.loading( typeInfo.molder.getName(), oid.getIdentity() );
        } catch ( ObjectDeletedWaitingForLockException except ) {
            // This is equivalent to object does not exist
            throw new ObjectNotFoundException( Messages.format("persist.objectNotFound", oid.getName(), oid.getIdentity()));
        } finally {
            if ( lock != null ) lock.confirm( tx, succeed );
        }
        return oid;
    }
View Full Code Here


            */
        } catch ( ObjectModifiedException e ) {
            throw e;
        } catch ( ObjectDeletedWaitingForLockException except ) {
            // This is equivalent to object not existing
            throw new ObjectNotFoundException( Messages.format("persist.objectNotFound", oid.getName(), oid.getIdentity()) );
        } finally {
            if ( lock != null )
                lock.confirm( tx, succeed );
        }
    }
View Full Code Here

            // object has been created in this transaction, it cannot be
            // re-loaded but no error is reported.
            if ( entry.engine != engine )
                throw new PersistenceException( Messages.format("persist.multipleLoad", molder.getName(), identity ) );
            if ( entry.deleted )
                throw new ObjectNotFoundException( "Object is deleted" + molder.getName() + identity );
            // ssa, multi classloader feature
            // ssa, FIXME : Are the two following statements equivalent ?
            // if ( ! molder.getJavaClass().isAssignableFrom( entry.object.getClass() ) )
            if ( ! molder.getJavaClass( _db.getClassLoader() ).isAssignableFrom( entry.object.getClass() ) )
                throw new PersistenceException( Messages.format("persist.typeMismatch", molder.getName(), entry.object.getClass() ) );
View Full Code Here

TOP

Related Classes of org.exolab.castor.jdo.ObjectNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.