01: /*
02: * Copyright 2002 (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: PrimaryKeyColumnNotAllowedException.java,v 1.3 2002/11/08 05:06:25 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: import javax.jdo.JDOFatalInternalException;
14:
15: /**
16: * A <tt>PrimaryKeyColumnNotAllowedException</tt> is thrown if an attempt is made to
17: * add a primary key column to a view.
18: *
19: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
20: * @version $Revision: 1.3 $
21: *
22: * @see View#newColumn(Class,String)
23: */
24:
25: public class PrimaryKeyColumnNotAllowedException extends
26: JDOFatalInternalException {
27: /**
28: * Constructs a primary key not allowed exception.
29: *
30: * @param view The view being initialized.
31: * @param column The column having the duplicate name.
32: */
33:
34: public PrimaryKeyColumnNotAllowedException(View view, Column column) {
35: super ("Cannot define a primary key column in a view: view = "
36: + view + ", column = " + column.getName());
37: }
38: }
|