01: /*
02: * Copyright 2004 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: QueryUnownedSCOException.java,v 1.2 2004/01/18 03:01:06 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.sco;
12:
13: import com.triactive.jdo.SCO;
14: import javax.jdo.JDOUnsupportedOptionException;
15:
16: /**
17: * A <tt>QueryUnownedSCOException</tt> is thrown if an attempt is made to query
18: * an SCO collection that is not persistent.
19: * <p>
20: * This exception will become obsolete when support for in-memory queries is
21: * added.
22: *
23: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
24: * @version $Revision: 1.2 $
25: */
26:
27: public class QueryUnownedSCOException extends
28: JDOUnsupportedOptionException {
29: /**
30: * Constructs a "can't query a transient SCO" exception.
31: *
32: * @param sco The second-class object that cannot be queried.
33: */
34:
35: public QueryUnownedSCOException(SCO sco) {
36: super (
37: "Collection is not queryable, not currently owned by a persistent first-class object");
38: }
39: }
|