KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > store > PersistentSuperclassNotAllowedException


1 /*
2  * Copyright 2002 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: PersistentSuperclassNotAllowedException.java,v 1.3 2002/11/08 05:06:25 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.store;
12
13
14 /**
15  * A <tt>PersistentSuperclassNotAllowedException</tt> is thrown if a
16  * persistence-capable class is declared to have a persistence-capable
17  * superclass when that class is backed by a view.
18  *
19  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
20  * @version $Revision: 1.3 $
21  *
22  * @see ClassView
23  */

24
25 public class PersistentSuperclassNotAllowedException extends ClassDefinitionException
26 {
27     /**
28      * Constructs a persistent-superclass-not-allowed exception.
29      *
30      * @param clazz The class having the persistence-capable superclass.
31      */

32
33     public PersistentSuperclassNotAllowedException(Class JavaDoc clazz)
34     {
35         super("Classes backed by views cannot have persistence-capable superclasses: " + clazz.getName());
36     }
37 }
38
Popular Tags