Package org.exolab.castor.jdo

Examples of org.exolab.castor.jdo.ClassNotPersistenceCapableException


        while ((i < _engines.length) && (molder == null)) {
            molder = _engines[i++].getClassMolderWithDependent(type);
        }
       
        if (molder == null) {
            throw new ClassNotPersistenceCapableException(Messages.format(
                    "persist.classNotPersistenceCapable", type.getName()));
        } else if (molder.isDependent()) {
            throw new ClassNotPersistenceCapableException(Messages.format(
                    "persist.classIsDependent", type.getName(), molder.getDepends().getName()));
        }
       
        return molder;
    }
View Full Code Here


    public OID load(final TransactionContext tx, final OID oid, final ProposedEntity proposedObject,
            final AccessMode suggestedAccessMode, final int timeout, final QueryResults results)
    throws PersistenceException {
        TypeInfo typeInfo = (TypeInfo) _typeInfo.get(oid.getName());
        if (typeInfo == null) {
            throw new ClassNotPersistenceCapableException(Messages.format(
                    "persist.classNotPersistenceCapable", oid.getName()));
        }

        ClassMolder molder = oid.getMolder();
        AccessMode accessMode = molder.getAccessMode(suggestedAccessMode);
View Full Code Here

        TypeInfo   typeInfo;
        typeInfo = (TypeInfo) _typeInfo.get(oid.getName());

        if (typeInfo == null) {
            throw new ClassNotPersistenceCapableException(Messages.format(
                    "persist.classNotPersistenceCapable", oid.getName()));
        }
        typeInfo._molder.markCreate(tx, oid, null, object);
    }
View Full Code Here

        OID newoid;
        boolean succeed;

        typeInfo = (TypeInfo) _typeInfo.get(object.getClass().getName());
        if (typeInfo == null) {
            throw new ClassNotPersistenceCapableException(Messages.format(
                    "persist.classNotPersistenceCapable", object.getClass().getName()));
        }
           
        lock = null;
View Full Code Here

    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;
View Full Code Here

        boolean    succeed;
        ObjectLock lock;
        typeInfo = (TypeInfo) _typeInfo.get(oid.getName());
        if (typeInfo == null) {
            throw new ClassNotPersistenceCapableException(Messages.format(
                    "persist.classNotPersistenceCapable", oid.getName()));
        }
  
        succeed = false;
        lock = null;
View Full Code Here

        boolean    succeed;
        short      action;

        typeInfo = (TypeInfo) _typeInfo.get( oid.getName() );
        if ( typeInfo == null )
            throw new ClassNotPersistenceCapableException( Messages.format("persist.classNotPersistenceCapable", oid.getName() ) );

        ClassMolder molder = oid.getMolder();
        AccessMode accessMode = molder.getAccessMode( suggestedAccessMode );

        succeed = false;
View Full Code Here

        TypeInfo   typeInfo;
        typeInfo = (TypeInfo) _typeInfo.get( oid.getName() );

        if ( typeInfo == null )
           throw new ClassNotPersistenceCapableException( Messages.format("persist.classNotPersistenceCapable", oid.getName() ) );

        typeInfo.molder.markCreate( tx, oid, null, object );
    }
View Full Code Here

        OID newoid;
        boolean succeed;

        typeInfo = (TypeInfo) _typeInfo.get( object.getClass().getName() );
        if ( typeInfo == null )
            throw new ClassNotPersistenceCapableException( Messages.format( "persist.classNotPersistenceCapable", object.getClass().getName()) );
           
        lock = null;

        if ( oid.getIdentity() != null ) {
View Full Code Here

        // If the object is new, don't try to load it from the cache

        typeInfo = (TypeInfo) _typeInfo.get( oid.getName() );
        if ( typeInfo == null )
            throw new ClassNotPersistenceCapableException( Messages.format("persist.classNotPersistenceCapable", oid.getName() ) );

        //accessMode = typeInfo.molder.getAccessMode( suggestedAccessMode );
        //write = ( accessMode == AccessMode.Exclusive || accessMode == AccessMode.DbLocked );
        succeed = false;
        lock = null;
View Full Code Here

TOP

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

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.