Package org.jpox.exceptions

Examples of org.jpox.exceptions.JPOXObjectNotFoundException


        ClassLoaderResolver clr = myOM.getClassLoaderResolver();
        String className = getStoreManager().getClassNameForObjectID(myID, clr, myOM);
        if (className == null)
        {
            // className is null when id class exists, and object has been validated and doesn't exist.
            throw new JPOXObjectNotFoundException(LOCALISER.msg("026013"), myID);
        }
        else if (!cmd.getFullClassName().equals(className))
        {
            Class pcClass;
            try
View Full Code Here


                // Find the class name for this object id so we can attempt to generate it
                // className is null when id class exists, and object has been validated and doesn't exist
                String className = getStoreManager().getClassNameForObjectID(id, clr, this);
                if (className == null)
                {
                    throw new JPOXObjectNotFoundException(LOCALISER.msg("010026"), id);
                }

                if (id instanceof OID)
                {
                    id = OIDFactory.getInstance(this, className, ((OID)id).getKeyValue());
View Full Code Here

                        className = originalClassName;
                    }
   
                    if (className == null)
                    {
                        throw new JPOXObjectNotFoundException(LOCALISER.msg("010026"), id);
                    }
   
                    if (originalClassName != null && !originalClassName.equals(className))
                    {
                        // Inheritance checking has found a different inherited
View Full Code Here

                    ResultSet rs = sqlControl.executeStatementQuery(mconn, textStmt, ps);
                    try
                    {
                        if (!rs.next())
                        {
                            throw new JPOXObjectNotFoundException("No such database row", sm.getInternalObjectId());
                        }

                        int jdbcMajorVersion = ((DatabaseAdapter)datastoreContainer.getStoreManager().getDatastoreAdapter()).getDriverMajorVersion();
                        if (jdbcMajorVersion < 10)
                        {
View Full Code Here

                    try
                    {
                        if (!rs.next())
                        {
                            throw new JPOXObjectNotFoundException("No such database row", sm.getInternalObjectId());
                        }

                        int jdbcMajorVersion = ((DatabaseAdapter)datastoreContainer.getStoreManager().getDatastoreAdapter()).getDriverMajorVersion();
                        if (jdbcMajorVersion < 10)
                        {
View Full Code Here

                        {
                            if (!rs.next())
                            {
                                JPOXLogger.DATASTORE_RETRIEVE.warn(LOCALISER.msg("050018",
                                    sm.getInternalObjectId()));
                                throw new JPOXObjectNotFoundException("No such database row", sm.getInternalObjectId());
                            }
                            sm.replaceFields(consumer.getNumbersOfFieldsToBeFetched(),
                                new ResultSetGetter(sm, rs, mappingStatementIndex.getFields()));

                            if (sm.getTransactionalVersion(sm.getObject()) == null)
View Full Code Here

                        {
                            if (!rs.next())
                            {
                                JPOXLogger.DATASTORE_RETRIEVE.info(LOCALISER.msg("050018",
                                    sm.getInternalObjectId()));
                                throw new JPOXObjectNotFoundException("No such database row", sm.getInternalObjectId());
                            }
                        }
                        finally
                        {
                            rs.close();
View Full Code Here

TOP

Related Classes of org.jpox.exceptions.JPOXObjectNotFoundException

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.