KickJava   Java API By Example, From Geeks To Geeks.

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


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: NoExtentException.java,v 1.3 2002/11/08 05:06:25 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.store;
12
13 import javax.jdo.JDOUserException;
14
15
16 /**
17  * A <tt>NoExtentException</tt> is thrown if an attempt is made to perform an
18  * operation using a class that is not backed by an extent (ie table or view)
19  * in the database and the operation is not supported on such classes.
20  *
21  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
22  * @version $Revision: 1.3 $
23  *
24  * @see StoreManager
25  */

26
27 public class NoExtentException extends JDOUserException
28 {
29     /**
30      * Constructs a no extent exception.
31      *
32      * @param clazz The class on which the operation requiring an extent
33      * was attempted.
34      */

35
36     public NoExtentException(Class JavaDoc clazz)
37     {
38         super("Persistent class has no extent (i.e. table) in the database: " + clazz.getName());
39     }
40 }
41
Popular Tags