/*
* Copyright 2004 (C) TJDO.
* All rights reserved.
*
* This software is distributed under the terms of the TJDO License version 1.0.
* See the terms of the TJDO License in the documentation provided with this software.
*
* $Id: QueryUnownedSCOException.java,v 1.2 2004/01/18 03:01:06 jackknifebarber Exp $
*/
package com.triactive.jdo.sco;
import com.triactive.jdo.SCO;
import javax.jdo.JDOUnsupportedOptionException;
/**
* A <tt>QueryUnownedSCOException</tt> is thrown if an attempt is made to query
* an SCO collection that is not persistent.
* <p>
* This exception will become obsolete when support for in-memory queries is
* added.
*
* @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
* @version $Revision: 1.2 $
*/
public class QueryUnownedSCOException extends JDOUnsupportedOptionException
{
/**
* Constructs a "can't query a transient SCO" exception.
*
* @param sco The second-class object that cannot be queried.
*/
public QueryUnownedSCOException(SCO sco)
{
super("Collection is not queryable, not currently owned by a persistent first-class object");
}
}
|