com.triactive.jdo.model
Class ClassMetaDataMismatchException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjavax.jdo.JDOException
                  extended byjavax.jdo.JDOFatalException
                      extended byjavax.jdo.JDOFatalUserException
                          extended bycom.triactive.jdo.model.ClassMetaDataMismatchException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ClassMetaDataFlagMismatchException

public class ClassMetaDataMismatchException
extends javax.jdo.JDOFatalUserException

A ClassMetaDataMismatchException is thrown if the names, types, or flags of the persistent fields of an enhanced class do not match those that would be expected based on the corresponding JDO metadata.

Author:
Mike Martin
See Also:
ClassMetaData, Serialized Form

Constructor Summary
ClassMetaDataMismatchException(java.lang.Class clazz, int fieldNumber, java.lang.Class typeInClass, java.lang.Class typeInMetadata)
          Constructs a class metadata mismatch exception caused by a different field type for a given field number.
ClassMetaDataMismatchException(java.lang.Class clazz, int fieldNumber, java.lang.String nameInClass, java.lang.String nameInMetadata)
          Constructs a class metadata mismatch exception caused by a different field name for a given field number.
ClassMetaDataMismatchException(java.lang.Class clazz, java.lang.String msg)
          Constructs a class metadata mismatch exception with the specified detail message.
ClassMetaDataMismatchException(java.lang.Class clazz, java.lang.String[] fieldNamesInClass, java.util.List fieldMetadata)
          Constructs a class metadata mismatch exception caused by a difference in the list of persistent fields.
 
Methods inherited from class javax.jdo.JDOException
getCause, getFailedObject, getNestedExceptions, initCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassMetaDataMismatchException

public ClassMetaDataMismatchException(java.lang.Class clazz,
                                      java.lang.String msg)
Constructs a class metadata mismatch exception with the specified detail message.

Parameters:
clazz - The enhanced class whose metadata does not match.
msg - The detail message

ClassMetaDataMismatchException

public ClassMetaDataMismatchException(java.lang.Class clazz,
                                      java.lang.String[] fieldNamesInClass,
                                      java.util.List fieldMetadata)
Constructs a class metadata mismatch exception caused by a difference in the list of persistent fields.

Parameters:
clazz - The enhanced class whose metadata does not match.
fieldNamesInClass - The field names in the enhanced class
fieldMetadata - The metadata for all the fields in the class

ClassMetaDataMismatchException

public ClassMetaDataMismatchException(java.lang.Class clazz,
                                      int fieldNumber,
                                      java.lang.String nameInClass,
                                      java.lang.String nameInMetadata)
Constructs a class metadata mismatch exception caused by a different field name for a given field number.

Parameters:
clazz - The enhanced class whose metadata does not match.
fieldNumber - The persistent field number
nameInClass - The name of the field in the enhanced class
nameInMetadata - The name of the field in the metadata

ClassMetaDataMismatchException

public ClassMetaDataMismatchException(java.lang.Class clazz,
                                      int fieldNumber,
                                      java.lang.Class typeInClass,
                                      java.lang.Class typeInMetadata)
Constructs a class metadata mismatch exception caused by a different field type for a given field number.

Parameters:
clazz - The enhanced class whose metadata does not match.
fieldNumber - The persistent field number
typeInClass - The type of the field in the enhanced class
typeInMetadata - The type of the field in the metadata


Copyright © 2001-2007 The TJDO Project All Rights Reserved.