Package javax.jdo

Examples of javax.jdo.JDOException


     */
    public BCELImplementationGenerator(ClassMetaData classMetaData, String implClassName)
    {
        super(classMetaData, implClassName);
        fullSuperclassName = classMetaData.getFullClassName();
        throw new JDOException(
            "JPOX doesnt currently support generating implementations of abstract classes with the BCEL generator");
    }
View Full Code Here


                        interfaces[i].getClassLoader(), PersistenceCapable.class.getClassLoader());
                }
            }
            implementedInterfacesMsg += "]";

            throw new JDOException(LOCALISER.msg("ImplementationCreator.NotPCProblem", implFullClassName,
                classLoaderPCMsg, implementedInterfacesMsg));
        }
    }
View Full Code Here

                        interfaces[i].getClassLoader(), PersistenceCapable.class.getClassLoader());
                }
            }
            implementedInterfacesMsg += "]";

            throw new JDOException(LOCALISER.msg("ImplementationCreator.NotPCProblem", implFullClassName,
                classLoaderPCMsg, implementedInterfacesMsg));
        }
    }
View Full Code Here

    public PersistenceManager getPersistenceManager() {
        try {
            return (PersistenceManager) getConnection();
        } catch (ResourceException e) {
            throw new JDOException("JDO Connector: problem while getting a PersistenceManager.", e);
        }
    }
View Full Code Here

      PersistenceManager pm = (PersistenceManager)
          getConnection(new SpeedoConnectionSpec(s, s1));
      pm.currentTransaction();
            return pm;
        } catch (ResourceException e) {
            throw new JDOException("JDO Connector: problem while getting a PersistenceManager.", e);
        }
    }
View Full Code Here

    //------------------------------------------------//
    public void evict(Object oid) {
        try {
            tpm.evict(null, oid, false);
        } catch (PersistenceException e) {
            throw new JDOException("Error during the eviction of an entry: ", e);
        }
    }
View Full Code Here

                    Object o = ce.getCeObject();
                    return o != null && classesToEvict.contains(o.getClass());
                }
            }, false);
        } catch (CacheException e) {
            throw new JDOException("Error during the eviction of entries of the class '"
                    + clazz.getName() + "' with"
                    + (subClasses ? "" : "out") + " sub classes: ", e);
        }
    }
View Full Code Here

    public void evictAll(Collection oids) {
        try {
            unbindManager.unbind(oids, false);
        } catch (CacheException e) {
            throw new JDOException("Error during the eviction of an entry: ", e);
        }
    }
View Full Code Here

    }
    public void evictAll() {
        try {
            unbindManager.unbindUnfixed(false);
        } catch (CacheException e) {
            throw new JDOException("Error during the eviction of an entry: ", e);
        }
    }
View Full Code Here

                    return ((FixableCacheEntry) ce).getCeFixCount() == 0
                      && o != null && classesToPin.contains(o.getClass());
                }
            });
        } catch (CacheException e) {
            throw new JDOException("Error during the eviction of entries of the class '"
                    + clazz.getName() + "' with"
                    + (subClasses ? "" : "out") + " sub classes: ", e);
        }
        // TODO: pin forever
    }
View Full Code Here

TOP

Related Classes of javax.jdo.JDOException

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.