/** Add a message to the verbose message buffer. * * @param msgId the message id */ private void addVerboseMessage(String msgId) { verboseBuffer.append(msg.msg(msgId)); verboseBuffer.append(NL); }
/** Add a message to the verbose message buffer. * * @param msgId the message id * @param where the parameter */ private void addVerboseMessage(String msgId, String where) { verboseBuffer.append(msg.msg(msgId, where)); verboseBuffer.append(NL); }
/** Add a message to the verbose message buffer. * * @param msgId the message id * @param where the parameter */ private void addVerboseMessage(String msgId, String... where) { verboseBuffer.append(msg.msg(msgId, where)); verboseBuffer.append(NL); }
/** Add a message to the verbose message buffer. * * @param msgId the message id * @param where the parameter */ private void addVerboseMessage(String msgId, String... where) { verboseBuffer.append(msg.msg(msgId, where)); verboseBuffer.append(NL); }
/** Add a message to the verbose message buffer. * * @param msgId the message id * @param where the parameter */ private void addVerboseMessage(String msgId, String where) { verboseBuffer.append(msg.msg(msgId, where)); verboseBuffer.append(NL); }
/** Add a message to the verbose message buffer. * * @param msgId the message id */ private void addVerboseMessage(String msgId) { verboseBuffer.append(msg.msg(msgId)); verboseBuffer.append(NL); }
/** JDK 1.4 includes a new chaining mechanism for Throwable, but since * JDO has its own "legacy" chaining mechanism, the "standard" mechanism * cannot be used. This method always throws a JDOFatalInternalException. * @param cause ignored. * @return never. */ public Throwable initCause(Throwable cause) { throw new JDOFatalInternalException(msg.msg("ERR_CannotInitCause")); }
/** Assert that the key is not null. Throw a JDONullIdentityException * if the given key is null. * @since 2.0 */ protected void assertKeyNotNull(Object key) { if (key == null) { throw new JDONullIdentityException( msg.msg("EXC_SingleFieldIdentityNullParameter")); //NOI18N } }
/** Assert that the key is not null. Throw a JDONullIdentityException * if the given key is null. * @param key The key to check * @since 2.0 */ protected void assertKeyNotNull(Object key) { if (key == null) { throw new JDONullIdentityException( msg.msg("EXC_SingleFieldIdentityNullParameter")); //NOI18N } }
/** 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; }
/** Create the key as an Object. * @return the key as an Object; * @since 2.0 */ protected Object createKeyAsObject() { throw new JDOFatalInternalException (msg.msg("EXC_CreateKeyAsObjectMustNotBeCalled")); }
public Object construct(String s) { try { return getLocale(s); } catch (Exception ex) { throw new JDOUserException(msg.msg( "EXC_LocaleStringConstructorException"), ex); //NOI18N } } });
/** Create the key as an Object. * @return the key as an Object; * @since 2.0 */ protected Object createKeyAsObject() { throw new JDOFatalInternalException (msg.msg("EXC_CreateKeyAsObjectMustNotBeCalled")); }
/** 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; }
/** JDK 1.4 includes a new chaining mechanism for Throwable, but since * JDO has its own "legacy" chaining mechanism, the "standard" mechanism * cannot be used. This method always throws a JDOFatalInternalException. * @param cause ignored. * @return never. */ public Throwable initCause(Throwable cause) { throw new JDOFatalInternalException(msg.msg("ERR_CannotInitCause")); }
public Object construct(String s) { try { return getLocale(s); } catch (Exception ex) { throw new JDOUserException(msg.msg( "EXC_LocaleStringConstructorException"), ex); //NOI18N } } });
public Object construct(String s) { try { return Currency.getInstance(s); } catch (IllegalArgumentException ex) { throw new javax.jdo.JDOUserException(msg.msg( "EXC_CurrencyStringConstructorIllegalArgument", //NOI18N s), ex); } catch (Exception ex) { throw new JDOUserException(msg.msg( "EXC_CurrencyStringConstructorException"), //NOI18N ex); } } });
public Object construct(String s) { try { return Currency.getInstance(s); } catch (IllegalArgumentException ex) { throw new javax.jdo.JDOUserException(msg.msg( "EXC_CurrencyStringConstructorIllegalArgument", //NOI18N s), ex); } catch (Exception ex) { throw new JDOUserException(msg.msg( "EXC_CurrencyStringConstructorException"), //NOI18N ex); } } });
/** Constructor with class and key. The String must have exactly one * character. * @param pcClass the target class * @param str the key */ public CharIdentity (Class pcClass, String str) { super(pcClass); assertKeyNotNull(str); if (str.length() != 1) throw new IllegalArgumentException( msg.msg("EXC_StringWrongLength")); //NOI18N construct(str.charAt(0)); }
/** Constructor with class and key. The String must have exactly one * character. * @param pcClass the target class * @param str the key */ public CharIdentity (Class pcClass, String str) { super(pcClass); assertKeyNotNull(str); if (str.length() != 1) throw new IllegalArgumentException( msg.msg("EXC_StringWrongLength")); //NOI18N construct(str.charAt(0)); }