/** * Method to assert if this Query is open. * @throws JDOFatalUserException if the Query is closed. */ protected void assertIsOpen() { if (closed) { throw new JDOFatalUserException(Localiser.msg("011100")); } } }
public JdoUsageException(JDOFatalUserException ex) { super(ex.getMessage(), ex); }
public void printStackTrace(PrintStream s) { super.printStackTrace(s); if (cause != null) { cause.printStackTrace(s); } }
/** Look up the metadata for a <code>PersistenceCapable</code> class. * @param pcClass the <code>Class</code>. * @return the <code>Meta</code> for the <code>Class</code>. */ private static Meta getMeta (Class pcClass) { Meta ret = (Meta) registeredClasses.get (pcClass); if (ret == null) { throw new JDOFatalUserException( msg.msg ("ERR_NoMetadata", pcClass.getName())); //NOI18N } return ret; }
public JdoUsageException(JDOFatalUserException ex) { super(ex.getMessage(), ex); }
public void printStackTrace(PrintWriter s) { super.printStackTrace(s); if (cause != null) { cause.printStackTrace(s); } } }
/** Look up the metadata for a <code>PersistenceCapable</code> class. * @param pcClass the <code>Class</code>. * @return the <code>Meta</code> for the <code>Class</code>. */ private static Meta getMeta (Class pcClass) { Meta ret = (Meta) registeredClasses.get (pcClass); if (ret == null) { throw new JDOFatalUserException( msg.msg ("ERR_NoMetadata", pcClass.getName())); //NOI18N } return ret; }
fail(); } catch (JDOFatalUserException e) { assertTrue(e.getMessage(), e.getMessage().contains("closed"));
public void printStackTrace() { super.printStackTrace(); if (cause != null) { cause.printStackTrace(); } }
private void checkOpenIgnoreTx() { if (isClosed()) { throw new JDOFatalUserException("PersistenceManager is closed."); } }
public Object run() { try { myPC.jdoReplaceStateManager(thisSM); return null; } catch (SecurityException e) { throw new JDOFatalUserException("EXC_CannotSetStateManager", e); } } });
/** * Method to associate a sideB identifier with a sideA ColumnMetaData * @param identifier side B identifier * @param colmd side A ColumnMetaData */ private void putColumn(DatastoreIdentifier identifier, ColumnMetaData colmd) { if (columnMetaDataBySideBIdentifier.put(identifier, colmd) != null) { throw new JDOFatalUserException(LOCALISER.msg("RDBMS.CorrespondentColumnsMapping.ColumnMappedTwice", identifier, columnsName)); } } }
/** * Access a field in an array * @param subfieldName the field to be accessed in this object * @param innerJoin whether to inner join * @return The field expression representing the required field of this object */ public ScalarExpression accessField(String subfieldName, boolean innerJoin) { if( !subfieldName.endsWith("length") ) { throw new JDOFatalUserException("The field "+subfieldName+" is not accessible in an array"); } return sizeMethod(); }
public Object run() { try { return JDOImplHelper.getInstance(); } catch (SecurityException e) { throw new JDOFatalUserException(LOCALISER.msg("026000"), e); } } });
throw new JDOFatalUserException(msg, e); throw new JDOFatalUserException(msg, e); throw new JDOFatalUserException(msg, e);
/** * Method to assert if this Query is open. * @throws JDOFatalUserException if the Query is closed. */ protected void assertIsOpen() { if (isClosed()) { throw new JDOFatalUserException(Localiser.msg("011100")); } } }
/** * Method to assert if this Persistence Manager is open. * @throws JDOFatalUserException if the PM is closed. */ protected void assertIsOpen() { if (isClosed()) { throw new JDOFatalUserException(Localiser.msg("011000")); } }
/** * Method to assert if this Persistence Manager is open. Throws a * JDOFatalUserException if it has been closed. */ private void assertIsOpen() { if (isClosed()) { throw new JDOFatalUserException(LOCALISER.msg("PM.IsClosed")); } }
/** * Method to assert if this Persistence Manager is open. Throws a * JDOFatalUserException if it has been closed. */ private void assertIsOpen() { if (isClosed()) { throw new JDOFatalUserException(LOCALISER.msg("PM.IsClosed")); } }
public Object run() { try { return JDOImplHelper.getInstance(); } catch (SecurityException e) { throw new JDOFatalUserException(LOCALISER.msg("StateManager.SecurityProblem"), e); } } });