Package javax.jdo

Examples of javax.jdo.JDOFatalUserException


     */
    public boolean getIgnoreCache()
    {
        if (om.isClosed())
        {
            throw new JDOFatalUserException(LOCALISER.msg("010002"));
        }
        return om.getBooleanProperty(ObjectManager.PROP_IGNORE_CACHE);
    }
View Full Code Here


     */
    public boolean getMultithreaded()
    {
        if (om.isClosed())
        {
            throw new JDOFatalUserException(LOCALISER.msg("010002"));
        }
        return om.getBooleanProperty(ObjectManager.PROP_MULTITHREADED);
    }
View Full Code Here

            }
            getConfiguration().setPersistenceProperties(pmfProps);
        }
        catch (IllegalArgumentException iae)
        {
            throw new JDOFatalUserException("Exception thrown setting persistence properties", iae);
        }
        catch (NucleusException jpe)
        {
            // Only throw JDOException and subclasses
            throw NucleusJDOHelper.getJDOExceptionForNucleusException(jpe);
View Full Code Here

                found = results.getString("TABLE_NAME").equals(tableName);
            }
            if (!found) {
                // The table doesn't exist.
                logger.warning("Table doesn't exist in metadata: " + tableName);
                throw new JDOFatalUserException(I18N.msg("E_no_table_in_db", tableName));
            }

            // Snag all of the primary key column names, which we'll use
            // as we iterate through the tables columns.
            results = metadata.getPrimaryKeys(null, null, tableName);
View Full Code Here

    /**
     * Clears all data from the factory-wide cache.
     */
    public static void clearCache(PersistenceManagerFactory factory) {
        if (!(factory instanceof InterfaceManagerFactory)) {
            throw new JDOFatalUserException(I18N.msg("E_non_xorm_pmf"));
        }
        ((InterfaceManagerFactory) factory).clearCache();
    }
View Full Code Here

            columnToUse = mapping.getTarget().getColumn();
        }
        else {
            // How did we get here?  An exception should have been
            // thrown in ModelMapping.parseRelationship
            throw new JDOFatalUserException(I18N.msg("E_collection_no_source"));
        }
 
        Selector selector = new Selector
            (columnToUse.getTable(),
             new SimpleCondition(columnToUse, Operator.EQUAL, ownerPKey));
View Full Code Here

            TransactionImpl txn = (TransactionImpl) owner.getInterfaceManager().currentTransaction();
            if (txn.isActive()) {
                txn.attachRelationship(this);
                txnManaged = true;
            } else {
                throw new JDOFatalUserException(I18N.msg("E_modify_collection"));
            }
        }
    }
View Full Code Here

            InputStream testStream = getClass().getResourceAsStream(databaseXML);
            if(testStream == null){
              testStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(databaseXML);
            }
            if(testStream == null) {
                throw new JDOFatalUserException(I18N.msg("E_locate_db_xml", databaseXML))
            }
            InputSource inputSource = new InputSource(testStream);

            // Fake out Crimson
            inputSource.setSystemId(getClass().getResource(DATABASE_DTD).toString());
View Full Code Here

                            dsi = Class.forName(extension.getValue());
                        } else if ("table".equals(key)) {
                            String tableName = extension.getValue();
                            t = getTable(tableName);
                            if (t == null) {
                                throw new JDOFatalUserException(I18N.msg("E_no_table_definition", tableName));
                            }
                        }
                    }
                }
   
                if (t == null && !useDefaultMapping) {
                    throw new JDOFatalUserException(I18N.msg("E_no_table", c.getName()));
                }

                classMapping.setTable(t);
                classMapping.setDatastoreIdentityType(dsi);
                addClassMapping(classMapping);
View Full Code Here

                if (XORM_VENDOR_NAME.equals(extension.getVendorName())) {
                    String key = extension.getKey();
                    if ("column".equals(key)) {
                        Column c2 = t.getColumnByName(extension.getValue());
                        if (c2 == null) {
                            throw new JDOFatalUserException(I18N.msg("E_no_column", extension.getValue(), t.getName(), jdoClass.getName()));
                        }
                        classMapping.setColumn(field.getName(), c2, field.isDefaultFetchGroup());
                        if (field.getNullValue().equals(JDONullValue.EXCEPTION)) {
                            // TODO: should this be done here?
                            c2.setNonNull(true);
View Full Code Here

TOP

Related Classes of javax.jdo.JDOFatalUserException

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.