KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > sco > QueryUnownedSCOException


1 /*
2  * Copyright 2004 (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: QueryUnownedSCOException.java,v 1.2 2004/01/18 03:01:06 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.sco;
12
13 import com.triactive.jdo.SCO;
14 import javax.jdo.JDOUnsupportedOptionException;
15
16
17 /**
18  * A <tt>QueryUnownedSCOException</tt> is thrown if an attempt is made to query
19  * an SCO collection that is not persistent.
20  * <p>
21  * This exception will become obsolete when support for in-memory queries is
22  * added.
23  *
24  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
25  * @version $Revision: 1.2 $
26  */

27
28 public class QueryUnownedSCOException extends JDOUnsupportedOptionException
29 {
30     /**
31      * Constructs a "can't query a transient SCO" exception.
32      *
33      * @param sco The second-class object that cannot be queried.
34      */

35
36     public QueryUnownedSCOException(SCO sco)
37     {
38     super("Collection is not queryable, not currently owned by a persistent first-class object");
39     }
40 }
41
Popular Tags